Package org.nuiton.config.example
Enum NuitonConfigExampleConfigOption
java.lang.Object
java.lang.Enum<NuitonConfigExampleConfigOption>
org.nuiton.config.example.NuitonConfigExampleConfigOption
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NuitonConfigExampleConfigOption>
,java.lang.constant.Constable
,ConfigOptionDef
public enum NuitonConfigExampleConfigOption extends java.lang.Enum<NuitonConfigExampleConfigOption> implements ConfigOptionDef
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AGE
EMAIL
FIRST_NAME
LAST_NAME
PREFERRED_FORMAT
TWITTER
-
Method Summary
Modifier and Type Method Description java.lang.String
getDefaultValue()
java.lang.String
getDescription()
java.lang.String
getKey()
java.lang.Class
getType()
boolean
isFinal()
boolean
isTransient()
void
setDefaultValue(java.lang.String defaultValue)
void
setFinal(boolean _final)
void
setTransient(boolean _transient)
static NuitonConfigExampleConfigOption
valueOf(java.lang.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 Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getKey
public java.lang.String getKey()- Specified by:
getKey
in interfaceConfigOptionDef
-
getType
public java.lang.Class getType()- Specified by:
getType
in interfaceConfigOptionDef
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceConfigOptionDef
-
getDefaultValue
public java.lang.String getDefaultValue()- Specified by:
getDefaultValue
in interfaceConfigOptionDef
-
setDefaultValue
public void setDefaultValue(java.lang.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
-