public interface ConfigNode
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Function<String,String>> |
SUBSTITUTES |
Modifier and Type | Method and Description |
---|---|
SimpleMap<String> |
attributes()
Attributes
|
default ConfigNode |
child(Predicate<ConfigNode> test,
String name)
Iterate through child nodes with the name and return the first child that matches
|
default ConfigNode |
child(String name)
Child by name
|
default List<ConfigNode> |
children(Predicate<ConfigNode> test,
Set<String> matchNames)
Iterate through child nodes with the names and return all the matching children
|
default List<ConfigNode> |
children(Predicate<ConfigNode> test,
String... nodeNames)
Iterate through child nodes with the names and return all the matching children
|
default List<ConfigNode> |
children(String name) |
void |
forEachChild(Function<ConfigNode,Boolean> fun)
abortable iterate through children
|
String |
name()
Name of the tag
|
String |
textValue()
Text value of the node
|
static final ThreadLocal<Function<String,String>> SUBSTITUTES
String name()
String textValue()
default ConfigNode child(String name)
default ConfigNode child(Predicate<ConfigNode> test, String name)
default List<ConfigNode> children(Predicate<ConfigNode> test, String... nodeNames)
nodeNames
- names of tags to be returnedtest
- check for the nodes to be returneddefault List<ConfigNode> children(Predicate<ConfigNode> test, Set<String> matchNames)
matchNames
- names of tags to be returnedtest
- check for the nodes to be returneddefault List<ConfigNode> children(String name)
void forEachChild(Function<ConfigNode,Boolean> fun)
fun
- consume the node and return true to continue or false to abortCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.