public class AttributeType
extends java.lang.Object
implements java.io.Serializable
FeatureSchema
,
Serialized FormModifier and Type | Field and Description |
---|---|
static AttributeType |
DATE
For dates
|
static AttributeType |
DOUBLE
For double-precision values (64-bit)
|
static AttributeType |
GEOMETRY
For spatial data
|
static AttributeType |
INTEGER
For long values (64-bit)
|
static AttributeType |
OBJECT
Experimental
|
static AttributeType |
STRING
For strings
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection |
allTypes()
Returns all instances of AttributeType.
|
static AttributeType |
toAttributeType(java.lang.Class javaClass)
Returns the AttributeType of attributes that are instances of the given class,
or null if it is not associated with any AttributeType.
|
static AttributeType |
toAttributeType(java.lang.String name)
Converts a type name to an AttributeType.
|
java.lang.Class |
toJavaClass()
Returns the Java class of attributes that are said to be of this AttributeType.
|
java.lang.String |
toString() |
public static final AttributeType STRING
public static final AttributeType GEOMETRY
public static final AttributeType INTEGER
public static final AttributeType DATE
Date
public static final AttributeType DOUBLE
public static final AttributeType OBJECT
public static java.util.Collection allTypes()
public java.lang.String toString()
toString
in class java.lang.Object
public static final AttributeType toAttributeType(java.lang.String name)
name
- the name of the AttributeType to retrievejava.lang.IllegalArgumentException
- if the type name is unrecognizedpublic java.lang.Class toJavaClass()
public static AttributeType toAttributeType(java.lang.Class javaClass)