Package net.sf.okapi.lib.xliff2.document
Class UnitNode
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.document.UnitNode
-
- All Implemented Interfaces:
IGroupOrUnitNode
public class UnitNode extends Object implements IGroupOrUnitNode
Represents a unit node.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Unitget()Gets theUnitassociated with this unit node.booleanisUnit()Indicates if this node is a UnitNode.
-
-
-
Constructor Detail
-
UnitNode
public UnitNode(Unit data)
- Parameters:
data- the unit to set for this unit node (must not be null).
-
-
Method Detail
-
get
public Unit get()
Gets theUnitassociated with this unit node.- Returns:
- the unit object associated with this unit node.
-
isUnit
public boolean isUnit()
Description copied from interface:IGroupOrUnitNodeIndicates if this node is a UnitNode.- Specified by:
isUnitin interfaceIGroupOrUnitNode- Returns:
- true if it is a UnitNode, false if it is a GroupNode.
-
-