- 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 ConstantDescriptionConfig node does not exists. -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
Returnstrue
if the node exists, either as an object, a list or as a value node.boolean
isLeaf()
Returnstrue
if this configuration node is existing a value node.static Config.Type
Returns 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()Returnstrue
if the node exists, either as an object, a list or as a value node.- Returns:
true
if the node exists
-
isLeaf
public boolean isLeaf()Returnstrue
if 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:
true
if the node is existing leaf node,false
otherwise.
-