|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.BasicTypes
public class BasicTypes

Class holding the constants of all the basic property types
| Field Summary | |
|---|---|
static PropertyTypeHolder |
BIG_DECIMAL_TYPE
Basic type that represents a big decimal |
static PropertyTypeHolder |
BIG_INTEGER_TYPE
Basic type that represents a big integer |
static PropertyTypeHolder |
BOOLEAN_TYPE
Basic type that represents a boolean |
static PropertyTypeHolder |
BYTE_TYPE
Basic type that represents a byte |
static PropertyTypeHolder |
CALENDAR_TYPE
Basic type that represents a calendar |
static PropertyTypeHolder |
CHARACTER_TYPE
Basic type that represents a character |
private static java.util.Map<java.lang.Class<?>,PropertyCollection<?,?>> |
CLASS_TO_TYPE_MAP
class to type map |
static PropertyTypeHolder |
DOUBLE_TYPE
Basic type that represents a double floating point value |
static PropertyTypeHolder |
FLOAT_TYPE
Basic type that represents a floating point value |
static PropertyTypeHolder |
INTEGER_TYPE
Basic type that represents an integer |
static PropertyTypeHolder |
LONG_TYPE
Basic type that represents a long |
static PropertyTypeHolder |
NUMBER_TYPE
Basic type that represents a number |
static PropertyTypeHolder |
OBJECT_TYPE
Basic type that identifies a standard Object |
static PropertyTypeHolder |
SHORT_TYPE
Basic type that represents a short |
static PropertyTypeHolder |
STRING_TYPE
Basic type that represents a string |
private static java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> |
TYPE_TO_CLASS_MAP
type to class map |
static PropertyTypeHolder |
VOID_TYPE
Basic type that identifies a void type |
| Constructor Summary | |
|---|---|
BasicTypes()
|
|
| Method Summary | |
|---|---|
private static void |
associatedTypeAndClass(PropertyCollection<?,?> type,
java.lang.Class<?> javaClass)
associatedTypeAndClass |
static java.lang.Class<?> |
getClassFromType(PropertyCollection<?,?> typeToMatch)
Find the java class associated with a property type. |
static java.lang.Class<?> |
getNativeClassFromType(PropertyCollection<?,?> typeToMatch)
fetch the java native class for a specified type. |
static PropertyCollection<?,?> |
getTypeFromClass(java.lang.Class<?> classToMatch)
find a property type from a Java Class. |
static void |
initialize()
initialize the class to map association |
static boolean |
isTypeNative(PropertyCollection<?,?> typeToMatch)
test to see if a type is native or not. |
static boolean |
isTypeNumeric(PropertyCollection<?,?> type)
test if a type is numeric |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyTypeHolder OBJECT_TYPE
public static final PropertyTypeHolder VOID_TYPE
public static final PropertyTypeHolder STRING_TYPE
public static final PropertyTypeHolder BOOLEAN_TYPE
public static final PropertyTypeHolder INTEGER_TYPE
public static final PropertyTypeHolder LONG_TYPE
public static final PropertyTypeHolder SHORT_TYPE
public static final PropertyTypeHolder BYTE_TYPE
public static final PropertyTypeHolder CHARACTER_TYPE
public static final PropertyTypeHolder FLOAT_TYPE
public static final PropertyTypeHolder DOUBLE_TYPE
public static final PropertyTypeHolder NUMBER_TYPE
public static final PropertyTypeHolder CALENDAR_TYPE
public static final PropertyTypeHolder BIG_DECIMAL_TYPE
public static final PropertyTypeHolder BIG_INTEGER_TYPE
private static final java.util.Map<PropertyCollection<?,?>,java.lang.Class<?>> TYPE_TO_CLASS_MAP
private static final java.util.Map<java.lang.Class<?>,PropertyCollection<?,?>> CLASS_TO_TYPE_MAP
| Constructor Detail |
|---|
public BasicTypes()
| Method Detail |
|---|
public static java.lang.Class<?> getClassFromType(PropertyCollection<?,?> typeToMatch)
typeToMatch - the type to match. This class should extend the
deduced.PropertyType type.
private static void associatedTypeAndClass(PropertyCollection<?,?> type,
java.lang.Class<?> javaClass)
type - the deduced typejavaClass - the associated java classpublic static void initialize()
public static java.lang.Class<?> getNativeClassFromType(PropertyCollection<?,?> typeToMatch)
typeToMatch - the type to match
public static boolean isTypeNative(PropertyCollection<?,?> typeToMatch)
typeToMatch - the type to test if it is native
public static PropertyCollection<?,?> getTypeFromClass(java.lang.Class<?> classToMatch)
classToMatch - the java class to match
public static boolean isTypeNumeric(PropertyCollection<?,?> type)
type - the type to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||