org.openiec61850.common.model
Class ModelNode

java.lang.Object
  extended by org.openiec61850.common.model.ModelNode
All Implemented Interfaces:
java.lang.Iterable<ModelNode>
Direct Known Subclasses:
Array, BasicDataAttribute, ConstructedDataAttribute, ControlBlock, DataObject, DataSet, LogicalDevice, LogicalNode, OptFields, ReportControlBlock, Server, TriggerConditions

public abstract class ModelNode
extends java.lang.Object
implements java.lang.Iterable<ModelNode>


Field Summary
protected  java.util.Map<java.lang.String,ModelNode> children
           
protected  FunctionalConstraint fc
           
protected  ObjectReference objectReference
           
 
Constructor Summary
ModelNode()
           
 
Method Summary
abstract  ModelNode copy()
          Copies the whole node with all of its children.
 ModelNode findSubNode(ObjectReference objectReference, FunctionalConstraint fc)
           
 java.util.List<BasicDataAttribute> getBasicDataAttributes()
           
 ModelNode getChild(java.lang.String childName)
           
 ModelNode getChild(java.lang.String childName, FunctionalConstraint fc)
           
 java.util.Collection<ModelNode> getChildren()
           
 FunctionalConstraint getFunctionalConstraint()
           
protected  java.util.Iterator<java.util.Iterator<? extends ModelNode>> getIterators()
           
 java.lang.String getNodeName()
           
 ObjectReference getReference()
           
 java.util.Iterator<ModelNode> iterator()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

objectReference

protected ObjectReference objectReference

fc

protected FunctionalConstraint fc

children

protected java.util.Map<java.lang.String,ModelNode> children
Constructor Detail

ModelNode

public ModelNode()
Method Detail

copy

public abstract ModelNode copy()
Copies the whole node with all of its children. Creates new BasicDataAttribute values but reuses ObjectReferences, FunctionalConstraints.


getChild

public ModelNode getChild(java.lang.String childName)

getChild

public ModelNode getChild(java.lang.String childName,
                          FunctionalConstraint fc)

getChildren

public java.util.Collection<ModelNode> getChildren()

getIterators

protected java.util.Iterator<java.util.Iterator<? extends ModelNode>> getIterators()

findSubNode

public ModelNode findSubNode(ObjectReference objectReference,
                             FunctionalConstraint fc)

getFunctionalConstraint

public FunctionalConstraint getFunctionalConstraint()

getReference

public ObjectReference getReference()

getNodeName

public java.lang.String getNodeName()

iterator

public java.util.Iterator<ModelNode> iterator()
Specified by:
iterator in interface java.lang.Iterable<ModelNode>

getBasicDataAttributes

public java.util.List<BasicDataAttribute> getBasicDataAttributes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object