|
||||||||||
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(String keyword,
Object object)
Create a new KeywordVariables. |
Method Summary | |
---|---|
void |
declareVariable(String variable,
Object value)
Defines a new variable with the specified value or modifies the value of an existing variable. |
Object |
getVariable(String variable)
Returns the value of the specified variable. |
boolean |
isDeclaredVariable(String variable)
Returns true if the specified variable is declared. |
void |
undeclareVariable(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(String keyword, Object object)
keyword
- Stringobject
- valueMethod Detail |
---|
public boolean isDeclaredVariable(String variable)
Variables
isDeclaredVariable
in interface Variables
variable
- variable name
public Object getVariable(String variable)
Variables
getVariable
in interface Variables
variable
- variable name
public void declareVariable(String variable, Object value)
Variables
declareVariable
in interface Variables
variable
- variable namevalue
- to declarepublic void undeclareVariable(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 |