GeoAPI 2.0
Build 2005-06-08

org.opengis.feature
Class DataType

Object
  extended by CodeList<DataType>
      extended by DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>

public final class DataType
extends CodeList<DataType>

Enumeration class whose static constants give the possible data types for Feature attributes.

Since:
GeoAPI 2.0
See Also:
Serialized Form

Field Summary
static DataType DATETIME
          Constant to be used when the value of an attribute is a date/time.
static DataType DECIMAL
          Constant to be used when the value of an attribute is stored as a string containing the decimal representation of a number.
static DataType DOUBLE
          Constant to be used when the value of an attribute is stored as a binary floating point value (such as IEEE-754).
static DataType GEOMETRY
          Constant to be used when the value of an attribute is a geometry of some kind.
static DataType INTEGER
          Constant to be used when the value of an attribute is stored as a binary integer.
static DataType OBJECT
          Constant to be used when the value of an attribute is a Java object that represents some complex type.
static DataType STRING
          Constant to be used when the value of an attribute is stored as a string of arbitrary characters.
static DataType STYLE
          Constant to be used when the value of an attribute is an instance of FeatureStyle.
 
Method Summary
 DataType[] family()
          Returns the list of enumerations of the same kind than this enum.
static DataType[] values()
          Returns the list of DataTypes.
 
Methods inherited from class CodeList
compareTo, name, ordinal, readResolve, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTEGER

public static final DataType INTEGER
Constant to be used when the value of an attribute is stored as a binary integer. The "size" of such as attribute should be interpreted as the number of bytes used to store the integer. Some systems may require that the size be one of 1, 2, 4, or 8.


DECIMAL

public static final DataType DECIMAL
Constant to be used when the value of an attribute is stored as a string containing the decimal representation of a number. The "size" of such an attribute should be interpreted as the maximum number of digits (including the negative sign and decimal point as digits) in the value. The "precision" should be interpreted as the maximum number of digits after the decimal point.


DOUBLE

public static final DataType DOUBLE
Constant to be used when the value of an attribute is stored as a binary floating point value (such as IEEE-754). The "size" of such an attribute should be interpreted as the number of bytes used to store the number. Some systems may require that the size be either 4 or 8.


STRING

public static final DataType STRING
Constant to be used when the value of an attribute is stored as a string of arbitrary characters. The "size" of such an attribute should be interpreted as the maximum number of characters that can be stored in the given attribute.


DATETIME

public static final DataType DATETIME
Constant to be used when the value of an attribute is a date/time.


OBJECT

public static final DataType OBJECT
Constant to be used when the value of an attribute is a Java object that represents some complex type. Note that some consumers of Feature will likely not be able to deal with complex types and will simply use the Object.toString() method of this object to store the value as a String.


GEOMETRY

public static final DataType GEOMETRY
Constant to be used when the value of an attribute is a geometry of some kind. Such a value must be one of the allowed subclasses of Geometry. See the package documentation for org.opengis.feature for more details on the allowed geometries.


STYLE

public static final DataType STYLE
Constant to be used when the value of an attribute is an instance of FeatureStyle. Such an attribute may be used in the portrayal of the geometry contained by a feature.

Method Detail

values

public static DataType[] values()
Returns the list of DataTypes.


family

public DataType[] family()
Returns the list of enumerations of the same kind than this enum.

Specified by:
family in class CodeList<DataType>

GeoAPI 2.0
Build 2005-06-08

Symbols, terms and definitions
Copyright OpenGIS® Consortium