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()
MetaType
getClassName
in interface MetaType
public String getTypeName()
MetaType
getTypeName
in interface MetaType
public String getDescription()
MetaType
getDescription
in interface MetaType
public boolean isEnum()
MetaType
public boolean isComposite()
MetaType
isComposite
in interface MetaType
public boolean isSimple()
MetaType
public boolean isPrimitive()
MetaType
isPrimitive
in interface MetaType
public boolean isGeneric()
MetaType
public boolean isTable()
MetaType
public boolean isArray()
MetaType
public boolean isCollection()
MetaType
isCollection
in interface MetaType
public boolean isProperties()
MetaType
isProperties
in interface MetaType
PropertiesMetaType
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.