org.openmuc.openiec61850
public abstract class ModelNode extends java.lang.Object implements java.lang.Iterable<ModelNode>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,ModelNode> |
children |
protected ObjectReference |
objectReference |
| Constructor and Description |
|---|
ModelNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract ModelNode |
copy()
Returns a copy of model node with all of its children.
|
java.util.List<BasicDataAttribute> |
getBasicDataAttributes()
Returns a list of all leaf nodes (basic data attributes) contained in the subtree of this model node.
|
ModelNode |
getChild(java.lang.String name)
Returns the child node with the given name.
|
ModelNode |
getChild(java.lang.String name,
Fc fc)
Returns the child node with the given name and functional constraint.
|
java.util.Collection<ModelNode> |
getChildren() |
protected java.util.Iterator<java.util.Iterator<? extends ModelNode>> |
getIterators() |
java.lang.String |
getName()
Returns the name of the model node.
|
ModelNode |
getParent()
Returns the parent node of this node.
|
ObjectReference |
getReference()
Returns the reference of the model node.
|
java.util.Iterator<ModelNode> |
iterator() |
java.lang.String |
toString() |
protected ObjectReference objectReference
protected java.util.Map<java.lang.String,ModelNode> children
public abstract ModelNode copy()
public ModelNode getChild(java.lang.String name)
getChild(String name, Fc fc) instead.name - the name of the requested child nodepublic ModelNode getChild(java.lang.String name, Fc fc)
name - the name of the requested child nodefc - the functional constraint of the requested child nodepublic java.util.Collection<ModelNode> getChildren()
protected java.util.Iterator<java.util.Iterator<? extends ModelNode>> getIterators()
public ObjectReference getReference()
public java.lang.String getName()
public java.util.Iterator<ModelNode> iterator()
iterator in interface java.lang.Iterable<ModelNode>public java.util.List<BasicDataAttribute> getBasicDataAttributes()
public java.lang.String toString()
toString in class java.lang.Objectpublic ModelNode getParent()