|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.variable.StandardVariableNamespace
public class StandardVariableNamespace
A general implementation for an object providing IVariableNamespace
.
Constructor Summary | |
---|---|
StandardVariableNamespace()
Create a VariableScope |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardVariableNamespace()
Method Detail |
---|
public String getVariable(String key)
IVariableNamespace
key
.
getVariable
in interface IVariableNamespace
key
- The name of the string variable
key
.public String getVariable(String key, String defaultValue)
IVariableNamespace
key
or
defaultValue
if the result would be null
.
getVariable
in interface IVariableNamespace
key
- The name of the string variabledefaultValue
- The value to use if result would be null
key
or
defaultValue
if the result would be
null
.public Iterator getVariableIterator()
IVariableNamespace
getVariableIterator
in interface IVariableNamespace
public Map getVariables()
IVariableNamespace
getVariables
in interface IVariableNamespace
public void putVariable(String key, String value)
IVariableNamespace
putVariable
in interface IVariableNamespace
key
- The name of the string variablevalue
- The value to use for the variable.public void putVariables(Map v)
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |