Class KeywordVariables
java.lang.Object
org.apache.commons.jxpath.servlet.KeywordVariables
- All Implemented Interfaces:
Serializable, Variables
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeywordVariables(String keyword, Object object) Create a new KeywordVariables. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareVariable(String variable, Object value) Defines a new variable with the specified value or modifies the value of an existing variable.getVariable(String variable) Returns the value of the specified variable.booleanisDeclaredVariable(String variable) Returns true if the specified variable is declared.voidundeclareVariable(String variable) Removes an existing variable.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
keyword
-
object
-
-
Constructor Details
-
KeywordVariables
-
-
Method Details
-
isDeclaredVariable
Description copied from interface:VariablesReturns true if the specified variable is declared.- Specified by:
isDeclaredVariablein interfaceVariables- Parameters:
variable- variable name- Returns:
- boolean
-
getVariable
Description copied from interface:VariablesReturns the value of the specified variable.- Specified by:
getVariablein interfaceVariables- Parameters:
variable- variable name- Returns:
- Object value
-
declareVariable
Description copied from interface:VariablesDefines a new variable with the specified value or modifies the value of an existing variable. May throw UnsupportedOperationException.- Specified by:
declareVariablein interfaceVariables- Parameters:
variable- variable namevalue- to declare
-
undeclareVariable
Description copied from interface:VariablesRemoves an existing variable. May throw UnsupportedOperationException.- Specified by:
undeclareVariablein interfaceVariables- Parameters:
variable- is a variable name without the "$" sign
-