org.openiec61850.common.model
Class Array

java.lang.Object
  extended by org.openiec61850.common.model.ModelNode
      extended by org.openiec61850.common.model.Array
All Implemented Interfaces:
java.lang.Iterable<ModelNode>

public class Array
extends ModelNode


Field Summary
 
Fields inherited from class org.openiec61850.common.model.ModelNode
children, fc, objectReference
 
Constructor Summary
Array(ObjectReference objectReference, FunctionalConstraint fc, java.util.List<ModelNode> childNodes)
          An Array can contain up to n instances of one and the same DataObject, ConstructedDataAttribute, or BasicDataAttribute.
 
Method Summary
 ModelNode copy()
          Copies the whole node with all of its children.
 java.util.List<Array> getArraysOfFCData()
           
 java.util.List<BasicDataAttribute> getBasicDataAttributes()
           
 ModelNode getChild(java.lang.String childName, FunctionalConstraint fc)
           
 java.util.Collection<ModelNode> getChildren()
           
 java.util.Iterator<ModelNode> iterator()
           
 int size()
           
 
Methods inherited from class org.openiec61850.common.model.ModelNode
findSubNode, getChild, getFunctionalConstraint, getIterators, getNodeName, getReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Array

public Array(ObjectReference objectReference,
             FunctionalConstraint fc,
             java.util.List<ModelNode> childNodes)
An Array can contain up to n instances of one and the same DataObject, ConstructedDataAttribute, or BasicDataAttribute. The children of the array have the name that equals the index in the array (e.g. "0","1" etc.)

Parameters:
objectReference -
fc -
childNodes -
Method Detail

getChildren

public java.util.Collection<ModelNode> getChildren()
Overrides:
getChildren in class ModelNode

iterator

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

getChild

public ModelNode getChild(java.lang.String childName,
                          FunctionalConstraint fc)
Overrides:
getChild in class ModelNode

copy

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

Specified by:
copy in class ModelNode

getBasicDataAttributes

public java.util.List<BasicDataAttribute> getBasicDataAttributes()
Overrides:
getBasicDataAttributes in class ModelNode

getArraysOfFCData

public java.util.List<Array> getArraysOfFCData()

size

public int size()