Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.steps.batchtranslation.Parameters
-
- All Implemented Interfaces:
Cloneable,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 paramDesc)intgetBlockSize()booleangetCheckExistingTm()StringgetCommand()StringgetExistingTm()booleangetMakeTM()booleangetMakeTMX()booleangetMarkAsMT()StringgetOrigin()ParametersDescriptiongetParametersDescription()Gets the description of the parameters.booleangetSegment()booleangetSendTMX()StringgetSrxPath()StringgetTmDirectory()StringgetTmxPath()voidreset()Reset this parameters object to its default values.voidsetBlockSize(int blockSize)voidsetCheckExistingTm(boolean checkExistingTm)voidsetCommand(String command)voidsetExistingTm(String existingTm)voidsetMakeTM(boolean makeTM)voidsetMakeTMX(boolean makeTMX)voidsetMarkAsMT(boolean markAsMT)voidsetOrigin(String origin)voidsetSegment(boolean segment)voidsetSendTMX(boolean sendTMX)voidsetSrxPath(String srxPath)voidsetTmDirectory(String tmDirectory)voidsetTmxPath(String tmxPath)-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.IParameters
copy
-
-
-
-
Method Detail
-
getCommand
public String getCommand()
-
setCommand
public void setCommand(String command)
-
getOrigin
public String getOrigin()
-
setOrigin
public void setOrigin(String origin)
-
getMarkAsMT
public boolean getMarkAsMT()
-
setMarkAsMT
public void setMarkAsMT(boolean markAsMT)
-
getMakeTMX
public boolean getMakeTMX()
-
setMakeTMX
public void setMakeTMX(boolean makeTMX)
-
getTmxPath
public String getTmxPath()
-
setTmxPath
public void setTmxPath(String tmxPath)
-
getSendTMX
public boolean getSendTMX()
-
setSendTMX
public void setSendTMX(boolean sendTMX)
-
getMakeTM
public boolean getMakeTM()
-
setMakeTM
public void setMakeTM(boolean makeTM)
-
getTmDirectory
public String getTmDirectory()
-
setTmDirectory
public void setTmDirectory(String tmDirectory)
-
getBlockSize
public int getBlockSize()
-
setBlockSize
public void setBlockSize(int blockSize)
-
getCheckExistingTm
public boolean getCheckExistingTm()
-
setCheckExistingTm
public void setCheckExistingTm(boolean checkExistingTm)
-
getExistingTm
public String getExistingTm()
-
setExistingTm
public void setExistingTm(String existingTm)
-
getSegment
public boolean getSegment()
-
setSegment
public void setSegment(boolean segment)
-
getSrxPath
public String getSrxPath()
-
setSrxPath
public void setSrxPath(String srxPath)
-
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 paramDesc)
- Specified by:
createEditorDescriptionin interfaceIEditorDescriptionProvider
-
-