public class CollectionMetaType extends AbstractMetaType
ALLOWED_CLASSNAMES
Constructor and Description |
---|
CollectionMetaType(String className,
MetaType elementType) |
CollectionMetaType(String className,
String description,
MetaType elementType) |
CollectionMetaType(String className,
String typeName,
String description,
MetaType elementType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static CollectionMetaType |
getCollectionType(String collectionType,
MetaType elementType)
Get collection meta type.
|
MetaType |
getElementType()
Get the meta type of the array elements
|
int |
hashCode() |
boolean |
isCollection()
Retrieve whether the class name of the type is a collection
|
boolean |
isValue(Object obj)
Whether the passed value is one of those described by this meta type.
|
String |
toString() |
getClassName, getDescription, getTypeName, isArray, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
public CollectionMetaType(String className, String description, MetaType elementType)
public boolean isCollection()
MetaType
isCollection
in interface MetaType
isCollection
in class AbstractMetaType
public static CollectionMetaType getCollectionType(String collectionType, MetaType elementType)
collectionType
- the element meta typeelementType
- the element meta typepublic MetaType getElementType()
public boolean isValue(Object obj)
MetaType
isValue
in interface MetaType
isValue
in class AbstractMetaType
obj
- the object to testCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.