Package com.attivio.sdk.schema
Enum SchemaField.Type
- java.lang.Object
-
- java.lang.Enum<SchemaField.Type>
-
- com.attivio.sdk.schema.SchemaField.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SchemaField.Type>
- Enclosing class:
- SchemaField
public static enum SchemaField.Type extends java.lang.Enum<SchemaField.Type>
All the valid field types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
The Boolean typeDATE
The Date type.DECIMAL
Decimal TypeDOUBLE
The Double typeFLOAT
The Float typeINTEGER
The Integer typeLONG
The Long typeMONEY
Money TypePOINT
The Point typeREFERENCE
Deprecated.will be removed in a future release.SHAPE
The Shape typeSTRING
The String typeTEXT
The Text type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchemaField.Type
fromExternal(java.lang.String s)
Converts an external value to a type valueboolean
isDate()
true
if the type is a date type.protected boolean
isFacet()
true
if this type supports faceting.boolean
isNumeric()
true
if the type is a numeric type.boolean
isTokenized()
true
if this field type can be tokenized.java.lang.String
toExternal()
Converts the type to its external formstatic SchemaField.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SchemaField.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final SchemaField.Type STRING
The String type
-
TEXT
public static final SchemaField.Type TEXT
The Text type
-
DATE
public static final SchemaField.Type DATE
The Date type.
-
INTEGER
public static final SchemaField.Type INTEGER
The Integer type
-
FLOAT
public static final SchemaField.Type FLOAT
The Float type
-
LONG
public static final SchemaField.Type LONG
The Long type
-
DOUBLE
public static final SchemaField.Type DOUBLE
The Double type
-
BOOLEAN
public static final SchemaField.Type BOOLEAN
The Boolean type
-
POINT
public static final SchemaField.Type POINT
The Point type
-
SHAPE
public static final SchemaField.Type SHAPE
The Shape type
-
REFERENCE
public static final SchemaField.Type REFERENCE
Deprecated.will be removed in a future release.
-
MONEY
public static final SchemaField.Type MONEY
Money Type
-
DECIMAL
public static final SchemaField.Type DECIMAL
Decimal Type
-
-
Method Detail
-
values
public static SchemaField.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SchemaField.Type c : SchemaField.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaField.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isFacet
protected boolean isFacet()
true
if this type supports faceting.
-
isNumeric
public boolean isNumeric()
true
if the type is a numeric type.
-
isDate
public boolean isDate()
true
if the type is a date type.
-
isTokenized
public boolean isTokenized()
true
if this field type can be tokenized.
-
toExternal
public java.lang.String toExternal()
Converts the type to its external form- Returns:
- the converted value
-
fromExternal
public static SchemaField.Type fromExternal(java.lang.String s)
Converts an external value to a type value- Parameters:
s
- the external value, if null or empty returns Type.String- Returns:
- the type
-
-