Class ConfigElement
java.lang.Object
ch.software_atelier.simpleflex.conf.text.ConfigElement
- Author:
- tk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendValue(String key, String value) Appends a key and a refered value to this ConfigElement-ObjectReturns the Name of this element.String[][]getValuesAndKeysByRegexOfKey(String regexOfKey) Returns a table of keys and values by a Regular expression applyed to the key.String[]getValuesByKey(String key) Returns the values refered to the given key.
-
Constructor Details
-
ConfigElement
Creates a new instance of ConfigElement- Parameters:
elemName-
-
-
Method Details
-
appendValue
Appends a key and a refered value to this ConfigElement-Object- Parameters:
key- The key to appendvalue- The value to append- Throws:
ConfigElementException- if key or value is null.
-
getValuesByKey
Returns the values refered to the given key.- Parameters:
key-- Returns:
- the values refered to the key.
-
getValuesAndKeysByRegexOfKey
Returns a table of keys and values by a Regular expression applyed to the key. String[0][x] are keys and String[1][x] are values.- Parameters:
regexOfKey- The regular expressin that has to be tested to the key- Returns:
- A String-Table that holds the matched keys and the refered values.
-
elementName
Returns the Name of this element.- Returns:
- the Name of this element as a String
-