- All Implemented Interfaces:
Serializable,Comparable<Config.Type>,Constable
- Enclosing interface:
Config
Configuration node types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConfig node does not exists. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Returnstrueif the node exists, either as an object, a list or as a value node.booleanisLeaf()Returnstrueif this configuration node is existing a value node.static Config.TypeReturns the enum constant of this class with the specified name.static Config.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT
-
LIST
-
VALUE
-
MISSING
Config node does not exists.
-
-
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
-
exists
public boolean exists()Returnstrueif the node exists, either as an object, a list or as a value node.- Returns:
trueif the node exists
-
isLeaf
public boolean isLeaf()Returnstrueif this configuration node is existing a value node.Leaf configuration node does not contain any nested configuration sub-trees, but only a single associated value.
- Returns:
trueif the node is existing leaf node,falseotherwise.
-