public class Parameters extends StringParameters
| Modifier and Type | Field and Description |
|---|---|
ArrayList<String[]> |
rules |
bufferpath| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(String[] pattern) |
void |
fromString(String data)
Reset this parameters object to its default values and then load
additional parameters from the provided data.
|
boolean |
getDotAll() |
boolean |
getIgnoreCase() |
String |
getLogPath() |
boolean |
getMultiLine() |
boolean |
getRegEx() |
boolean |
getReplaceAll() |
String |
getReplacementsPath() |
ArrayList<String[]> |
getRules() |
boolean |
getSaveLog() |
boolean |
getSource() |
boolean |
getTarget() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setDotAll(boolean dotAll) |
void |
setIgnoreCase(boolean ignoreCase) |
void |
setLogPath(String logPath) |
void |
setMultiLine(boolean multiLine) |
void |
setRegEx(boolean regEx) |
void |
setReplaceAll(boolean replaceAll) |
void |
setReplacementsPath(String replacementsPath) |
void |
setRules(ArrayList<String[]> rules) |
void |
setSaveLog(boolean saveLog) |
void |
setSource(boolean source) |
void |
setTarget(boolean target) |
String |
toString()
Serialize this parameters object to a string.
|
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringgetParametersDescription, getPath, load, load, save, setPathpublic boolean getRegEx()
public void setRegEx(boolean regEx)
public boolean getDotAll()
public void setDotAll(boolean dotAll)
public boolean getIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
public boolean getMultiLine()
public void setMultiLine(boolean multiLine)
public boolean getTarget()
public void setTarget(boolean target)
public boolean getSource()
public void setSource(boolean source)
public boolean getReplaceAll()
public void setReplaceAll(boolean replaceAll)
public String getReplacementsPath()
public void setReplacementsPath(String replacementsPath)
public String getLogPath()
public void setLogPath(String logPath)
public boolean getSaveLog()
public void setSaveLog(boolean saveLog)
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 addRule(String[] pattern)
public 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 StringParametersCopyright © 2021. All rights reserved.