public class ConfigElement extends Object
| Constructor and Description |
|---|
ConfigElement(String elemName)
Creates a new instance of ConfigElement
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendValue(String key,
String value)
Appends a key and a refered value to this ConfigElement-Object
|
String |
elementName()
Returns 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.
|
public ConfigElement(String elemName)
elemName - public void appendValue(String key, String value) throws ConfigElementException
key - The key to appendvalue - The value to appendConfigElementException - if key or value is null.public String[] getValuesByKey(String key)
key - public String[][] getValuesAndKeysByRegexOfKey(String regexOfKey)
regexOfKey - The regular expressin that has to be tested to the keypublic String elementName()
Copyright © 2020 Software Atelier Kamber. All rights reserved.