public class SimpleDataType extends Object implements org.mule.runtime.api.metadata.DataType
This type also allows a mime type and encoding to be associated with the Java type.
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.api.metadata.MediaType |
mimeType |
protected boolean |
streamType |
protected Class<?> |
type |
ATOM_STRING, BOOLEAN, BYTE_ARRAY, CURSOR_ITERATOR_PROVIDER, CURSOR_STREAM_PROVIDER, HTML_STRING, INPUT_STREAM, ITERATOR, JSON_STRING, MULE_MESSAGE, MULE_MESSAGE_COLLECTION, NUMBER, OBJECT, RSS_STRING, STRING, TEXT_STRING, XML_STRING| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.mule.runtime.api.metadata.MediaType |
getMediaType() |
Class<?> |
getType() |
int |
hashCode() |
boolean |
isCompatibleWith(org.mule.runtime.api.metadata.DataType dataType) |
boolean |
isStreamType() |
String |
toString() |
protected final Class<?> type
protected final org.mule.runtime.api.metadata.MediaType mimeType
protected final boolean streamType
public Class<?> getType()
getType in interface org.mule.runtime.api.metadata.DataTypepublic org.mule.runtime.api.metadata.MediaType getMediaType()
getMediaType in interface org.mule.runtime.api.metadata.DataTypepublic boolean isCompatibleWith(org.mule.runtime.api.metadata.DataType dataType)
isCompatibleWith in interface org.mule.runtime.api.metadata.DataTypepublic boolean isStreamType()
isStreamType in interface org.mule.runtime.api.metadata.DataTypeCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.