java.lang.Object
org.apache.commons.jxpath.servlet.KeywordVariables
- All Implemented Interfaces:
- org.apache.commons.jxpath.Variables
- public class KeywordVariables
- extends java.lang.Object
- implements org.apache.commons.jxpath.Variables
Implementation of the Variables interface that provides access
to a single object using a reserved name (keyword).
- Version:
- $Revision: 1.6 $ $Date: 2004/02/29 14:17:40 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keyword
private java.lang.String keyword
object
private java.lang.Object object
KeywordVariables
public KeywordVariables(java.lang.String keyword,
java.lang.Object object)
isDeclaredVariable
public boolean isDeclaredVariable(java.lang.String variable)
- Description copied from interface:
org.apache.commons.jxpath.Variables
- Returns true if the specified variable is declared.
- Specified by:
isDeclaredVariable in interface org.apache.commons.jxpath.Variables
getVariable
public java.lang.Object getVariable(java.lang.String variable)
- Description copied from interface:
org.apache.commons.jxpath.Variables
- Returns the value of the specified variable.
Throws IllegalArgumentException if there is no such variable.
- Specified by:
getVariable in interface org.apache.commons.jxpath.Variables
declareVariable
public void declareVariable(java.lang.String variable,
java.lang.Object value)
- Description copied from interface:
org.apache.commons.jxpath.Variables
- Defines a new variable with the specified value or modifies
the value of an existing variable.
May throw UnsupportedOperationException.
- Specified by:
declareVariable in interface org.apache.commons.jxpath.Variables
undeclareVariable
public void undeclareVariable(java.lang.String variable)
- Description copied from interface:
org.apache.commons.jxpath.Variables
- Removes an existing variable. May throw UnsupportedOperationException.
- Specified by:
undeclareVariable in interface org.apache.commons.jxpath.Variables