public interface IWithGroupOrUnitNode
| Modifier and Type | Method and Description |
|---|---|
GroupNode |
add(GroupNode node)
Adds a
GroupNode to this object. |
UnitNode |
add(UnitNode node)
Adds a
UnitNode to this object. |
GroupNode |
addGroupNode(java.lang.String id)
Adds a
GroupNode to this object. |
UnitNode |
addUnitNode(java.lang.String id)
Adds a
UnitNode to this object. |
java.util.Iterator<IGroupOrUnitNode> |
createGroupOrUnitIterator()
Creates an iterator for the group nodes and unit nodes in this object.
|
GroupNode |
getGroupNode(java.lang.String id)
Gets a
GroupNode for a given id. |
UnitNode |
getUnitNode(java.lang.String id)
Gets the
UnitNode for a given unit id. |
java.util.List<UnitNode> |
getUnitNodes()
Gets all the
UnitNode elements of this object. |
UnitNode add(UnitNode node)
UnitNode to this object.node - the unit node to add.addUnitNode(String)UnitNode addUnitNode(java.lang.String id)
UnitNode to this object.id - the ID of the new unit.GroupNode add(GroupNode node)
GroupNode to this object.
If the group ID is null, it is automatically set to a UUID.node - the group node to add.addGroupNode(String)GroupNode addGroupNode(java.lang.String id)
GroupNode to this object.id - the ID of the group (can be null). If the ID is null it is automatically set to a UUID.java.util.List<UnitNode> getUnitNodes()
UnitNode elements of this object.
All units at any level in this object are returned.UnitNode getUnitNode(java.lang.String id)
UnitNode for a given unit id.
The unit can be at any level in this object.id - the id to look for.GroupNode getGroupNode(java.lang.String id)
GroupNode for a given id.
The group can be at any level in this object.id - the id to look for.java.util.Iterator<IGroupOrUnitNode> createGroupOrUnitIterator()