Class AttributeType
- java.lang.Object
-
- org.locationtech.jts.jump.feature.AttributeType
-
- All Implemented Interfaces:
Serializable
public class AttributeType extends Object implements Serializable
Whether an attribute on a feature is a string, geometry, integer, etc.- See Also:
FeatureSchema, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeTypeDATEFor datesstatic AttributeTypeDOUBLEFor double-precision values (64-bit)static AttributeTypeGEOMETRYFor spatial datastatic AttributeTypeINTEGERFor long values (64-bit)static AttributeTypeOBJECTExperimentalstatic AttributeTypeSTRINGFor strings
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectionallTypes()Returns all instances of AttributeType.static AttributeTypetoAttributeType(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 AttributeTypetoAttributeType(String name)Converts a type name to an AttributeType.ClasstoJavaClass()Returns the Java class of attributes that are said to be of this AttributeType.StringtoString()
-
-
-
Field Detail
-
STRING
public static final AttributeType STRING
For strings
-
GEOMETRY
public static final AttributeType GEOMETRY
For spatial data
-
INTEGER
public static final AttributeType INTEGER
For long values (64-bit)
-
DATE
public static final AttributeType DATE
For dates- See Also:
Date
-
DOUBLE
public static final AttributeType DOUBLE
For double-precision values (64-bit)
-
OBJECT
public static final AttributeType OBJECT
Experimental
-
-
Method Detail
-
allTypes
public static Collection allTypes()
Returns all instances of AttributeType.
-
toAttributeType
public static final AttributeType toAttributeType(String name)
Converts a type name to an AttributeType.- Parameters:
typename- the name of the AttributeType to retrieve- Returns:
- the corresponding AttributeType
- Throws:
InvalidAttributeTypeException- if the type name is unrecognized
-
toJavaClass
public Class toJavaClass()
Returns the Java class of attributes that are said to be of this AttributeType.
-
toAttributeType
public static AttributeType toAttributeType(Class javaClass)
Returns the AttributeType of attributes that are instances of the given class, or null if it is not associated with any AttributeType.
-
-