org.gvsig.tools.dataTypes
Interface DataTypesManager

All Known Implementing Classes:
DefaultDataTypesManager

public interface DataTypesManager

Manages data types.

Version:
$Id$
Author:
gvSIG Team

Nested Class Summary
static interface DataTypesManager.Coercion
           
 
Method Summary
 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)
           
 

Method Detail

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.