public abstract class AbstractMetaType extends Object implements MetaType
ALLOWED_CLASSNAMES| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMetaType(String className)
Construct a new MetaType.
|
protected |
AbstractMetaType(String className,
String description)
Construct a new MetaType.
|
protected |
AbstractMetaType(String className,
String typeName,
String description)
Construct a new MetaType.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Retrieve the class name of the values of this meta
type.
|
String |
getDescription()
Retrieve the description of the type
|
String |
getTypeName()
Retrieve the name of the meta type
|
boolean |
isArray()
Retrieve whether the class name of the type is an array
|
boolean |
isCollection()
Retrieve whether the class name of the type is a collection
|
boolean |
isComposite()
Retrieve whether the class name of the type is composite
|
boolean |
isEnum()
Retrieve whether the class name of the type is an enum
|
boolean |
isGeneric()
Retrieve whether the class name of the type is generic
|
boolean |
isPrimitive()
Retrieve whether the class name of the type is a java primitive type.
|
boolean |
isProperties()
Return whether the type is a PropertiesMetaType type.
|
boolean |
isSimple()
Retrieve whether the class name of the type is simple
|
boolean |
isTable()
Retrieve whether the class name of the type is a table
|
abstract boolean |
isValue(Object obj)
Whether the passed value is one of those described by this meta type.
|
protected AbstractMetaType(String className, String typeName, String description)
The class name must be in MetaType.ALLOWED_CLASSNAMES or an
array of those classes.
className - the name of the class implementing the meta type,
cannot be nulltypeName - the name of the meta type, cannot be nulldescription - the human readable description of the type, cannot
be nullIllegalArgumentException - for a null argument or a class is not an allowed classprotected AbstractMetaType(String className, String description)
The class name must be in MetaType.ALLOWED_CLASSNAMES or an
array of those classes.
className - the name of the class implementing the meta type,
cannot be nulldescription - the human readable description of the type, cannot
be nullIllegalArgumentException - for a null argument or a class is not an allowed classprotected AbstractMetaType(String className)
MetaType.ALLOWED_CLASSNAMES or an
array of those classes.className - the name of the class implementing the meta type,
cannot be nullIllegalArgumentException - for a null argument or a class is not an allowed classpublic String getClassName()
MetaTypegetClassName in interface MetaTypepublic String getTypeName()
MetaTypegetTypeName in interface MetaTypepublic String getDescription()
MetaTypegetDescription in interface MetaTypepublic boolean isEnum()
MetaTypepublic boolean isComposite()
MetaTypeisComposite in interface MetaTypepublic boolean isSimple()
MetaTypepublic boolean isPrimitive()
MetaTypeisPrimitive in interface MetaTypepublic boolean isGeneric()
MetaTypepublic boolean isTable()
MetaTypepublic boolean isArray()
MetaTypepublic boolean isCollection()
MetaTypeisCollection in interface MetaTypepublic boolean isProperties()
MetaTypeisProperties in interface MetaTypePropertiesMetaTypeCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.