|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Variables provide access to a global set of values accessible via
expressions. To use a custom implementation of this interface,
pass it to the Context.setVariables()
method
Note that a variable may be defined with a null value
Method Summary | |
void |
declareVariable(java.lang.String varName,
java.lang.Object value)
Defines a new variable with the specified value or modifies the value of an existing variable. |
java.lang.Object |
getVariable(java.lang.String varName)
Returns the value of the specified variable. |
boolean |
isDeclaredVariable(java.lang.String varName)
Returns true if the specified variable is declared. |
Method Detail |
public boolean isDeclaredVariable(java.lang.String varName)
varName
- a variable namepublic java.lang.Object getVariable(java.lang.String varName)
varName
- a variable namepublic void declareVariable(java.lang.String varName, java.lang.Object value)
varName
- a variable namevalue
- the new value of the variable, which can be null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |