org.geotools.index
Class DataDefinition

Object
  extended by DataDefinition

public class DataDefinition
extends Object

Field definition

Author:
Tommaso Nolli
Module:
trunk/gt/modules   (gt-modules.jar) (Maven report) (SVN head)

Nested Class Summary
 class DataDefinition.Field
          Inner class for Data fields
 
Constructor Summary
DataDefinition(String charset)
           
 
Method Summary
 void addField(Class clazz)
          Well known classes Short Integer Long Float Double Date
 void addField(int len)
          For classes with unknown length; this values will be threated as Strings and truncated at the specified len
 Charset getCharset()
          Character set values are encoded in.
 int getEncodedLen()
          Gets the len of this field after the encoding, this method may be different from getLen() only if exists strings in the definition
 DataDefinition.Field getField(int i)
           
 int getFieldsCount()
           
 int getLen()
          Gets the max len of the data
 boolean isValid()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDefinition

public DataDefinition(String charset)
Method Detail

isValid

public final boolean isValid()

getFieldsCount

public int getFieldsCount()

getField

public DataDefinition.Field getField(int i)

addField

public void addField(Class clazz)
Well known classes

Parameters:
clazz -
Throws:
TreeException - DOCUMENT ME!

addField

public void addField(int len)
For classes with unknown length; this values will be threated as Strings and truncated at the specified len

Parameters:
len -

getCharset

public Charset getCharset()
Character set values are encoded in.


getLen

public int getLen()
Gets the max len of the data


getEncodedLen

public int getEncodedLen()
Gets the len of this field after the encoding, this method may be different from getLen() only if exists strings in the definition



Copyright © 1996-2009 Geotools. All Rights Reserved.