|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.servlet.KeywordVariables
public class KeywordVariables
Implementation of the Variables interface that provides access to a single object using a reserved name (keyword).
Constructor Summary | |
---|---|
KeywordVariables(java.lang.String keyword,
java.lang.Object object)
Create a new KeywordVariables. |
Method Summary | |
---|---|
void |
declareVariable(java.lang.String variable,
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 variable)
Returns the value of the specified variable. |
boolean |
isDeclaredVariable(java.lang.String variable)
Returns true if the specified variable is declared. |
void |
undeclareVariable(java.lang.String variable)
Removes an existing variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeywordVariables(java.lang.String keyword, java.lang.Object object)
keyword
- Stringobject
- valueMethod Detail |
---|
public boolean isDeclaredVariable(java.lang.String variable)
Variables
isDeclaredVariable
in interface Variables
variable
- variable name
public java.lang.Object getVariable(java.lang.String variable)
Variables
getVariable
in interface Variables
variable
- variable name
public void declareVariable(java.lang.String variable, java.lang.Object value)
Variables
declareVariable
in interface Variables
variable
- variable namevalue
- to declarepublic void undeclareVariable(java.lang.String variable)
Variables
undeclareVariable
in interface Variables
variable
- is a variable name without the "$" sign
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |