| org.apache.commons.jxpath.Variables
All known Subclasses: org.apache.commons.jxpath.servlet.KeywordVariables, org.apache.commons.jxpath.BasicVariables,
Variables | public interface Variables (Code) | | Variables provide access to a global set of values accessible via XPath.
XPath can reference variables using the "$varname" syntax.
To use a custom implementation of this interface, pass it to
JXPathContext.setVariables JXPathContext.setVariables() author: Dmitri Plotnikov version: $Revision: 1.6 $ $Date: 2004/02/29 14:17:42 $ |
declareVariable | void declareVariable(String varName, Object value)(Code) | | Defines a new variable with the specified value or modifies
the value of an existing variable.
May throw UnsupportedOperationException.
|
getVariable | Object getVariable(String varName)(Code) | | Returns the value of the specified variable.
Throws IllegalArgumentException if there is no such variable.
|
isDeclaredVariable | boolean isDeclaredVariable(String varName)(Code) | | Returns true if the specified variable is declared.
|
undeclareVariable | void undeclareVariable(String varName)(Code) | | Removes an existing variable. May throw UnsupportedOperationException.
Parameters: varName - is a variable name without the "$" sign |
|
|