Method Summary |
|
public String | getFallbackValue() Returns the value that is returned if none of the predefined keys matches the lookup-value. |
public String | getField() Returns the name of the field from where to read the key value. |
public Expression | getInstance() Return a completly separated copy of this function. |
public String | getKey(int index) Returns a key value at the given index.
Parameters: index - the index position of the key in the list. |
public String[] | getKey() Returns all defined keys as string array. |
public int | getKeyCount() Returns the number of keys defined in the expression. |
public String | getNullValue() Returns the value that is returned if the key-field evaluates to null . |
public String | getText(int index) Returns the mapped text for the key at the given position. |
public String[] | getText() Returns all defined texts as string-array. |
public int | getTextCount() Returns the number of replacement text defined in this expression. |
public Object | getValue() Performs the lookup by first querying the given field, and then returning the defined text for the key-position. |
public boolean | isIgnoreCase() Returns, whether the key-lookup should be case-insensitive. |
public void | setFallbackValue(String fallbackValue) Defines the value that is returned if none of the predefined keys matches the lookup-value. |
public void | setField(String field) Defines the name of the field from where to read the key value. |
public void | setIgnoreCase(boolean ignoreCase) Defines, whether the key-lookup should be case-insensitive. |
public void | setKey(int index, String key) Defines a key value to which the lookup-field's value is compared. |
public void | setKey(String[] keys) Defines all keys using the values from the string array. |
public void | setNullValue(String nullValue) Defines the value that is returned if the key-field evaluates to null . |
public void | setText(int index, String value) Defines the mapped text for the key at the given position. |
public void | setText(String[] texts) Defines all texts by using the values from the given text-array. |