public interface DataTypesManager
Modifier and Type | Interface and Description |
---|---|
static interface |
DataTypesManager.Coercion |
static interface |
DataTypesManager.CoercionWithLocale |
Modifier and Type | Method and Description |
---|---|
void |
addCoercion(int type,
DataTypesManager.Coercion coercion) |
int |
addtype(int type,
String subtype,
String name,
Class defaultClass,
DataTypesManager.Coercion coercion) |
Object |
coerce(int type,
Object value) |
DataType |
get(int type) |
DataTypesManager.Coercion |
getCoercion(int type) |
DataType |
getDataType(Class defaultClass)
Returns a DataType whose default class is the one provided.
|
Class |
getDefaultClass(int type) |
String |
getSubtype(int type) |
int |
getType(String name) |
String |
getTypeName(int type) |
boolean |
isContainer(int type) |
boolean |
isObject(int type) |
boolean |
isValidType(int type) |
Iterator |
iterator() |
void |
setCoercion(int type,
DataTypesManager.Coercion coercion) |
DataType get(int type)
boolean isValidType(int type)
boolean isObject(int type)
boolean isContainer(int type)
String getTypeName(int type)
int getType(String name)
Class getDefaultClass(int type)
DataType getDataType(Class defaultClass)
DataType
objects with the same
default class, it will return only one of them.defaultClass
- the default class of the data type askedString getSubtype(int type)
int addtype(int type, String subtype, String name, Class defaultClass, DataTypesManager.Coercion coercion)
DataTypesManager.Coercion getCoercion(int type)
void setCoercion(int type, DataTypesManager.Coercion coercion)
void addCoercion(int type, DataTypesManager.Coercion coercion)
Object coerce(int type, Object value) throws CoercionException
CoercionException
Iterator iterator()