public interface DataTypesManager extends java.lang.Iterable<DataType>
| Modifier and Type | Method and Description |
|---|---|
void |
addCoercion(int type,
Coercion coercion) |
DataType |
addtype(int type,
java.lang.String subtype,
java.lang.String name,
java.lang.Class defaultClass,
Coercion coercion) |
DataType |
addtype(int type,
java.lang.String subtype,
java.lang.String name,
java.lang.Class defaultClass,
Coercion coercion,
java.lang.String iconName,
int flags) |
DataType |
addtype(int type,
java.lang.String subtype,
java.lang.String name,
java.lang.Class defaultClass,
Coercion coercion,
java.lang.String iconName,
int flags,
int max_precision,
int default_precision,
int default_scale) |
java.lang.Object |
coerce(int type,
java.lang.Object value) |
java.lang.Object |
coerce(int type,
java.lang.Object value,
CoercionContext ctx) |
DataType |
get(int type) |
DataType |
get(java.lang.String typename) |
Coercion |
getCoercion(int type) |
DataType |
getDataType(java.lang.Class defaultClass)
Returns a DataType whose default class is the one provided.
|
java.lang.Class |
getDefaultClass(int type) |
java.lang.String |
getSubtype(int type) |
int |
getType(java.lang.String name) |
java.lang.String |
getTypeName(int type) |
boolean |
isContainer(int type) |
boolean |
isObject(int type) |
boolean |
isValidType(int type) |
java.util.Iterator<DataType> |
iterator() |
DataType get(int type)
DataType get(java.lang.String typename)
boolean isValidType(int type)
boolean isObject(int type)
boolean isContainer(int type)
java.lang.String getTypeName(int type)
int getType(java.lang.String name)
java.lang.Class getDefaultClass(int type)
DataType getDataType(java.lang.Class defaultClass)
DataType objects with the same
default class, it will return only one of them.defaultClass - the default class of the data type askedjava.lang.String getSubtype(int type)
DataType addtype(int type, java.lang.String subtype, java.lang.String name, java.lang.Class defaultClass, Coercion coercion)
DataType addtype(int type, java.lang.String subtype, java.lang.String name, java.lang.Class defaultClass, Coercion coercion, java.lang.String iconName, int flags, int max_precision, int default_precision, int default_scale)
DataType addtype(int type, java.lang.String subtype, java.lang.String name, java.lang.Class defaultClass, Coercion coercion, java.lang.String iconName, int flags)
Coercion getCoercion(int type)
void addCoercion(int type,
Coercion coercion)
java.lang.Object coerce(int type,
java.lang.Object value)
throws CoercionException
CoercionExceptionjava.lang.Object coerce(int type,
java.lang.Object value,
CoercionContext ctx)
throws CoercionException
CoercionException