public class EffectiveNode extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map |
attributes
for a DescriptiveNode the description of parameters
not used for EffectiveNode (but might be with a copy of parameters description)
|
protected ArrayList<T> |
children |
protected String |
key
the key of the node
|
protected static Logger |
logger |
protected String |
name
todo: righ now key and name should be the same ..
|
protected IndirectMap<String,org.lsst.ccs.description.ComponentNode> |
nodeDict
A dictionary of all nodes in the tree.
|
protected T |
parent |
protected Z |
realValue
for DescriptiveNode the Class of the future object
for an EffectiveNode the actual object
|
| Constructor and Description |
|---|
EffectiveNode(IndirectMap<String,org.lsst.ccs.description.ComponentNode> registry,
String name,
String key,
Object value,
DescriptiveNode descriptiveNode) |
protected static final Logger logger
protected IndirectMap<String,org.lsst.ccs.description.ComponentNode> nodeDict
protected String key
protected T extends org.lsst.ccs.description.ComponentNode<T,Z> parent
protected ArrayList<T extends org.lsst.ccs.description.ComponentNode<T,Z>> children
protected String name
protected Z realValue
protected Map attributes
public EffectiveNode(IndirectMap<String,org.lsst.ccs.description.ComponentNode> registry, String name, String key, Object value, DescriptiveNode descriptiveNode)
public DescriptiveNode getDescriptiveNode()
public void adoptOrphans(IndirectMap<String,org.lsst.ccs.description.ComponentNode> registry, ArrayList<EffectiveNode> children, EffectiveNode parent) throws NullPointerException, IllegalArgumentException
registry - children - parent - NullPointerExceptionIllegalArgumentExceptionpublic IndirectMap getNodeDict()
@Deprecated public void setNodeDict(IndirectMap<String,org.lsst.ccs.description.ComponentNode> registry)
protected void checkDict(T parent, String name, Map attributes)
parent - name - attributes - protected void setDict(IndirectMap<String,org.lsst.ccs.description.ComponentNode> registry, String name, Map attributes)
registry - name - attributes - public String getName()
public Z getRealValue()
public org.lsst.ccs.description.ComponentNode getNodeByName(String name)
public Map getAttributes()
public String getKey()
public ArrayList<T> getChildren()
public void addChild(T child) throws NullPointerException
child - to be added to the nodeNullPointerException - if child is nullpublic T getParent()
public <V> void proceduralWalk(Class<V> klass, java.util.function.Consumer<V> pre, java.util.function.Consumer<V> post)
public void proceduralNodeWalk(java.util.function.Consumer<T> pre, java.util.function.Consumer<T> post)
public <V> TreeWalkerDiag treeWalk(Class<V> klass, java.util.function.Function<V,TreeWalkerDiag> func, java.util.function.Consumer<V> post)
func - post - TreeWalkerDiag indicating how the next Configurable
should be handledCopyright © 2015 LSST. All rights reserved.