public class CollectionDataType<T> extends SimpleDataType<T>
encoding, mimeType, typeANY_MIME_TYPE, BYTE_ARRAY_DATA_TYPE, OBJECT_DATA_TYPE, STRING_DATA_TYPE| Constructor and Description |
|---|
CollectionDataType(Class<? extends Collection> collectionType)
Creates an untyped collection data type
|
CollectionDataType(Class<? extends Collection> collectionType,
Class type) |
CollectionDataType(Class<? extends Collection> collectionType,
Class type,
String mimeType) |
CollectionDataType(Class<? extends Collection> collectionType,
String mimeType) |
| Modifier and Type | Method and Description |
|---|---|
static CollectionDataType |
createFromMethodParam(Method m,
int paramIndex) |
static CollectionDataType |
createFromMethodParam(Method m,
int paramIndex,
String mimeType) |
static CollectionDataType |
createFromMethodReturn(Method m) |
static CollectionDataType |
createFromMethodReturn(Method m,
String mimeType) |
boolean |
equals(Object o) |
Class<?> |
getItemType() |
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.
|
static boolean |
isParamTypeACollection(Method m,
int paramIndex) |
static boolean |
isReturnTypeACollection(Method m) |
String |
toString() |
cloneDataType, getEncoding, getMimeType, setEncoding, setMimeTypepublic CollectionDataType(Class<? extends Collection> collectionType)
collectionType - the collection class typepublic CollectionDataType(Class<? extends Collection> collectionType, String mimeType)
public CollectionDataType(Class<? extends Collection> collectionType, Class type, String mimeType)
public CollectionDataType(Class<? extends Collection> collectionType, Class type)
public Class<?> getItemType()
public Class getType()
DataTypepublic static CollectionDataType createFromMethodReturn(Method m)
public static CollectionDataType createFromMethodReturn(Method m, String mimeType)
public static CollectionDataType createFromMethodParam(Method m, int paramIndex)
public static CollectionDataType createFromMethodParam(Method m, int paramIndex, String mimeType)
public static boolean isReturnTypeACollection(Method m)
public static boolean isParamTypeACollection(Method m, int paramIndex)
public boolean isCompatibleWith(DataType dataType)
DataTypeisCompatibleWith in interface DataType<T>isCompatibleWith in class SimpleDataType<T>dataType - the dataType object to compare withpublic boolean equals(Object o)
equals in class SimpleDataType<T>public int hashCode()
hashCode in class SimpleDataType<T>public String toString()
toString in class SimpleDataType<T>Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.