public static enum AttributeType.AttributeFormat extends Enum<AttributeType.AttributeFormat>
Enumeration
used to indicate formats of Attribute
s. Because JDK 1.6
cannot switch on instanceof
, an Enumeration
is used instead.Enum Constant and Description |
---|
BINARY
Attribute s of this AttributeType.AttributeFormat must have a value that is a Java
byte[] and AttributeType.getBinding() should return
Class<Array> of byte . |
BOOLEAN
|
DATE
|
DOUBLE
|
FLOAT
|
GEOMETRY
Attribute s of this AttributeType.AttributeFormat must have a value that is a
WKT-formatted Java String . |
INTEGER
|
LONG
|
OBJECT
Attribute s of this AttributeType.AttributeFormat must have a value that implements
the Serializable interface. |
SHORT
|
STRING
Attribute s of this AttributeType.AttributeFormat must have a value that is a Java
String and treated as plain text. |
XML
Attribute s of this AttributeType.AttributeFormat must have a value that is a
XML-formatted Java String . |
Modifier and Type | Method and Description |
---|---|
static AttributeType.AttributeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeType.AttributeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeType.AttributeFormat STRING
Attribute
s of this AttributeType.AttributeFormat
must have a value that is a Java
String and treated as plain text.public static final AttributeType.AttributeFormat BOOLEAN
public static final AttributeType.AttributeFormat DATE
public static final AttributeType.AttributeFormat SHORT
public static final AttributeType.AttributeFormat INTEGER
public static final AttributeType.AttributeFormat LONG
public static final AttributeType.AttributeFormat FLOAT
public static final AttributeType.AttributeFormat DOUBLE
public static final AttributeType.AttributeFormat GEOMETRY
Attribute
s of this AttributeType.AttributeFormat
must have a value that is a
WKT-formatted Java String
.public static final AttributeType.AttributeFormat BINARY
Attribute
s of this AttributeType.AttributeFormat
must have a value that is a Java
byte[]
and AttributeType.getBinding()
should return
Class<Array>
of byte
.public static final AttributeType.AttributeFormat XML
Attribute
s of this AttributeType.AttributeFormat
must have a value that is a
XML-formatted Java String
.public static final AttributeType.AttributeFormat OBJECT
Attribute
s of this AttributeType.AttributeFormat
must have a value that implements
the Serializable
interface. Additional processing ( indexing
, tokenizing
) will not be performed even if indicated by the AttributeDescriptor
.
NOTE: In order for classes to be deserialized by a Source
, that class must exist on the classpath of that Source
. This may require additional parameters to be set such as
DynamicImport-Package in order for the ddf.catalog.source.Source to accommodate OBJECT
format.
Serializable
public static AttributeType.AttributeFormat[] values()
for (AttributeType.AttributeFormat c : AttributeType.AttributeFormat.values()) System.out.println(c);
public static AttributeType.AttributeFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullThis work is licensed under a Creative Commons Attribution 4.0 International License.