public class WhitespaceCorrectionStepParameters extends StringParameters implements IEditorDescriptionProvider
bufferpath| Constructor and Description |
|---|
WhitespaceCorrectionStepParameters() |
| 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.
|
boolean |
getComma() |
boolean |
getExclamationPoint() |
boolean |
getFullStop() |
boolean |
getHorizontalTabs() |
boolean |
getNonbreakingWhitespace() |
boolean |
getOther() |
ParametersDescription |
getParametersDescription()
Gets the description of the parameters.
|
EnumSet<WhitespaceCorrector.Punctuation> |
getPunctuation() |
boolean |
getQuestionMark() |
boolean |
getSpace() |
boolean |
getVerticalWhitespace() |
EnumSet<WhitespaceCorrector.Whitespace> |
getWhitespace() |
void |
reset()
Reset this parameters object to its default values.
|
void |
setComma(boolean value) |
void |
setExclamationPoint(boolean value) |
void |
setFullStop(boolean value) |
void |
setHorizontalTabs(boolean value) |
void |
setNonbreakingWhitespace(boolean value) |
void |
setOther(boolean value) |
void |
setPunctuation(Collection<WhitespaceCorrector.Punctuation> punctuation) |
void |
setQuestionMark(boolean value) |
void |
setSpace(boolean value) |
void |
setVerticalWhitespace(boolean value) |
void |
setWhiteSpace(Collection<WhitespaceCorrector.Whitespace> whitespace) |
String |
toString()
Serialize this parameters object to a string.
|
fromString, getBoolean, getGroup, getInteger, getString, setBoolean, setGroup, setInteger, setStringpublic 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 setWhiteSpace(Collection<WhitespaceCorrector.Whitespace> whitespace)
public void setPunctuation(Collection<WhitespaceCorrector.Punctuation> punctuation)
public EnumSet<WhitespaceCorrector.Punctuation> getPunctuation()
public EnumSet<WhitespaceCorrector.Whitespace> getWhitespace()
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 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 boolean getFullStop()
public void setFullStop(boolean value)
public boolean getComma()
public void setComma(boolean value)
public boolean getExclamationPoint()
public void setExclamationPoint(boolean value)
public boolean getQuestionMark()
public void setQuestionMark(boolean value)
public boolean getVerticalWhitespace()
public void setVerticalWhitespace(boolean value)
public boolean getNonbreakingWhitespace()
public void setNonbreakingWhitespace(boolean value)
public boolean getHorizontalTabs()
public void setHorizontalTabs(boolean value)
public boolean getSpace()
public void setSpace(boolean value)
public boolean getOther()
public void setOther(boolean value)
public ParametersDescription getParametersDescription()
IParametersgetParametersDescription in interface IParametersgetParametersDescription in class BaseParameterspublic EditorDescription createEditorDescription(ParametersDescription paramDesc)
createEditorDescription in interface IEditorDescriptionProviderCopyright © 2021. All rights reserved.