|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.util.reflect.ParameterType
public abstract class ParameterType
The java.lang.* primitive and primitive wrapper types
Nested Class Summary | |
---|---|
static class |
ParameterType.SimpleField
A single property of a pojo with contains the method where one can use reflection to extract value, the name and the ParameterType w/c can be used to extract value
from a string. |
Field Summary | |
---|---|
static ParameterType |
BOOLEAN
|
static ParameterType |
BOOLEAN_P
|
static ParameterType |
DOUBLE
|
static ParameterType |
DOUBLE_P
|
static ParameterType |
FLOAT
|
static ParameterType |
FLOAT_P
|
static ParameterType |
INTEGER
|
static ParameterType |
INTEGER_P
|
static ParameterType |
LONG
|
static ParameterType |
LONG_P
|
static ParameterType |
SHORT
|
static ParameterType |
SHORT_P
|
static ParameterType |
STRING
|
Constructor Summary | |
---|---|
ParameterType()
|
Method Summary | |
---|---|
static void |
fillWithSimpleType(Map<Class<?>,ParameterType> map)
|
abstract Object |
getActualValue(String value)
Gets the actual value from a string value . |
static Map<String,ParameterType.SimpleField> |
getSimpleFieldGetters(Class<?> pojoClass)
Gets the getters of a pojo as a map of String as key and
ParameterType.SimpleField as value. |
static Map<String,ParameterType.SimpleField> |
getSimpleFieldSetters(Class<?> pojoClass)
Gets the setters of a pojo as a map of String as key and
ParameterType.SimpleField as value. |
static ParameterType |
getSimpleType(Class<?> clazz)
Gets the simple types (basically primitive types). |
abstract Class<?> |
getTypeClass()
Gets the class of this given type. |
int |
hashCode()
|
boolean |
isPrimitive()
Checks whether this type is a java primitive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ParameterType STRING
public static final ParameterType BOOLEAN
public static final ParameterType BOOLEAN_P
public static final ParameterType SHORT
public static final ParameterType SHORT_P
public static final ParameterType INTEGER
public static final ParameterType INTEGER_P
public static final ParameterType LONG
public static final ParameterType LONG_P
public static final ParameterType FLOAT
public static final ParameterType FLOAT_P
public static final ParameterType DOUBLE
public static final ParameterType DOUBLE_P
Constructor Detail |
---|
public ParameterType()
Method Detail |
---|
public static void fillWithSimpleType(Map<Class<?>,ParameterType> map)
public static ParameterType getSimpleType(Class<?> clazz)
public static Map<String,ParameterType.SimpleField> getSimpleFieldSetters(Class<?> pojoClass)
String
as key and
ParameterType.SimpleField
as value.
public static Map<String,ParameterType.SimpleField> getSimpleFieldGetters(Class<?> pojoClass)
String
as key and
ParameterType.SimpleField
as value.
public abstract Object getActualValue(String value)
value
.
public abstract Class<?> getTypeClass()
public int hashCode()
hashCode
in class Object
public boolean isPrimitive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |