|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataType<T>
Defines a Java type associated with additional information about the data. This may be a mime type for the type or for collections, the collection item type can be stored with the collection type.
Field Summary | |
---|---|
static String |
ANY_MIME_TYPE
|
static DataType<byte[]> |
BYTE_ARRAY_DATA_TYPE
|
static DataType<String> |
STRING_DATA_TYPE
|
Method Summary | |
---|---|
DataType |
cloneDataType()
Create an exact copy of this datatype |
String |
getEncoding()
The encoding for the object to transform |
String |
getMimeType()
The mime type of the the source object to transform. |
Class<?> |
getType()
The object type of the source object to transform. |
boolean |
isCompatibleWith(DataType dataType)
Used to determine if this data type is compatible with the data type passed in. |
void |
setEncoding(String encoding)
The encoding for the object to transform |
void |
setMimeType(String mimeType)
The mime type of the the source object to transform. |
Field Detail |
---|
static final String ANY_MIME_TYPE
static final DataType<byte[]> BYTE_ARRAY_DATA_TYPE
static final DataType<String> STRING_DATA_TYPE
Method Detail |
---|
Class<?> getType()
String getMimeType()
String getEncoding()
void setEncoding(String encoding)
void setMimeType(String mimeType)
mimeType
- the mime type of the source object. This may be null if the mime type is not known, or if the mime type is
not neededboolean isCompatibleWith(DataType dataType)
dataType
- the dataType object to compare with
DataType cloneDataType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |