public class SimpleMetaType extends AbstractMetaType
Modifier and Type | Field and Description |
---|---|
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
|
ALLOWED_CLASSNAMES
Modifier and Type | Method and Description |
---|---|
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() |
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isProperties, isTable
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
public static SimpleMetaType resolve(String className)
className
- the class name of the simple typeIllegalArgumentException
- for a null className or if it is not a simple typepublic static SimpleMetaType isSimpleType(String className)
className
- the class name of the simple typeIllegalArgumentException
- for a null classNamepublic int compare(Object first, Object second)
first
- the first objectsecond
- the second objectpublic 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 testpublic boolean equalsIgnorePrimitive(Object obj)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.