public class Parameters extends StringParameters implements IEditorDescriptionProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
MAXVALIDATION |
static String |
MERGE_AS_PARAGRAPH |
bufferpath| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
EditorDescription |
createEditorDescription(ParametersDescription paramDesc) |
void |
fromString(String data)
Reset this parameters object to its default values and then load
additional parameters from the provided data.
|
InlineCodeFinder |
getCodeFinder() |
String |
getCodeFinderData() |
boolean |
getMaxValidation() |
boolean |
getMergeAsParagraph() |
boolean |
getNeedsSegmentation() |
ParametersDescription |
getParametersDescription()
Gets the description of the parameters.
|
boolean |
getSimplifyTags() |
boolean |
getUseCodeFinder() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setCodeFinderData(String data) |
void |
setMaxValidation(boolean maxValidation) |
void |
setMergeAsParagraph(boolean mergeAsParagraph) |
void |
setNeedsSegmentation(boolean needsSegmentation) |
void |
setSimplifyTags(boolean simplifyTags) |
void |
setUseCodeFinder(boolean useCodeFinder) |
String |
toString()
Serialize this parameters object to a string.
|
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringpublic static final String MAXVALIDATION
public static final String MERGE_AS_PARAGRAPH
public boolean getMaxValidation()
public void setMaxValidation(boolean maxValidation)
public boolean getMergeAsParagraph()
public void setMergeAsParagraph(boolean mergeAsParagraph)
public boolean getUseCodeFinder()
public void setUseCodeFinder(boolean useCodeFinder)
public InlineCodeFinder getCodeFinder()
public String getCodeFinderData()
public void setCodeFinderData(String data)
public boolean getSimplifyTags()
public void setSimplifyTags(boolean simplifyTags)
public boolean getNeedsSegmentation()
public void setNeedsSegmentation(boolean needsSegmentation)
public void reset()
StringParameters
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.
reset in interface IParametersreset in class StringParameterspublic void fromString(String data)
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra initialization as part of their parameter state.
fromString in interface IParametersfromString in class StringParametersdata - the string holding the parameters. It must be formatted as
the string generated by toString(). Line-breaks must be normalized to '\n'.
It can also be null or empty, in such case the parameters are left with
their current values. Use reset() to reset the parameters to their defaults.public String toString()
StringParameters
Subclasses should not normally need to override this method unless
they are maintaining complex values (eg, InlineCodeFinder)
that require extra serialization as part of their parameter state.
toString in interface IParameterstoString in class StringParameterspublic ParametersDescription getParametersDescription()
IParametersgetParametersDescription in interface IParametersgetParametersDescription in class BaseParameterspublic EditorDescription createEditorDescription(ParametersDescription paramDesc)
createEditorDescription in interface IEditorDescriptionProviderCopyright © 2021. All rights reserved.