Package net.sf.okapi.lib.xliff2.document
Class FileNode
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.document.WithGroupOrUnitNode
-
- net.sf.okapi.lib.xliff2.document.FileNode
-
- All Implemented Interfaces:
IWithGroupOrUnitNode
public class FileNode extends WithGroupOrUnitNode implements IWithGroupOrUnitNode
Represents a <file> node.
-
-
Constructor Summary
Constructors Constructor Description FileNode(StartFileData data)Creates a newFileNodeobject with a givenStartFileDataresource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<Event>createEventIterator(Stack<URIContext> uriContext)Create an iterator for the event for this file node.MidFileDatagetMidData()Gets theMidFileDataresource for this file node.SkeletongetSkeletonData()Gets theSkeletonfor this file node.StartFileDatagetStartData()Gets theStartFileDataobject for this file node.voidsetMidData(MidFileData data)Sets theMidFileDataresource for this file node.voidsetSkeletonData(Skeleton data)Sets theSkeletonresource for this file node.-
Methods inherited from class net.sf.okapi.lib.xliff2.document.WithGroupOrUnitNode
add, add, addGroupNode, addUnitNode, createGroupOrUnitIterator, getGroupNode, getUnitNode, getUnitNodes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.lib.xliff2.document.IWithGroupOrUnitNode
add, add, addGroupNode, addUnitNode, createGroupOrUnitIterator, getGroupNode, getUnitNode, getUnitNodes
-
-
-
-
Constructor Detail
-
FileNode
public FileNode(StartFileData data)
Creates a newFileNodeobject with a givenStartFileDataresource.- Parameters:
data- the resource to attach to this node.
-
-
Method Detail
-
getStartData
public StartFileData getStartData()
Gets theStartFileDataobject for this file node.- Returns:
- the
StartFileDataobject for this file node.
-
setMidData
public void setMidData(MidFileData data)
Sets theMidFileDataresource for this file node.- Parameters:
data- theMidFileDataobject for this file node.
-
getMidData
public MidFileData getMidData()
Gets theMidFileDataresource for this file node.- Returns:
- the
MidFileDatafor this file node.
-
setSkeletonData
public void setSkeletonData(Skeleton data)
Sets theSkeletonresource for this file node.- Parameters:
data- theSkeletonobject for this file node.
-
getSkeletonData
public Skeleton getSkeletonData()
Gets theSkeletonfor this file node.- Returns:
- the
Skeletonfor this file node.
-
createEventIterator
public Iterator<Event> createEventIterator(Stack<URIContext> uriContext)
Create an iterator for the event for this file node.- Parameters:
uriContext- the URI context.- Returns:
- a new iterator for the events in this file node.
-
-