public class KeywordVariables extends Object implements Variables
Constructor and Description |
---|
KeywordVariables(String keyword,
Object object)
Create a new KeywordVariables.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public KeywordVariables(String keyword, Object object)
keyword
- Stringobject
- valuepublic boolean isDeclaredVariable(String variable)
Variables
isDeclaredVariable
in interface Variables
variable
- variable namepublic Object getVariable(String variable)
Variables
getVariable
in interface Variables
variable
- variable namepublic 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 "$" signCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.