public static enum Config.Type extends Enum<Config.Type>
| Enum Constant and Description |
|---|
LIST
|
MISSING
Config node does not exists.
|
OBJECT
|
VALUE
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Returns
true if the node exists, either as an object, a list or as a value node. |
boolean |
isLeaf()
Returns
true 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.
|
public static final Config.Type OBJECT
public static final Config.Type LIST
public static final Config.Type VALUE
public static final Config.Type MISSING
public static Config.Type[] values()
for (Config.Type c : Config.Type.values()) System.out.println(c);
public static Config.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean exists()
true if the node exists, either as an object, a list or as a value node.true if the node existspublic boolean isLeaf()
true 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.
true if the node is existing leaf node, false otherwise.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.