Enum Class PropertyTypeName.BaseType
java.lang.Object
java.lang.Enum<PropertyTypeName.BaseType>
org.gcube.informationsystem.types.PropertyTypeName.BaseType
- All Implemented Interfaces:
Serializable,Comparable<PropertyTypeName.BaseType>,Constable
- Enclosing class:
- PropertyTypeName
The fundamental data types for properties.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA generic type.A binary type.A boolean type.A byte type.A date type.A double type.A float type.An integer type.A JSON array type.A JSON object type.A list type.A long type.A map type.A property type.A set type.A short type.A string type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<String,PropertyTypeName.BaseType> A map of base types, keyed by string representation. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyTypeName.BaseTypegetBaseTypeFromString(String type) Returns theBaseTypeenum constant from its string representation.toString()static PropertyTypeName.BaseTypeReturns the enum constant of this class with the specified name.static PropertyTypeName.BaseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
A generic type. -
BOOLEAN
A boolean type. -
INTEGER
An integer type. -
SHORT
A short type. -
LONG
A long type. -
FLOAT
A float type. -
DOUBLE
A double type. -
DATE
A date type. -
STRING
A string type. -
BINARY
A binary type. -
BYTE
A byte type. -
JSON_OBJECT
A JSON object type. -
JSON_ARRAY
A JSON array type. -
PROPERTY
A property type. -
LIST
A list type. -
SET
A set type. -
MAP
A map type.
-
-
Field Details
-
map
A map of base types, keyed by string representation.
-
-
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
-
toString
- Overrides:
toStringin classEnum<PropertyTypeName.BaseType>
-
getBaseTypeFromString
Returns theBaseTypeenum constant from its string representation.- Parameters:
type- The string representation of the type.- Returns:
- The corresponding
BaseType. - Throws:
IllegalArgumentException- if the string does not match any known base type.
-