|
||||||||||
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.SimpleMetaType
public class SimpleMetaType
SimpleMetaType.
Field Summary | |
---|---|
static SimpleMetaType |
BIGDECIMAL
The simple type for java.math.BigDecimal |
static SimpleMetaType |
BIGINTEGER
The simple type for java.math.BigInteger |
static SimpleMetaType |
BOOLEAN
The simple type for java.lang.Boolean |
static SimpleMetaType |
BOOLEAN_PRIMITIVE
|
static SimpleMetaType |
BYTE
The simple type for java.lang.Byte |
static SimpleMetaType |
BYTE_PRIMITIVE
|
static SimpleMetaType |
CHARACTER
The simple type for java.lang.Character |
static SimpleMetaType |
CHARACTER_PRIMITIVE
|
static SimpleMetaType |
DATE
The simple type for java.lang.Date |
static SimpleMetaType |
DOUBLE
The simple type for java.lang.Double |
static SimpleMetaType |
DOUBLE_PRIMITIVE
|
static SimpleMetaType |
FLOAT
The simple type for java.lang.Float |
static SimpleMetaType |
FLOAT_PRIMITIVE
|
static SimpleMetaType |
INTEGER
The simple type for java.lang.Integer |
static SimpleMetaType |
INTEGER_PRIMITIVE
|
static SimpleMetaType |
LONG
The simple type for java.lang.Long |
static SimpleMetaType |
LONG_PRIMITIVE
|
static SimpleMetaType |
NAMEDOBJECT
The simple type for an object name |
static SimpleMetaType |
SHORT
The simple type for java.lang.Short |
static SimpleMetaType |
SHORT_PRIMITIVE
|
static SimpleMetaType |
STRING
The simple type for java.lang.String |
static SimpleMetaType |
VOID
The simple type for java.lang.Void |
Fields inherited from interface org.jboss.metatype.api.types.MetaType |
---|
ALLOWED_CLASSNAMES |
Method Summary | |
---|---|
int |
compare(Object first,
Object second)
Compare objects. |
boolean |
equals(Object obj)
|
boolean |
equalsIgnorePrimitive(Object obj)
|
int |
hashCode()
|
boolean |
isPrimitive()
Retrieve whether the class name of the type is a java primitive type. |
boolean |
isSimple()
Retrieve whether the class name of the type is simple |
static SimpleMetaType |
isSimpleType(String className)
Return the simple type if the class name is a simple type otherwise null. |
boolean |
isValue(Object obj)
Whether the passed value is one of those described by this meta type. |
static SimpleMetaType |
resolve(String className)
Resolve a simple type |
String |
toString()
|
Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType |
---|
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isProperties, isTable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SimpleMetaType BIGDECIMAL
public static final SimpleMetaType BIGINTEGER
public static final SimpleMetaType BOOLEAN
public static final SimpleMetaType BOOLEAN_PRIMITIVE
public static final SimpleMetaType BYTE
public static final SimpleMetaType BYTE_PRIMITIVE
public static final SimpleMetaType CHARACTER
public static final SimpleMetaType CHARACTER_PRIMITIVE
public static final SimpleMetaType DATE
public static final SimpleMetaType DOUBLE
public static final SimpleMetaType DOUBLE_PRIMITIVE
public static final SimpleMetaType FLOAT
public static final SimpleMetaType FLOAT_PRIMITIVE
public static final SimpleMetaType INTEGER
public static final SimpleMetaType INTEGER_PRIMITIVE
public static final SimpleMetaType LONG
public static final SimpleMetaType LONG_PRIMITIVE
public static final SimpleMetaType SHORT
public static final SimpleMetaType SHORT_PRIMITIVE
public static final SimpleMetaType STRING
public static final SimpleMetaType NAMEDOBJECT
public static final SimpleMetaType VOID
Method Detail |
---|
public static SimpleMetaType resolve(String className)
className
- the class name of the simple type
IllegalArgumentException
- for a null className or if it is not a simple typepublic static SimpleMetaType isSimpleType(String className)
className
- the class name of the simple type
IllegalArgumentException
- for a null classNamepublic int compare(Object first, Object second)
first
- the first objectsecond
- the second object
public boolean isSimple()
MetaType
isSimple
in interface MetaType
isSimple
in class AbstractMetaType
public boolean isPrimitive()
MetaType
isPrimitive
in interface MetaType
isPrimitive
in class AbstractMetaType
public boolean isValue(Object obj)
MetaType
isValue
in interface MetaType
isValue
in class AbstractMetaType
obj
- the object to test
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equalsIgnorePrimitive(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |