| java.lang.Object org.apache.commons.jxpath.BasicVariables
BasicVariables | public class BasicVariables implements Variables(Code) | | A basic implementation of the Variables interface that uses a HashMap.
author: Dmitri Plotnikov version: $Revision: 1.7 $ $Date: 2004/02/29 14:17:42 $ |
declareVariable | public void declareVariable(String varName, Object value)(Code) | | Defines a new variable with the specified value or modifies
the value of an existing variable.
Parameters: varName - is a variable name without the "$" sign Parameters: value - is the new value for the variable, which can be null |
getVariable | public Object getVariable(String varName)(Code) | | Returns the value of the variable if it is defined,
otherwise, throws IllegalArgumentException
Parameters: varName - is a variable name without the "$" sign the value of the variable |
isDeclaredVariable | public boolean isDeclaredVariable(String varName)(Code) | | Returns true if the variable has been defined, even if the
value of the variable is null.
Parameters: varName - is a variable name without the "$" sign true if the variable is declared |
undeclareVariable | public void undeclareVariable(String varName)(Code) | | Removes an existing variable. May throw UnsupportedOperationException.
Parameters: varName - is a variable name without the "$" sign |
|
|