Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.steps.msbatchtranslation.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()Parameters(String initialData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditorDescriptioncreateEditorDescription(ParametersDescription paramsDesc)booleangetAnnotate()StringgetAzureKey()StringgetCategory()StringgetConfigPath()booleangetFillTarget()intgetFillTargetThreshold()booleangetMakeTmx()booleangetMarkAsMT()intgetMaxEvents()intgetMaxMatches()booleangetOnlyWhenWithoutCandidate()ParametersDescriptiongetParametersDescription()Gets the description of the parameters.booleangetSendTmx()StringgetTargetPrefix()intgetThreshold()StringgetTmxPath()booleangetUseTargetPrefix()voidreset()Reset this parameters object to its default values.voidsetAnnotate(boolean annotate)voidsetAzureKey(String azureKey)voidsetCategory(String category)voidsetConfigPath(String configPath)voidsetFillTarget(boolean fillTarget)voidsetFillTargetThreshold(int fillTargetThreshold)voidsetMakeTmx(boolean makeTmx)voidsetMarkAsMT(boolean markAsMT)voidsetMaxEvents(int maxEvents)voidsetMaxMatches(int maxMatches)voidsetOnlyWhenWithoutCandidate(boolean onlyWhenWithoutCandidate)voidsetSendTmx(boolean sendTmx)voidsetTargetPrefix(String targetPrefix)voidsetThreshold(int threshold)voidsetTmxPath(String tmxPath)voidsetUseTargetPrefix(boolean useTargetPrefix)-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString, toString
-
-
-
-
Constructor Detail
-
Parameters
public Parameters()
-
Parameters
public Parameters(String initialData)
-
-
Method Detail
-
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
-
getFillTarget
public boolean getFillTarget()
-
setFillTarget
public void setFillTarget(boolean fillTarget)
-
getFillTargetThreshold
public int getFillTargetThreshold()
-
setFillTargetThreshold
public void setFillTargetThreshold(int fillTargetThreshold)
-
getMarkAsMT
public boolean getMarkAsMT()
-
setMarkAsMT
public void setMarkAsMT(boolean markAsMT)
-
getMaxEvents
public int getMaxEvents()
-
setMaxEvents
public void setMaxEvents(int maxEvents)
-
getThreshold
public int getThreshold()
-
setThreshold
public void setThreshold(int threshold)
-
getMaxMatches
public int getMaxMatches()
-
setMaxMatches
public void setMaxMatches(int maxMatches)
-
getTmxPath
public String getTmxPath()
-
setTmxPath
public void setTmxPath(String tmxPath)
-
getConfigPath
public String getConfigPath()
-
setConfigPath
public void setConfigPath(String configPath)
-
getAzureKey
public String getAzureKey()
-
setAzureKey
public void setAzureKey(String azureKey)
-
getCategory
public String getCategory()
-
setCategory
public void setCategory(String category)
-
getMakeTmx
public boolean getMakeTmx()
-
setMakeTmx
public void setMakeTmx(boolean makeTmx)
-
getAnnotate
public boolean getAnnotate()
-
setAnnotate
public void setAnnotate(boolean annotate)
-
getOnlyWhenWithoutCandidate
public boolean getOnlyWhenWithoutCandidate()
-
setOnlyWhenWithoutCandidate
public void setOnlyWhenWithoutCandidate(boolean onlyWhenWithoutCandidate)
-
getSendTmx
public boolean getSendTmx()
-
setSendTmx
public void setSendTmx(boolean sendTmx)
-
getUseTargetPrefix
public boolean getUseTargetPrefix()
-
setUseTargetPrefix
public void setUseTargetPrefix(boolean useTargetPrefix)
-
getTargetPrefix
public String getTargetPrefix()
-
setTargetPrefix
public void setTargetPrefix(String targetPrefix)
-
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
-
-