Package org.apache.solr.util
Class DataConfigNode
- java.lang.Object
-
- org.apache.solr.util.DataConfigNode
-
- All Implemented Interfaces:
org.apache.solr.common.ConfigNode
public class DataConfigNode extends Object implements org.apache.solr.common.ConfigNode
ConfigNode impl that applies property substitutions on access.This class wraps another
ConfigNodeand applies property substitution immediately when thetxt()orattributes()methods are called. Because property substition is based on ThreadLocal values, These methods MUST be called while those variables are "active"- See Also:
ConfigNode.SUBSTITUTES,PropertiesUtil.substitute(java.lang.String, java.util.function.Function<java.lang.String, java.lang.String>)
-
-
Constructor Summary
Constructors Constructor Description DataConfigNode(org.apache.solr.common.ConfigNode root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>attributes()Each call to this method returns a (new) copy of the original Map with substitions applied to the values.org.apache.solr.common.ConfigNodechild(String name)voidforEachChild(Function<org.apache.solr.common.ConfigNode,Boolean> fun)List<org.apache.solr.common.ConfigNode>getAll(String name)List<org.apache.solr.common.ConfigNode>getAll(Set<String> names, Predicate<org.apache.solr.common.ConfigNode> test)Stringname()Stringtxt()Each call to this method returns a (new) copy of the original txt with substitions applied.
-
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceorg.apache.solr.common.ConfigNode
-
txt
public String txt()
Each call to this method returns a (new) copy of the original txt with substitions applied.- Specified by:
txtin interfaceorg.apache.solr.common.ConfigNode
-
attributes
public Map<String,String> attributes()
Each call to this method returns a (new) copy of the original Map with substitions applied to the values.- Specified by:
attributesin interfaceorg.apache.solr.common.ConfigNode
-
child
public org.apache.solr.common.ConfigNode child(String name)
- Specified by:
childin interfaceorg.apache.solr.common.ConfigNode
-
getAll
public List<org.apache.solr.common.ConfigNode> getAll(String name)
- Specified by:
getAllin interfaceorg.apache.solr.common.ConfigNode
-
getAll
public List<org.apache.solr.common.ConfigNode> getAll(Set<String> names, Predicate<org.apache.solr.common.ConfigNode> test)
- Specified by:
getAllin interfaceorg.apache.solr.common.ConfigNode
-
-