Class Parameters
- java.lang.Object
-
- net.sf.okapi.common.BaseParameters
-
- net.sf.okapi.common.StringParameters
-
- net.sf.okapi.common.AbstractGroupParameters
-
- net.sf.okapi.filters.plaintext.base.Parameters
-
- net.sf.okapi.filters.plaintext.spliced.Parameters
-
- All Implemented Interfaces:
Cloneable
,IParameters
,ISimplifierRulesParameters
public class Parameters extends Parameters
Spliced Lines Filter parameters- Version:
- 0.1, 09.06.2009
-
-
Field Summary
Fields Modifier and Type Field Description boolean
createPlaceholders
If in-line codes should be created for the dropped splicers and linebreaks of spliced lines Default: true (create in-line codes)String
splicer
Char at the end of a line, signifying the line is continued on the next line (normally "\" or "_").-
Fields inherited from class net.sf.okapi.filters.plaintext.base.Parameters
codeFinderRules, preserveWS, subfilter, trimLeading, trimTrailing, unescapeSource, useCodeFinder, wrapMode
-
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 protected void
load(ParametersString buffer)
Load from buffer.void
reset()
Reset this parameters object to its default values.protected void
save(ParametersString buffer)
Save to buffer.-
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
-
-
-
-
Field Detail
-
splicer
public String splicer
Char at the end of a line, signifying the line is continued on the next line (normally "\" or "_"). Can be a custom string too.Default: \ (backslash)
-
createPlaceholders
public boolean createPlaceholders
If in-line codes should be created for the dropped splicers and linebreaks of spliced lines Default: true (create in-line codes)
-
-
Method Detail
-
load
protected void load(ParametersString buffer)
Description copied from class:AbstractGroupParameters
Load from buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Overrides:
load
in classParameters
-
reset
public void reset()
Description copied from class:StringParameters
Reset 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:
reset
in interfaceIParameters
- Overrides:
reset
in classParameters
-
save
protected void save(ParametersString buffer)
Description copied from class:AbstractGroupParameters
Save to buffer. The protected buffer variable is visible in all subclasses of BaseParameters.- Overrides:
save
in classParameters
-
-