Enum PropertyTypeName.BaseType
- java.lang.Object
-
- java.lang.Enum<PropertyTypeName.BaseType>
-
- org.gcube.informationsystem.types.PropertyTypeName.BaseType
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyTypeName.BaseType>
- Enclosing class:
- PropertyTypeName
public static enum PropertyTypeName.BaseType extends Enum<PropertyTypeName.BaseType>
The fundamental data types for properties.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYA generic type.BINARYA binary type.BOOLEANA boolean type.BYTEA byte type.DATEA date type.DOUBLEA double type.FLOATA float type.INTEGERAn integer type.JSON_ARRAYA JSON array type.JSON_OBJECTA JSON object type.LISTA list type.LONGA long type.MAPA map type.PROPERTYA property type.SETA set type.SHORTA short type.STRINGA string type.
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,PropertyTypeName.BaseType>mapA map of base types, keyed by string representation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyTypeName.BaseTypegetBaseTypeFromString(String type)Returns theBaseTypeenum constant from its string representation.StringtoString()static PropertyTypeName.BaseTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyTypeName.BaseType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final PropertyTypeName.BaseType ANY
A generic type.
-
BOOLEAN
public static final PropertyTypeName.BaseType BOOLEAN
A boolean type.
-
INTEGER
public static final PropertyTypeName.BaseType INTEGER
An integer type.
-
SHORT
public static final PropertyTypeName.BaseType SHORT
A short type.
-
LONG
public static final PropertyTypeName.BaseType LONG
A long type.
-
FLOAT
public static final PropertyTypeName.BaseType FLOAT
A float type.
-
DOUBLE
public static final PropertyTypeName.BaseType DOUBLE
A double type.
-
DATE
public static final PropertyTypeName.BaseType DATE
A date type.
-
STRING
public static final PropertyTypeName.BaseType STRING
A string type.
-
BINARY
public static final PropertyTypeName.BaseType BINARY
A binary type.
-
BYTE
public static final PropertyTypeName.BaseType BYTE
A byte type.
-
JSON_OBJECT
public static final PropertyTypeName.BaseType JSON_OBJECT
A JSON object type.
-
JSON_ARRAY
public static final PropertyTypeName.BaseType JSON_ARRAY
A JSON array type.
-
PROPERTY
public static final PropertyTypeName.BaseType PROPERTY
A property type.
-
LIST
public static final PropertyTypeName.BaseType LIST
A list type.
-
SET
public static final PropertyTypeName.BaseType SET
A set type.
-
MAP
public static final PropertyTypeName.BaseType MAP
A map type.
-
-
Field Detail
-
map
protected static final Map<String,PropertyTypeName.BaseType> map
A map of base types, keyed by string representation.
-
-
Method Detail
-
values
public static PropertyTypeName.BaseType[] 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 (PropertyTypeName.BaseType c : PropertyTypeName.BaseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyTypeName.BaseType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<PropertyTypeName.BaseType>
-
getBaseTypeFromString
public static PropertyTypeName.BaseType getBaseTypeFromString(String type)
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.
-
-