public class FileNode
extends java.lang.Object
| Constructor and Description |
|---|
FileNode(StartFileData data)
Creates a new
FileNode object with a given StartFileData resource. |
| Modifier and Type | Method and Description |
|---|---|
GroupNode |
add(GroupNode node)
Adds a
GroupNode to this file node. |
void |
add(InsingnificantPartData data,
boolean placeBefore) |
UnitNode |
add(UnitNode node)
Adds a
UnitNode to this file node. |
java.util.Iterator<Event> |
createEventIterator(java.util.Stack<URIContext> uriContext)
Create an iterator for the event for this file node.
|
GroupNode |
getGroupNode(java.lang.String id)
Gets a
GroupNode for a given id. |
MidFileData |
getMidData()
Gets the
MidFileData resource for this file node. |
Skeleton |
getSkeletonData()
Gets the
Skeleton for this file node. |
StartFileData |
getStartData()
Gets the
StartFileData object for this file node. |
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 file node. |
void |
setMidData(MidFileData data)
Sets the
MidFileData resource for this file node. |
void |
setSkeletonData(Skeleton data)
Sets the
Skeleton resource for this file node. |
public FileNode(StartFileData data)
FileNode object with a given StartFileData resource.data - the resource to attach to this node.public StartFileData getStartData()
StartFileData object for this file node.StartFileData object for this file node.public void setMidData(MidFileData data)
MidFileData resource for this file node.data - the MidFileData object for this file node.public MidFileData getMidData()
MidFileData resource for this file node.MidFileData for this file node.public void setSkeletonData(Skeleton data)
Skeleton resource for this file node.data - the Skeleton object for this file node.public Skeleton getSkeletonData()
Skeleton for this file node.Skeleton for this file node.public UnitNode add(UnitNode node)
UnitNode to this file node.node - the unit node to add.public GroupNode add(GroupNode node)
GroupNode to this file node.
If the group has a UUID is set automatically.node - the group node to add.public java.util.List<UnitNode> getUnitNodes()
UnitNode elements of this file node.
All units at any level in this file node are returned.public UnitNode getUnitNode(java.lang.String id)
UnitNode for a given unit id.
The unit can be at any level in this file node.id - the id to look for.public GroupNode getGroupNode(java.lang.String id)
GroupNode for a given id.
The group can be at any level in this file node.id - the id to look for.public java.util.Iterator<Event> createEventIterator(java.util.Stack<URIContext> uriContext)
uriContext - the URI context.public void add(InsingnificantPartData data, boolean placeBefore)