Package com.uc4.api.objects
Class VariableValues
java.lang.Object
com.uc4.api.objects.VariableValues
This class represents the "Variables" tab of a STATIC and XML VARA object.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VariableValues
(com.uc4.util.XMLDocument doc, boolean xml) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new key and values to the variables.void
Adds a new key and value to the variables.Returns the value for a given key The method returnsnull
if the key does not exist.String[]
Returns the values of a row with the specified key.Returns an iterator over validity keywords.boolean
Removes a variable entry The method returnsfalse
if the validity keyword was not found.void
Removes all entries from the Variable.int
size()
protected void
-
Constructor Details
-
VariableValues
protected VariableValues(com.uc4.util.XMLDocument doc, boolean xml)
-
-
Method Details
-
keyIterator
Returns an iterator over validity keywords. All validity keywords have the typejava.lang.String
- Returns:
- Iterator
-
add
Adds a new key and value to the variables. The parameterreplace
can be used to define if the value should be replaced in case of an already existing validity keyword.- Parameters:
validityKeyword
- Keyvalue
- Valuereplace
- If true the value will be replaced if a key with this name does already exist
-
add
Adds a new key and values to the variables. The parameterreplace
can be used to define if the values should be replaced in case of an already existing validity keyword.- Parameters:
validityKeyword
- Keyvalue
- Array of five elementsreplace
- If true the value will be replaced if a key with this name does already exist
-
get
Returns the value for a given key The method returnsnull
if the key does not exist.- Parameters:
validityKeyword
- Key- Returns:
- Value or null if the key does not exist
-
getRow
Returns the values of a row with the specified key.- Parameters:
key
- Name of the key- Returns:
- Array of Strings containing the values
-
entryIterator
-
remove
Removes a variable entry The method returnsfalse
if the validity keyword was not found.- Parameters:
validityKeyword
- Key- Returns:
- True if the values was removed
-
size
public int size()- Returns:
- Number of entries in the Variable.
-
removeAll
public void removeAll()Removes all entries from the Variable. -
store
-