public final class VariableValues
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String validityKeyword,
java.lang.String[] value,
boolean replace)
Adds a new key and values to the variables.
|
void |
add(java.lang.String validityKeyword,
java.lang.String value,
boolean replace)
Adds a new key and value to the variables.
|
java.lang.String |
get(java.lang.String validityKeyword)
Returns the value for a given key
The method returns
null if the key does not exist. |
java.lang.String[] |
getRow(java.lang.String key)
Returns the values of a row with the specified key.
|
java.util.Iterator<java.lang.String> |
keyIterator()
Returns an iterator over validity keywords.
|
boolean |
remove(java.lang.String validityKeyword)
Removes a variable entry
The method returns
false if the validity keyword was not found. |
void |
removeAll()
Removes all entries from the Variable.
|
int |
size() |
public java.util.Iterator<java.lang.String> keyIterator()
java.lang.String
public void add(java.lang.String validityKeyword, java.lang.String value, boolean replace)
replace
can be used to define if the value should
be replaced in case of an already existing validity keyword.validityKeyword
- Keyvalue
- Valuereplace
- If true the value will be replaced if a key with this name does already existpublic void add(java.lang.String validityKeyword, java.lang.String[] value, boolean replace)
replace
can be used to define if the values should
be replaced in case of an already existing validity keyword.validityKeyword
- Keyvalue
- Array of five elementsreplace
- If true the value will be replaced if a key with this name does already existpublic java.lang.String get(java.lang.String validityKeyword)
null
if the key does not exist.validityKeyword
- Keypublic java.lang.String[] getRow(java.lang.String key)
key
- Name of the keypublic boolean remove(java.lang.String validityKeyword)
false
if the validity keyword was not found.validityKeyword
- Keypublic int size()
public void removeAll()