Package org.apache.solr.util
Class DataConfigNode
- java.lang.Object
-
- org.apache.solr.util.DataConfigNode
-
- All Implemented Interfaces:
ConfigNode
public class DataConfigNode extends Object implements ConfigNode
ConfigNode impl that copies and maintains data internally from DOM
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.ConfigNode
ConfigNode.Helpers
-
-
Field Summary
Fields Modifier and Type Field Description SimpleMap<String>
attributes
static SimpleMap<List<ConfigNode>>
EMPTY
SimpleMap<List<ConfigNode>>
kids
String
name
String
textData
-
Fields inherited from interface org.apache.solr.common.ConfigNode
empty_attrs, SUBSTITUTES
-
-
Constructor Summary
Constructors Constructor Description DataConfigNode(ConfigNode root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleMap<String>
attributes()
ConfigNode
child(String name)
void
forEachChild(Function<ConfigNode,Boolean> fun)
List<ConfigNode>
getAll(String name)
List<ConfigNode>
getAll(Predicate<ConfigNode> test, Set<String> matchNames)
String
name()
String
subtituteVal(String s)
String
txt()
-
-
-
Field Detail
-
name
public final String name
-
kids
public final SimpleMap<List<ConfigNode>> kids
-
textData
public final String textData
-
EMPTY
public static final SimpleMap<List<ConfigNode>> EMPTY
-
-
Constructor Detail
-
DataConfigNode
public DataConfigNode(ConfigNode root)
-
-
Method Detail
-
name
public String name()
- Specified by:
name
in interfaceConfigNode
-
txt
public String txt()
- Specified by:
txt
in interfaceConfigNode
-
attributes
public SimpleMap<String> attributes()
- Specified by:
attributes
in interfaceConfigNode
-
child
public ConfigNode child(String name)
- Specified by:
child
in interfaceConfigNode
-
getAll
public List<ConfigNode> getAll(String name)
- Specified by:
getAll
in interfaceConfigNode
-
getAll
public List<ConfigNode> getAll(Predicate<ConfigNode> test, Set<String> matchNames)
- Specified by:
getAll
in interfaceConfigNode
-
forEachChild
public void forEachChild(Function<ConfigNode,Boolean> fun)
- Specified by:
forEachChild
in interfaceConfigNode
-
-