Package net.sf.okapi.lib.xliff2.core
Class InheritedData
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.core.InheritedData
-
- All Implemented Interfaces:
IWithInheritedData
- Direct Known Subclasses:
StartFileData,StartGroupData,Unit
public class InheritedData extends Object implements IWithInheritedData
Implements theIWithInheritedDatainterface.
-
-
Constructor Summary
Constructors Constructor Description InheritedData()Creates a InheritedData object with default values.InheritedData(InheritedData original)Creates a new InheritedData object from an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatorsRefgetAnnotatorsRef()Gets the annotators-references for this object.booleangetCanResegment()Indicates if this object can be re-segmented by default.DirectionalitygetSourceDir()DirectionalitygetTargetDir()booleangetTranslate()Indicates if this object has translatable content by default.voidsetAnnotatorsRef(AnnotatorsRef annotators)Sets the annotators-references for this object.voidsetCanResegment(boolean canResegment)Sets the flag indicating if this object can be re-segmented by default.voidsetInheritableData(IWithInheritedData original)Sets all the data from a given object.voidsetSourceDir(Directionality dir)voidsetTargetDir(Directionality dir)voidsetTranslate(boolean translate)Sets the flag indicating if this object has translatable content by default.
-
-
-
Constructor Detail
-
InheritedData
public InheritedData()
Creates a InheritedData object with default values.
-
InheritedData
public InheritedData(InheritedData original)
Creates a new InheritedData object from an existing one.- Parameters:
original- the InheritedData object to get the data from.
-
-
Method Detail
-
setInheritableData
public void setInheritableData(IWithInheritedData original)
Sets all the data from a given object.- Specified by:
setInheritableDatain interfaceIWithInheritedData- Parameters:
original- the object from which to get the data.
-
getCanResegment
public boolean getCanResegment()
Description copied from interface:IWithInheritedDataIndicates if this object can be re-segmented by default.- Specified by:
getCanResegmentin interfaceIWithInheritedData- Returns:
- true if this object can be re-segmented by default, false otherwise.
-
setCanResegment
public void setCanResegment(boolean canResegment)
Description copied from interface:IWithInheritedDataSets the flag indicating if this object can be re-segmented by default.- Specified by:
setCanResegmentin interfaceIWithInheritedData- Parameters:
canResegment- true if this object can be re-segmented by default, false otherwise.
-
getTranslate
public boolean getTranslate()
Description copied from interface:IWithInheritedDataIndicates if this object has translatable content by default.- Specified by:
getTranslatein interfaceIWithInheritedData- Returns:
- true if this object has translatable content by default, false otherwise.
-
setTranslate
public void setTranslate(boolean translate)
Description copied from interface:IWithInheritedDataSets the flag indicating if this object has translatable content by default.- Specified by:
setTranslatein interfaceIWithInheritedData- Parameters:
translate- true if this object has translatable content by default, false otherwise.
-
getSourceDir
public Directionality getSourceDir()
- Specified by:
getSourceDirin interfaceIWithInheritedData
-
setSourceDir
public void setSourceDir(Directionality dir)
- Specified by:
setSourceDirin interfaceIWithInheritedData
-
getTargetDir
public Directionality getTargetDir()
- Specified by:
getTargetDirin interfaceIWithInheritedData
-
setTargetDir
public void setTargetDir(Directionality dir)
- Specified by:
setTargetDirin interfaceIWithInheritedData
-
getAnnotatorsRef
public AnnotatorsRef getAnnotatorsRef()
Description copied from interface:IWithInheritedDataGets the annotators-references for this object.- Specified by:
getAnnotatorsRefin interfaceIWithInheritedData- Returns:
- the annotators-references for this object (can be null)
-
setAnnotatorsRef
public void setAnnotatorsRef(AnnotatorsRef annotators)
Description copied from interface:IWithInheritedDataSets the annotators-references for this object.- Specified by:
setAnnotatorsRefin interfaceIWithInheritedData- Parameters:
annotators- the new annotators-references for this object (can be null).
-
-