public class Parameters extends StringParameters
bufferpath| Constructor and Description |
|---|
Parameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(String data)
Reset this parameters object to its default values and then load
additional parameters from the provided data.
|
int |
getAbsoluteMaxCharLength() |
boolean |
getCheckAbsoluteMaxCharLength() |
boolean |
getCheckMaxCharLength() |
boolean |
getCheckMinCharLength() |
boolean |
getCheckStorageSize() |
int |
getMaxCharLengthAbove() |
int |
getMaxCharLengthBelow() |
int |
getMaxCharLengthBreak() |
int |
getMinCharLengthAbove() |
int |
getMinCharLengthBelow() |
int |
getMinCharLengthBreak() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setAbsoluteMaxCharLength(int absoluteMaxCharLength) |
void |
setCheckAbsoluteMaxCharLength(boolean checkAbsoluteMaxCharLength) |
void |
setCheckMaxCharLength(boolean checkMaxCharLength) |
void |
setCheckMinCharLength(boolean checkMinCharLength) |
void |
setCheckStorageSize(boolean checkStorageSize) |
void |
setMaxCharLengthAbove(int maxCharLengthAbove) |
void |
setMaxCharLengthBelow(int maxCharLengthBelow) |
void |
setMaxCharLengthBreak(int maxCharLengthBreak) |
void |
setMinCharLengthAbove(int minCharLengthAbove) |
void |
setMinCharLengthBelow(int minCharLengthBelow) |
void |
setMinCharLengthBreak(int minCharLengthBreak) |
String |
toString()
Serialize this parameters object to a string.
|
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringgetParametersDescription, getPath, load, load, save, setPathpublic boolean getCheckStorageSize()
public void setCheckStorageSize(boolean checkStorageSize)
public boolean getCheckMaxCharLength()
public void setCheckMaxCharLength(boolean checkMaxCharLength)
public int getMaxCharLengthBreak()
public void setMaxCharLengthBreak(int maxCharLengthBreak)
public int getMaxCharLengthAbove()
public void setMaxCharLengthAbove(int maxCharLengthAbove)
public int getMaxCharLengthBelow()
public void setMaxCharLengthBelow(int maxCharLengthBelow)
public boolean getCheckMinCharLength()
public void setCheckMinCharLength(boolean checkMinCharLength)
public int getMinCharLengthBreak()
public void setMinCharLengthBreak(int minCharLengthBreak)
public int getMinCharLengthAbove()
public void setMinCharLengthAbove(int minCharLengthAbove)
public int getMinCharLengthBelow()
public void setMinCharLengthBelow(int minCharLengthBelow)
public boolean getCheckAbsoluteMaxCharLength()
public void setCheckAbsoluteMaxCharLength(boolean checkAbsoluteMaxCharLength)
public int getAbsoluteMaxCharLength()
public void setAbsoluteMaxCharLength(int absoluteMaxCharLength)
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 StringParametersCopyright © 2021. All rights reserved.