Enum ConfigItem.Type
- java.lang.Object
-
- java.lang.Enum<ConfigItem.Type>
-
- org.opennms.features.config.dao.api.ConfigItem.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigItem.Type>
- Enclosing class:
- ConfigItem
public static enum ConfigItem.Type extends Enum<ConfigItem.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_TYPE
ARRAY
BOOLEAN
DATE
DATE_TIME
INTEGER
LONG
NEGATIVE_INTEGER
NON_NEGATIVE_INTEGER
NUMBER
OBJECT
POSITIVE_INTEGER
SIMPLE_TYPE
STRING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSimple()
static ConfigItem.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigItem.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT
public static final ConfigItem.Type OBJECT
-
ARRAY
public static final ConfigItem.Type ARRAY
-
STRING
public static final ConfigItem.Type STRING
-
NUMBER
public static final ConfigItem.Type NUMBER
-
INTEGER
public static final ConfigItem.Type INTEGER
-
LONG
public static final ConfigItem.Type LONG
-
BOOLEAN
public static final ConfigItem.Type BOOLEAN
-
DATE
public static final ConfigItem.Type DATE
-
DATE_TIME
public static final ConfigItem.Type DATE_TIME
-
POSITIVE_INTEGER
public static final ConfigItem.Type POSITIVE_INTEGER
-
NON_NEGATIVE_INTEGER
public static final ConfigItem.Type NON_NEGATIVE_INTEGER
-
NEGATIVE_INTEGER
public static final ConfigItem.Type NEGATIVE_INTEGER
-
ANY_TYPE
public static final ConfigItem.Type ANY_TYPE
-
SIMPLE_TYPE
public static final ConfigItem.Type SIMPLE_TYPE
-
-
Method Detail
-
values
public static ConfigItem.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 (ConfigItem.Type c : ConfigItem.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 ConfigItem.Type 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
-
isSimple
public boolean isSimple()
-
-