public class RuleOption extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_TEXT |
static String |
DEFAULT_TYPE |
static String |
DEFAULT_VALUE |
static String |
MAX_CONF_VALUE |
static String |
MIN_CONF_VALUE |
| Constructor and Description |
|---|
RuleOption(Object defaultValue,
String configureText) |
RuleOption(Object defaultValue,
String configureText,
Object minConfigurableValue,
Object maxConfigurableValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigureText()
Get the Configuration Text by option panel
|
Object |
getDefaultValue()
Get a default Value by option panel
|
Object |
getMaxConfigurableValue()
Get the maximum of a configurable value
|
Object |
getMinConfigurableValue()
Get the minimum of a configurable value
|
static String |
objectsToString(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 StringToObjects
|
static String |
objectToString(Object o)
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.
|
static Object |
stringToObject(String s)
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
|
static Object[] |
stringToObjects(String s)
decodes an String to an array of object encoded by ObjectsToString
|
public static final String DEFAULT_VALUE
public static final String DEFAULT_TYPE
public static final String MIN_CONF_VALUE
public static final String MAX_CONF_VALUE
public static final String CONF_TEXT
public RuleOption(Object defaultValue, String configureText, Object minConfigurableValue, Object maxConfigurableValue)
public Object getDefaultValue()
public String getConfigureText()
public Object getMinConfigurableValue()
public Object getMaxConfigurableValue()
public static String objectToString(Object o)
public static String objectsToString(Object[] o)
public static Object stringToObject(String s)