Package ddf.catalog.data
Enum Class AttributeType.AttributeFormat
- All Implemented Interfaces:
Serializable,Comparable<AttributeType.AttributeFormat>,Constable
- Enclosing interface:
AttributeType<T extends Serializable>
Enumeration used to indicate formats of Attributes. Because JDK 1.6
cannot switch on instanceof, an Enumeration is used instead.- Author:
- Michael Menousek
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttributes of thisAttributeType.AttributeFormatmust have a value that is a Javabyte[]andAttributeType.getBinding()should returnClass<Array>ofbyte.Attributes of thisAttributeType.AttributeFormatmust have a value that is a WKT-formatted JavaString.Attributes of thisAttributeType.AttributeFormatmust have a value that implements theSerializableinterface.Attributes of thisAttributeType.AttributeFormatmust have a value that is a Java String and treated as plain text.Attributes of thisAttributeType.AttributeFormatmust have a value that is a XML-formatted JavaString. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AttributeType.AttributeFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
Attributes of thisAttributeType.AttributeFormatmust have a value that is a Java String and treated as plain text. -
BOOLEAN
-
DATE
-
SHORT
-
INTEGER
-
LONG
-
FLOAT
-
DOUBLE
-
GEOMETRY
Attributes of thisAttributeType.AttributeFormatmust have a value that is a WKT-formatted JavaString. -
BINARY
Attributes of thisAttributeType.AttributeFormatmust have a value that is a Javabyte[]andAttributeType.getBinding()should returnClass<Array>ofbyte. -
XML
Attributes of thisAttributeType.AttributeFormatmust have a value that is a XML-formatted JavaString. -
OBJECT
Attributes of thisAttributeType.AttributeFormatmust have a value that implements theSerializableinterface. Additional processing (indexing,tokenizing) will not be performed even if indicated by theAttributeDescriptor.
NOTE: In order for classes to be deserialized by a
Source, that class must exist on the classpath of thatSource. This may require additional parameters to be set such as DynamicImport-Package in order for the ddf.catalog.source.Source to accommodate OBJECT format.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-