Package net.sf.okapi.steps.idaligner
Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.steps.idaligner.Parameters
-
- All Implemented Interfaces:
IParameters,IEditorDescriptionProvider
public class Parameters extends StringParameters implements IEditorDescriptionProvider
-
-
Field Summary
-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditorDescriptioncreateEditorDescription(ParametersDescription paramsDesc)booleangetGenerateTMX()ParametersDescriptiongetParametersDescription()Gets the description of the parameters.booleangetReplaceWithSource()StringgetTmxOutputPath()booleanisCopyToTarget()booleanisStoreAsAltTranslation()booleanisSuppressTusWithNoTarget()booleanisUseTextUnitIds()voidreset()Reset this parameters object to its default values.voidsetCopyToTarget(boolean copyToTarget)voidsetGenerateTMX(boolean generateTMX)voidsetReplaceWithSource(boolean replaceWithSource)voidsetStoreAsAltTranslation(boolean storeAsAltTranslation)voidsetSuppressTusWithNoTarget(boolean suppressTusWithNoTarget)voidsetTmxOutputPath(String tmxOutputPath)voidsetUseTextUnitIds(boolean useTextUnitIds)-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
-
-
-
Method Detail
-
getGenerateTMX
public boolean getGenerateTMX()
-
setGenerateTMX
public void setGenerateTMX(boolean generateTMX)
-
getTmxOutputPath
public String getTmxOutputPath()
-
setTmxOutputPath
public void setTmxOutputPath(String tmxOutputPath)
-
getReplaceWithSource
public boolean getReplaceWithSource()
-
setReplaceWithSource
public void setReplaceWithSource(boolean replaceWithSource)
-
setCopyToTarget
public void setCopyToTarget(boolean copyToTarget)
-
isCopyToTarget
public boolean isCopyToTarget()
-
isStoreAsAltTranslation
public boolean isStoreAsAltTranslation()
- Returns:
- the storeAsAltTranslation
-
setStoreAsAltTranslation
public void setStoreAsAltTranslation(boolean storeAsAltTranslation)
- Parameters:
storeAsAltTranslation- the storeAsAltTranslation to set
-
isSuppressTusWithNoTarget
public boolean isSuppressTusWithNoTarget()
-
setSuppressTusWithNoTarget
public void setSuppressTusWithNoTarget(boolean suppressTusWithNoTarget)
-
isUseTextUnitIds
public boolean isUseTextUnitIds()
-
setUseTextUnitIds
public void setUseTextUnitIds(boolean useTextUnitIds)
-
reset
public void reset()
Description copied from class:StringParametersReset this parameters object to its default values.Subclasses should override this method to set any initial values and instantiate any objects that require allocation. It is recommended that subclasses also call
super.reset()in the override to ensure that the buffer is empty.- Specified by:
resetin interfaceIParameters- Overrides:
resetin classStringParameters
-
getParametersDescription
public ParametersDescription getParametersDescription()
Description copied from interface:IParametersGets the description of the parameters.- Specified by:
getParametersDescriptionin interfaceIParameters- Overrides:
getParametersDescriptionin classBaseParameters- Returns:
- the ParametersDescription object for this set of parameters, or null if none is provided.
-
createEditorDescription
public EditorDescription createEditorDescription(ParametersDescription paramsDesc)
- Specified by:
createEditorDescriptionin interfaceIEditorDescriptionProvider
-
-