Enum DataTypeWrapper
- java.lang.Object
-
- java.lang.Enum<DataTypeWrapper>
-
- org.gcube.portlets.widgets.ckandatapublisherwidget.shared.metadata.DataTypeWrapper
-
- All Implemented Interfaces:
Serializable,Comparable<DataTypeWrapper>
public enum DataTypeWrapper extends Enum<DataTypeWrapper>
Data type.- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
- See Also:
DataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BooleanGeoJSONNumberStringTextTimeTime_IntervalTimes_ListOf
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringvalue()Value as String.static DataTypeWrappervalueOf(String name)Returns the enum constant of this type with the specified name.static DataTypeWrapper[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
String
public static final DataTypeWrapper String
-
Time
public static final DataTypeWrapper Time
-
Time_Interval
public static final DataTypeWrapper Time_Interval
-
Times_ListOf
public static final DataTypeWrapper Times_ListOf
-
Text
public static final DataTypeWrapper Text
-
Boolean
public static final DataTypeWrapper Boolean
-
Number
public static final DataTypeWrapper Number
-
GeoJSON
public static final DataTypeWrapper GeoJSON
-
-
Method Detail
-
values
public static DataTypeWrapper[] 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 (DataTypeWrapper c : DataTypeWrapper.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataTypeWrapper 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
-
value
public String value()
Value as String.- Returns:
- the string
-
-