public class StandardVariableNamespace extends Object implements IVariableNamespace
IVariableNamespace.| Constructor and Description |
|---|
StandardVariableNamespace()
Create a VariableScope
|
| Modifier and Type | Method and Description |
|---|---|
String |
getVariable(String key)
The string variable stored with
key. |
String |
getVariable(String key,
String defaultValue)
The string variable stored with
key or
defaultValue if the result would be null. |
Iterator |
getVariableIterator()
An iterator over the entries (Map.Entry) of the Map.
|
Map |
getVariables()
The map holding the assoications from names to values.
|
void |
putVariable(String key,
String value)
Enter a name/value binding in the map.
|
void |
putVariables(Map v) |
public StandardVariableNamespace()
public String getVariable(String key)
IVariableNamespacekey.getVariable in interface IVariableNamespacekey - The name of the string variablekey.public String getVariable(String key, String defaultValue)
IVariableNamespacekey or
defaultValue if the result would be null.getVariable in interface IVariableNamespacekey - The name of the string variabledefaultValue - The value to use if result would be nullkey or
defaultValue if the result would be
null.public Iterator getVariableIterator()
IVariableNamespacegetVariableIterator in interface IVariableNamespacepublic Map getVariables()
IVariableNamespacegetVariables in interface IVariableNamespacepublic void putVariable(String key, String value)
IVariableNamespaceputVariable in interface IVariableNamespacekey - The name of the string variablevalue - The value to use for the variable.public void putVariables(Map v)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.