org.gvsig.tools.dataTypes.impl
Class DefaultDataTypesManager
java.lang.Object
org.gvsig.tools.dataTypes.impl.DefaultDataTypesManager
- All Implemented Interfaces:
- DataTypes, DataTypesManager
public class DefaultDataTypesManager
- extends Object
- implements DataTypesManager, DataTypes
Fields inherited from interface org.gvsig.tools.dataTypes.DataTypes |
ARRAY, BOOLEAN, BYTE, BYTEARRAY, CHAR, CONTAINER, DATE, DOUBLE, DYNOBJECT, FILE, FLOAT, FOLDER, INT, INVALID, LIST, LONG, MAP, MAX_TYPE_VALUE, OBJECT, SET, STRING, SUBTYPE_DATE, SUBTYPE_FILE, SUBTYPE_FOLDER, TIME, TIMESTAMP, UNKNOWN, URI, URL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDataTypesManager
public DefaultDataTypesManager()
addtype
public int addtype(int type,
String subtype,
String name,
Class defaultClass,
DataTypesManager.Coercion coercion)
- Specified by:
addtype
in interface DataTypesManager
get
public DataType get(int type)
- Specified by:
get
in interface DataTypesManager
isValidType
public boolean isValidType(int type)
- Specified by:
isValidType
in interface DataTypesManager
isObject
public boolean isObject(int type)
- Specified by:
isObject
in interface DataTypesManager
isContainer
public boolean isContainer(int type)
- Specified by:
isContainer
in interface DataTypesManager
getType
public int getType(String name)
- Specified by:
getType
in interface DataTypesManager
getTypeName
public String getTypeName(int type)
- Specified by:
getTypeName
in interface DataTypesManager
getDefaultClass
public Class getDefaultClass(int type)
- Specified by:
getDefaultClass
in interface DataTypesManager
getSubtype
public String getSubtype(int type)
- Specified by:
getSubtype
in interface DataTypesManager
getCoercion
public DataTypesManager.Coercion getCoercion(int type)
- Specified by:
getCoercion
in interface DataTypesManager
setCoercion
public void setCoercion(int type,
DataTypesManager.Coercion coercion)
- Specified by:
setCoercion
in interface DataTypesManager
coerce
public Object coerce(int type,
Object value)
throws CoercionException
- Specified by:
coerce
in interface DataTypesManager
- Throws:
CoercionException
iterator
public Iterator iterator()
- Specified by:
iterator
in interface DataTypesManager
getDataType
public DataType getDataType(Class defaultClass)
- Description copied from interface:
DataTypesManager
- Returns a DataType whose default class is the one provided.
As there may be more than one
DataType
objects with the same
default class, it will return only one of them.
- Specified by:
getDataType
in interface DataTypesManager
- Parameters:
defaultClass
- the default class of the data type asked
- Returns:
- the DataType whose default class is the one provided.
Copyright © 2004-2011 gvSIG. All Rights Reserved.