Package org.nuiton.config.example
Enum NuitonConfigExampleConfigOption
- java.lang.Object
-
- java.lang.Enum<NuitonConfigExampleConfigOption>
-
- org.nuiton.config.example.NuitonConfigExampleConfigOption
-
- All Implemented Interfaces:
Serializable
,Comparable<NuitonConfigExampleConfigOption>
,ConfigOptionDef
public enum NuitonConfigExampleConfigOption extends Enum<NuitonConfigExampleConfigOption> implements ConfigOptionDef
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGE
EMAIL
FIRST_NAME
LAST_NAME
PREFERRED_FORMAT
TWITTER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
String
getDescription()
String
getKey()
Class
getType()
boolean
isFinal()
boolean
isTransient()
void
setDefaultValue(String defaultValue)
void
setFinal(boolean _final)
void
setTransient(boolean _transient)
static NuitonConfigExampleConfigOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static NuitonConfigExampleConfigOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIRST_NAME
public static final NuitonConfigExampleConfigOption FIRST_NAME
-
LAST_NAME
public static final NuitonConfigExampleConfigOption LAST_NAME
-
EMAIL
public static final NuitonConfigExampleConfigOption EMAIL
-
TWITTER
public static final NuitonConfigExampleConfigOption TWITTER
-
AGE
public static final NuitonConfigExampleConfigOption AGE
-
PREFERRED_FORMAT
public static final NuitonConfigExampleConfigOption PREFERRED_FORMAT
-
-
Method Detail
-
values
public static NuitonConfigExampleConfigOption[] 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 (NuitonConfigExampleConfigOption c : NuitonConfigExampleConfigOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NuitonConfigExampleConfigOption 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
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceConfigOptionDef
-
getType
public Class getType()
- Specified by:
getType
in interfaceConfigOptionDef
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceConfigOptionDef
-
getDefaultValue
public String getDefaultValue()
- Specified by:
getDefaultValue
in interfaceConfigOptionDef
-
setDefaultValue
public void setDefaultValue(String defaultValue)
- Specified by:
setDefaultValue
in interfaceConfigOptionDef
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceConfigOptionDef
-
setTransient
public void setTransient(boolean _transient)
- Specified by:
setTransient
in interfaceConfigOptionDef
-
isFinal
public boolean isFinal()
- Specified by:
isFinal
in interfaceConfigOptionDef
-
setFinal
public void setFinal(boolean _final)
- Specified by:
setFinal
in interfaceConfigOptionDef
-
-