Package net.sf.okapi.steps.tokenization
Class TokenConfigs.TokenConfig
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.common.AbstractGroupParameters
-
- net.sf.okapi.steps.tokenization.TokenConfigs.TokenConfig
-
- All Implemented Interfaces:
Cloneable,IParameters,ISimplifierRulesParameters
- Enclosing class:
- TokenConfigs
public static class TokenConfigs.TokenConfig extends AbstractGroupParameters
-
-
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 TokenConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()intgetId()StringgetName()StringgetSample()protected voidload(ParametersString buffer)Load from buffer.voidreset()Reset this parameters object to its default values.protected voidsave(ParametersString buffer)Save to buffer.voidsetDescription(String description)voidsetId(int id)voidsetName(String name)voidsetSample(String sample)-
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
-
Methods inherited from class net.sf.okapi.common.BaseParameters
getParametersDescription, getPath, load, load, save, setPath
-
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
-
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
-
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
-
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
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getId
public int getId()
-
setId
public void setId(int id)
-
getSample
public String getSample()
-
setSample
public void setSample(String sample)
-
-