org.opengis.feature
Class DataType
- java.lang.Object
-
- org.opengis.util.CodeList<DataType>
-
- org.opengis.feature.DataType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.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
Fields Modifier and Type Field and Description static DataTypeDATETIMEConstant to be used when the value of an attribute is a date/time.static DataTypeDECIMALConstant to be used when the value of an attribute is stored as a string containing the decimal representation of a number.static DataTypeDOUBLEConstant to be used when the value of an attribute is stored as a binary floating point value (such as IEEE-754).static DataTypeGEOMETRYConstant to be used when the value of an attribute is a geometry of some kind.static DataTypeINTEGERConstant to be used when the value of an attribute is stored as a binary integer.static DataTypeOBJECTConstant to be used when the value of an attribute is a Java object that represents some complex type.static DataTypeSTRINGConstant to be used when the value of an attribute is stored as a string of arbitrary characters.static DataTypeSTYLEConstant to be used when the value of an attribute is an instance ofFeatureStyle.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description CodeList[]family()Returns the list of enumerations of the same kind than this enum.static DataType[]values()Returns the list ofDataTypes.
-
-
-
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 ofFeaturewill likely not be able to deal with complex types and will simply use theObject.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 ofGeometry. See the package documentation fororg.opengis.featurefor 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 ofFeatureStyle. Such an attribute may be used in the portrayal of the geometry contained by a feature.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG