Package org.n52.faroe
Enum SettingType
- java.lang.Object
-
- java.lang.Enum<SettingType>
-
- org.n52.faroe.SettingType
-
- All Implemented Interfaces:
Serializable,Comparable<SettingType>
public enum SettingType extends Enum<SettingType>
Enum to describe the type of aSettingDefinitionandSettingValue.- Since:
- 1.0.0
- See Also:
SettingDefinition,SettingValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANType forBooleanandboolean.CHOICEType for a selection.FILEType forFile.INTEGERType forIntegerandint.MULTILINGUAL_STRINGType forLocalizedString.NUMERICType forDoubleanddouble.STRINGType forString.TIMEINSTANTType forDateTime.URIType forURI.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SettingTypefromString(String type)StringtoString()static StringtoString(SettingType type)static SettingTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SettingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final SettingType BOOLEAN
Type forBooleanandboolean.
-
INTEGER
public static final SettingType INTEGER
Type forIntegerandint.
-
FILE
public static final SettingType FILE
Type forFile.
-
NUMERIC
public static final SettingType NUMERIC
Type forDoubleanddouble.
-
STRING
public static final SettingType STRING
Type forString.
-
URI
public static final SettingType URI
Type forURI.
-
TIMEINSTANT
public static final SettingType TIMEINSTANT
Type forDateTime.
-
MULTILINGUAL_STRING
public static final SettingType MULTILINGUAL_STRING
Type forLocalizedString.
-
CHOICE
public static final SettingType CHOICE
Type for a selection.
-
-
Method Detail
-
values
public static SettingType[] 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 (SettingType c : SettingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SettingType 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
-
fromString
public static SettingType fromString(String type)
-
toString
public static String toString(SettingType type)
-
toString
public String toString()
- Overrides:
toStringin classEnum<SettingType>
-
-