public abstract class TypeConvertor<T> extends Object
Modifier and Type | Field and Description |
---|---|
static TypeConvertor<Boolean> |
BOOLEAN |
static TypeConvertor<Class<?>> |
CLASS |
static TypeConvertor<Date> |
DATE |
static TypeConvertor<Double> |
DOUBLE |
static TypeConvertor<Float> |
FLOAT |
static TypeConvertor<Integer> |
INTEGER |
static TypeConvertor<Long> |
LONG |
Constructor and Description |
---|
TypeConvertor() |
Modifier and Type | Method and Description |
---|---|
abstract T |
convert(String value) |
static <T> TypeConvertor<T> |
getConvertor(Class<T> type) |
abstract Class<?> |
getType() |
static Class<?> |
loadClass(String name) |
Object[] |
newArray(int length) |
static Date |
parseDate(String date)
Parse the serialized string form into a java.util.Date
|
public static final TypeConvertor<Boolean> BOOLEAN
public static final TypeConvertor<Integer> INTEGER
public static final TypeConvertor<Long> LONG
public static final TypeConvertor<Float> FLOAT
public static final TypeConvertor<Double> DOUBLE
public static final TypeConvertor<Date> DATE
public static final TypeConvertor<Class<?>> CLASS
public TypeConvertor()
public abstract T convert(String value) throws ValidationException
ValidationException
public static <T> TypeConvertor<T> getConvertor(Class<T> type)
public static Class<?> loadClass(String name) throws ReflectiveOperationException
ReflectiveOperationException
Copyright © 2015 Nuxeo SA. All rights reserved.