|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jxpath.servlet.KeywordVariables
Implementation of the Variables interface that provides access to a single object using a reserved name (keyword).
Field Summary | |
private java.lang.String |
keyword
|
private java.lang.Object |
object
|
Constructor Summary | |
KeywordVariables(java.lang.String keyword,
java.lang.Object object)
|
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 |
Field Detail |
private java.lang.String keyword
private java.lang.Object object
Constructor Detail |
public KeywordVariables(java.lang.String keyword, java.lang.Object object)
Method Detail |
public boolean isDeclaredVariable(java.lang.String variable)
Variables
isDeclaredVariable
in interface Variables
public java.lang.Object getVariable(java.lang.String variable)
Variables
getVariable
in interface Variables
public void declareVariable(java.lang.String variable, java.lang.Object value)
Variables
declareVariable
in interface Variables
public 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 |