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 AGEEMAILFIRST_NAMELAST_NAMEPREFERRED_FORMATTWITTER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultValue()StringgetDescription()StringgetKey()ClassgetType()booleanisFinal()booleanisTransient()voidsetDefaultValue(String defaultValue)voidsetFinal(boolean _final)voidsetTransient(boolean _transient)static NuitonConfigExampleConfigOptionvalueOf(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:
getKeyin interfaceConfigOptionDef
-
getType
public Class getType()
- Specified by:
getTypein interfaceConfigOptionDef
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceConfigOptionDef
-
getDefaultValue
public String getDefaultValue()
- Specified by:
getDefaultValuein interfaceConfigOptionDef
-
setDefaultValue
public void setDefaultValue(String defaultValue)
- Specified by:
setDefaultValuein interfaceConfigOptionDef
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceConfigOptionDef
-
setTransient
public void setTransient(boolean _transient)
- Specified by:
setTransientin interfaceConfigOptionDef
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin interfaceConfigOptionDef
-
setFinal
public void setFinal(boolean _final)
- Specified by:
setFinalin interfaceConfigOptionDef
-
-