public interface DataType<T> extends Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
ANY_MIME_TYPE |
static DataType<byte[]> |
BYTE_ARRAY_DATA_TYPE |
static DataType<String> |
STRING_DATA_TYPE |
Modifier and Type | Method and Description |
---|---|
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.
|
static final String ANY_MIME_TYPE
static final DataType<byte[]> BYTE_ARRAY_DATA_TYPE
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 withDataType cloneDataType()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.