Enum Class FeatureEnum
- All Implemented Interfaces:
Serializable,Comparable<FeatureEnum>,Constable
Configuration enabling toggle.
The enum values are lower case in the XSD to allow using the usual boolean true/false values. Potentially breaking changes:
The enum values are lower case in the XSD to allow using the usual boolean true/false values. Potentially breaking changes:
- Since 1.7.0 the values are accepted just in lower case (with 1.6.0 in any case, before only lower case).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureEnumReturns the enum constant of this class with the specified name.static FeatureEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUE
Enabled -
FALSE
Disabled. XTB will load and validate the configuration, but not use it. -
INVALID
Configuration invalid or not yet ready for enabling. XTB will not load the config.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-