|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metatype.api.types.AbstractMetaType
org.jboss.metatype.api.types.ArrayMetaType
public class ArrayMetaType
ArrayMetaType.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.metatype.api.types.MetaType |
|---|
ALLOWED_CLASSNAMES |
| Constructor Summary | |
|---|---|
ArrayMetaType(int dimension,
MetaType elementType)
Construct an ArrayMetaType. |
|
ArrayMetaType(int dimension,
MetaType elementType,
boolean primitiveArray)
Construct an ArrayMetaType. |
|
ArrayMetaType(SimpleMetaType elementType,
boolean primitiveArray)
Construct an ArrayMetaType. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static ArrayMetaType |
getArrayType(MetaType elementType)
Get array meta type. |
int |
getDimension()
Get the dimension of the array |
MetaType |
getElementType()
Get the meta type of the array elements |
static ArrayMetaType |
getPrimitiveArrayType(Class<?> arrayClass)
Get primitive array meta type. |
static String |
getPrimitiveEncoding(String typeName)
Get the char encoding string for the type name. |
static SimpleMetaType |
getPrimitiveMetaType(String primitiveTypeName)
Get primitive meta type. |
static String |
getPrimitiveName(String typeName)
Get the char encoding string for the type name. |
int |
hashCode()
|
boolean |
isPrimitiveArray()
Is primitive array. |
static boolean |
isPrimitiveEncoding(String primitiveKey)
Is primitive key. |
boolean |
isValue(Object obj)
Whether the passed value is one of those described by this meta type. |
String |
toString()
|
| Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType |
|---|
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayMetaType(int dimension,
MetaType elementType)
dimension - the number of dimensions in the arrayelementType - the open type of the array elements
IllegalArgumentException - for a null argument or non-negative dimension or when meta type is an ArrayMetaType
public ArrayMetaType(SimpleMetaType elementType,
boolean primitiveArray)
elementType - the element typeprimitiveArray - is primitive array
public ArrayMetaType(int dimension,
MetaType elementType,
boolean primitiveArray)
dimension - the number of dimensions in the arrayelementType - the open type of the array elementsprimitiveArray - is primitive array
IllegalArgumentException - for a null argument or non-negative dimension or when meta type is an ArrayMetaType| Method Detail |
|---|
public static boolean isPrimitiveEncoding(String primitiveKey)
primitiveKey - the key to check
public static SimpleMetaType getPrimitiveMetaType(String primitiveTypeName)
primitiveTypeName - primitive type name
public static String getPrimitiveEncoding(String typeName)
typeName - - the primitive wrapper type name
public static String getPrimitiveName(String typeName)
typeName - - the primitive wrapper type name
public static ArrayMetaType getArrayType(MetaType elementType)
elementType - the element meta type
public static ArrayMetaType getPrimitiveArrayType(Class<?> arrayClass)
arrayClass - array class
public int getDimension()
public MetaType getElementType()
public boolean isPrimitiveArray()
public boolean isValue(Object obj)
MetaType
isValue in interface MetaTypeisValue in class AbstractMetaTypeobj - the object to test
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||