|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transformer.types.SimpleDataType<T>
public class SimpleDataType<T>
A data type that simply wraps a Java type. This type also allows a mime type to be associated with the Java type.
| Field Summary | |
|---|---|
protected String |
encoding
|
protected String |
mimeType
|
protected Class<?> |
type
|
| Fields inherited from interface org.mule.api.transformer.DataType |
|---|
ANY_MIME_TYPE, BYTE_ARRAY_DATA_TYPE, STRING_DATA_TYPE |
| Constructor Summary | |
|---|---|
SimpleDataType(Class type)
|
|
SimpleDataType(Class<?> type,
String mimeType)
|
|
| Method Summary | |
|---|---|
DataType |
cloneDataType()
Create an exact copy of this datatype |
boolean |
equals(Object o)
|
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. |
int |
hashCode()
|
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Class<?> type
protected String mimeType
protected String encoding
| Constructor Detail |
|---|
public SimpleDataType(Class<?> type,
String mimeType)
public SimpleDataType(Class type)
| Method Detail |
|---|
public Class getType()
DataType
getType in interface DataType<T>public String getMimeType()
DataType
getMimeType in interface DataType<T>public void setMimeType(String mimeType)
DataType
setMimeType in interface DataType<T>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 neededpublic String getEncoding()
DataType
getEncoding in interface DataType<T>public void setEncoding(String encoding)
DataType
setEncoding in interface DataType<T>public boolean isCompatibleWith(DataType dataType)
DataType
isCompatibleWith in interface DataType<T>dataType - the dataType object to compare with
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic DataType cloneDataType()
DataType
cloneDataType in interface DataType<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||