org.openiec61850.common.model
Class Array
java.lang.Object
org.openiec61850.common.model.ModelNode
org.openiec61850.common.model.Array
- All Implemented Interfaces:
- java.lang.Iterable<ModelNode>
public class Array
- extends ModelNode
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
-
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()