org.gvsig.tools.dataTypes
Interface DataTypesManager
- All Known Implementing Classes:
- DefaultDataTypesManager
public interface DataTypesManager
Manages data types.
- Version:
- $Id$
- Author:
- gvSIG Team
get
DataType get(int type)
isValidType
boolean isValidType(int type)
isObject
boolean isObject(int type)
isContainer
boolean isContainer(int type)
getTypeName
String getTypeName(int type)
getType
int getType(String name)
getDefaultClass
Class getDefaultClass(int type)
getDataType
DataType getDataType(Class defaultClass)
- 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.
- Parameters:
defaultClass
- the default class of the data type asked
- Returns:
- the DataType whose default class is the one provided.
getSubtype
String getSubtype(int type)
addtype
int addtype(int type,
String subtype,
String name,
Class defaultClass,
DataTypesManager.Coercion coercion)
getCoercion
DataTypesManager.Coercion getCoercion(int type)
setCoercion
void setCoercion(int type,
DataTypesManager.Coercion coercion)
coerce
Object coerce(int type,
Object value)
throws CoercionException
- Throws:
CoercionException
iterator
Iterator iterator()
Copyright © 2004-2011 gvSIG. All Rights Reserved.