Package org.nuiton.jaxx.demo
Enum DemoConfig.Option
- java.lang.Object
-
- java.lang.Enum<DemoConfig.Option>
-
- org.nuiton.jaxx.demo.DemoConfig.Option
-
- All Implemented Interfaces:
io.ultreia.java4all.config.ConfigOptionDef,Serializable,Comparable<DemoConfig.Option>
- Enclosing class:
- DemoConfig
public static enum DemoConfig.Option extends Enum<DemoConfig.Option> implements io.ultreia.java4all.config.ConfigOptionDef
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIG_FILEDEMO_CLASSDEMO_COLORDEMO_PATHFONT_SIZEFULL_SCREENKEY_OPEN_CONFIGLOCALELOG_LEVELLOG_PATTERN_LAYOUT
-
Field Summary
Fields Modifier and Type Field Description boolean_finalboolean_transientStringdefaultValueStringdescriptionStringkeyClass<?>type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultValue()StringgetDescription()StringgetKey()Class<?>getType()booleanisFinal()booleanisTransient()voidsetDefaultValue(String defaultValue)voidsetFinal(boolean _final)voidsetTransient(boolean _transient)static DemoConfig.OptionvalueOf(String name)Returns the enum constant of this type with the specified name.static DemoConfig.Option[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONFIG_FILE
public static final DemoConfig.Option CONFIG_FILE
-
FULL_SCREEN
public static final DemoConfig.Option FULL_SCREEN
-
LOCALE
public static final DemoConfig.Option LOCALE
-
FONT_SIZE
public static final DemoConfig.Option FONT_SIZE
-
DEMO_COLOR
public static final DemoConfig.Option DEMO_COLOR
-
DEMO_CLASS
public static final DemoConfig.Option DEMO_CLASS
-
LOG_LEVEL
public static final DemoConfig.Option LOG_LEVEL
-
LOG_PATTERN_LAYOUT
public static final DemoConfig.Option LOG_PATTERN_LAYOUT
-
KEY_OPEN_CONFIG
public static final DemoConfig.Option KEY_OPEN_CONFIG
-
DEMO_PATH
public static final DemoConfig.Option DEMO_PATH
-
-
Method Detail
-
values
public static DemoConfig.Option[] 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 (DemoConfig.Option c : DemoConfig.Option.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DemoConfig.Option 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
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin interfaceio.ultreia.java4all.config.ConfigOptionDef
-
setDefaultValue
public void setDefaultValue(String defaultValue)
- Specified by:
setDefaultValuein interfaceio.ultreia.java4all.config.ConfigOptionDef
-
setTransient
public void setTransient(boolean _transient)
- Specified by:
setTransientin interfaceio.ultreia.java4all.config.ConfigOptionDef
-
setFinal
public void setFinal(boolean _final)
- Specified by:
setFinalin interfaceio.ultreia.java4all.config.ConfigOptionDef
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceio.ultreia.java4all.config.ConfigOptionDef
-
getDefaultValue
public String getDefaultValue()
- Specified by:
getDefaultValuein interfaceio.ultreia.java4all.config.ConfigOptionDef
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceio.ultreia.java4all.config.ConfigOptionDef
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceio.ultreia.java4all.config.ConfigOptionDef
-
getType
public Class<?> getType()
- Specified by:
getTypein interfaceio.ultreia.java4all.config.ConfigOptionDef
-
-