|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metatype.api.types.AbstractMetaType
public abstract class AbstractMetaType
AbstractMetaType.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.metatype.api.types.MetaType |
|---|
ALLOWED_CLASSNAMES |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 null
IllegalArgumentException - for a null argument or a class is not an allowed class
protected 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 null
IllegalArgumentException - 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 null
IllegalArgumentException - for a null argument or a class is not an allowed class| Method Detail |
|---|
public String getClassName()
MetaType
getClassName in interface MetaTypepublic String getTypeName()
MetaType
getTypeName in interface MetaTypepublic String getDescription()
MetaType
getDescription in interface MetaTypepublic boolean isEnum()
MetaType
isEnum in interface MetaTypepublic boolean isComposite()
MetaType
isComposite in interface MetaTypepublic boolean isSimple()
MetaType
isSimple in interface MetaTypepublic boolean isPrimitive()
MetaType
isPrimitive in interface MetaTypepublic boolean isGeneric()
MetaType
isGeneric in interface MetaTypepublic boolean isTable()
MetaType
isTable in interface MetaTypepublic boolean isArray()
MetaType
isArray in interface MetaTypepublic boolean isCollection()
MetaType
isCollection in interface MetaTypepublic boolean isProperties()
MetaType
isProperties in interface MetaTypePropertiesMetaTypepublic abstract boolean isValue(Object obj)
MetaType
isValue in interface MetaTypeobj - the object to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||