Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.common.AbstractGroupParameters
-
- net.sf.okapi.steps.wordcount.common.Parameters
-
- All Implemented Interfaces:
IParameters,ISimplifierRulesParameters,IEditorDescriptionProvider
public class Parameters extends AbstractGroupParameters implements IEditorDescriptionProvider
-
-
Field Summary
-
Fields inherited from class net.sf.okapi.common.StringParameters
buffer
-
Fields inherited from class net.sf.okapi.common.BaseParameters
path
-
Fields inherited from interface net.sf.okapi.common.ISimplifierRulesParameters
SIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditorDescriptioncreateEditorDescription(ParametersDescription paramsDesc)intgetBufferSize()booleangetCountInBatch()booleangetCountInBatchItems()booleangetCountInDocuments()booleangetCountInGroups()booleangetCountInSubDocuments()booleangetCountInTextUnits()ParametersDescriptiongetParametersDescription()Gets the description of the parameters.protected voidload(ParametersString buffer)Load from buffer.voidreset()Reset this parameters object to its default values.protected voidsave(ParametersString buffer)Save to buffer.voidsetBufferSize(int bufferSize)voidsetCountInBatch(boolean countInBatch)voidsetCountInBatchItems(boolean countInBatchItems)voidsetCountInDocuments(boolean countInDocuments)voidsetCountInGroups(boolean countInGroups)voidsetCountInSubDocuments(boolean countInSubDocuments)-
Methods inherited from class net.sf.okapi.common.AbstractGroupParameters
fromString, getData, getSimplifierRules, loadFromResource, loadGroup, loadGroup, saveGroup, saveGroup, saveToResource, setSimplifierRules, toString, validateSimplifierRules
-
Methods inherited from class net.sf.okapi.common.StringParameters
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setString
-
-
-
-
Method Detail
-
getCountInBatch
public boolean getCountInBatch()
-
setCountInBatch
public void setCountInBatch(boolean countInBatch)
-
getCountInBatchItems
public boolean getCountInBatchItems()
-
setCountInBatchItems
public void setCountInBatchItems(boolean countInBatchItems)
-
getCountInDocuments
public boolean getCountInDocuments()
-
setCountInDocuments
public void setCountInDocuments(boolean countInDocuments)
-
getCountInSubDocuments
public boolean getCountInSubDocuments()
-
setCountInSubDocuments
public void setCountInSubDocuments(boolean countInSubDocuments)
-
getCountInGroups
public boolean getCountInGroups()
-
setCountInGroups
public void setCountInGroups(boolean countInGroups)
-
getCountInTextUnits
public boolean getCountInTextUnits()
-
setBufferSize
public void setBufferSize(int bufferSize)
-
getBufferSize
public int getBufferSize()
-
load
protected void load(ParametersString buffer)
Description copied from class:AbstractGroupParametersLoad from buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Specified by:
loadin classAbstractGroupParameters
-
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
-
save
protected void save(ParametersString buffer)
Description copied from class:AbstractGroupParametersSave to buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Specified by:
savein classAbstractGroupParameters
-
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
-
-