Package org.languagetool.rules
Class RuleOption
java.lang.Object
org.languagetool.rules.RuleOption
Class to configure rule option by option panel
- Since:
- 6.5
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRuleOption(Object defaultValue, String configureText) RuleOption(Object defaultValue, String configureText, Object minConfigurableValue, Object maxConfigurableValue) -
Method Summary
Modifier and TypeMethodDescriptionGet the Configuration Text by option panelGet a default Value by option panelGet the maximum of a configurable valueGet the minimum of a configurable valuestatic StringobjectsToString(Object[] o) Gives back a special String representation of an array of Objects for save or communication use ObjectToString for encoding the single objects separate the objects by ';' Can be decoded by StringToObjectsstatic StringGives back a special String representation of an Object for save or communication add a character to characterize the type of object before its String value (i for Integer, b for Boolean, etc.static Objectdecodes an String to an object encoded by ObjectToString Note: if there is no special encoding character at the beginning of the string an integer is assumed for compatibility with older versions of LTstatic Object[]decodes an String to an array of object encoded by ObjectsToString
-
Field Details
-
DEFAULT_VALUE
- See Also:
-
DEFAULT_TYPE
- See Also:
-
MIN_CONF_VALUE
- See Also:
-
MAX_CONF_VALUE
- See Also:
-
CONF_TEXT
- See Also:
-
defaultValue
-
configureText
-
minConfigurableValue
-
maxConfigurableValue
-
-
Constructor Details
-
RuleOption
-
RuleOption
-
-
Method Details
-
getDefaultValue
Get a default Value by option panel -
getConfigureText
Get the Configuration Text by option panel -
getMinConfigurableValue
Get the minimum of a configurable value -
getMaxConfigurableValue
Get the maximum of a configurable value -
objectToString
Gives back a special String representation of an Object for save or communication add a character to characterize the type of object before its String value (i for Integer, b for Boolean, etc. Can be decoded by StringToObject -
objectsToString
Gives back a special String representation of an array of Objects for save or communication use ObjectToString for encoding the single objects separate the objects by ';' Can be decoded by StringToObjects -
stringToObject
decodes an String to an object encoded by ObjectToString Note: if there is no special encoding character at the beginning of the string an integer is assumed for compatibility with older versions of LT -
stringToObjects
decodes an String to an array of object encoded by ObjectsToString
-