public class AbstractMarkupParameters extends BaseParameters implements ISimplifierRulesParameters
IParameters based facade around the YAML configuration format.
The parameters are read-only; calls to setXXX() are ignored.pathSIMPLIFIERRULES, SIMPLIFIERRULES_DISPLAY_NAME, SIMPLIFIERRULES_SHORT_DESC| Constructor and Description |
|---|
AbstractMarkupParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(String data)
Parses the parameters stored into a string back into the object.
|
boolean |
getBoolean(String name)
Gets the boolean value for the given parameter name.
|
String |
getEditorTitle()
Gets the title to use with the parameter editor.
|
int |
getInteger(String name)
Gets the integer value for a given parameter name.
|
String |
getSimplifierRules()
Get the code simplifier rules as defined by
SimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj). |
String |
getString(String name)
Gets the string value for a given parameter name.
|
TaggedFilterConfiguration |
getTaggedConfig()
Gets the TaggedFilterConfiguration object for this parameters object.
|
void |
reset()
Reset the parameters to their default values.
|
void |
setBoolean(String name,
boolean value)
Sets the boolean value for a given parameter name.
|
void |
setEditorTitle(String title)
Sets the title to use with the parameters editor.
|
void |
setInteger(String name,
int value)
Sets the integer value for a given parameter name.
|
void |
setSimplifierRules(String rules)
Set the simplifier rules.
|
void |
setString(String name,
String value)
Sets the string value for a given parameter name.
|
void |
setTaggedConfig(TaggedFilterConfiguration taggedConfig)
Sets the TaggedFilterConfiguration object for this parameters object.
|
String |
toString()
Converts the parameters into a string.
|
void |
validateSimplifierRules()
Validate the current code simplifier rules.
|
getParametersDescription, getPath, load, load, save, setPathpublic void fromString(String data)
IParametersfromString in interface IParametersdata - 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()
IParameterstoString in interface IParameterstoString in class Objectpublic void reset()
IParametersreset in interface IParameterspublic String getEditorTitle()
public void setEditorTitle(String title)
title - the title to use with the parameters editor.public TaggedFilterConfiguration getTaggedConfig()
public void setTaggedConfig(TaggedFilterConfiguration taggedConfig)
taggedConfig - the TaggedFilterConfiguration object for this parameters object.public boolean getBoolean(String name)
IParametersgetBoolean in interface IParametersname - the name of the boolean parameter to retrieve.public void setBoolean(String name, boolean value)
IParameterssetBoolean in interface IParametersname - the name of the parameter to set.value - the new value to set.public String getString(String name)
IParametersgetString in interface IParametersname - the name of the string parameter to retrieve.public void setString(String name, String value)
IParameterssetString in interface IParametersname - the name of the parameter to set.value - the new value to set.public int getInteger(String name)
IParametersgetInteger in interface IParametersname - the name of the integer parameter to retrieve.public void setInteger(String name, int value)
IParameterssetInteger in interface IParametersname - the name of the parameter to set.value - the new value to set.public String getSimplifierRules()
ISimplifierRulesParametersSimplifierRules
(JavaCC file: core/simplifierrules/SimplifierRules.jj).getSimplifierRules in interface ISimplifierRulesParameterspublic void setSimplifierRules(String rules)
ISimplifierRulesParameterssetSimplifierRules in interface ISimplifierRulesParametersrules - new simplifier rulespublic void validateSimplifierRules()
throws ParseException
ISimplifierRulesParametersvalidateSimplifierRules in interface ISimplifierRulesParametersParseException - if the rule cannot be parsedCopyright © 2022. All rights reserved.