Package io.helidon.config
Enum Config.Type
- java.lang.Object
-
- java.lang.Enum<Config.Type>
-
- io.helidon.config.Config.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Config.Type>
- Enclosing interface:
- Config
public static enum Config.Type extends Enum<Config.Type>
Configuration node types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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
valueOf(String name)
Returns the enum constant of this type with the specified name.static Config.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT
public static final Config.Type OBJECT
-
LIST
public static final Config.Type LIST
-
VALUE
public static final Config.Type VALUE
-
MISSING
public static final Config.Type MISSING
Config node does not exists.
-
-
Method Detail
-
values
public static Config.Type[] 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 (Config.Type c : Config.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Config.Type 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
-
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.
-
-