public class SimpleVariableResolver extends Object implements VariableResolver
MapVariableResolver
may be the better alternative.Constructor and Description |
---|
SimpleVariableResolver() |
Modifier and Type | Method and Description |
---|---|
Object |
getValue(String name)
Returns the value currently set for the variable given by its name, or
null if no such variable exists.
|
Object |
setValue(String name,
Object value)
Sets the specified value for the variable with the given name.
|
String |
toString() |
public SimpleVariableResolver()
public Object setValue(String name, Object value)
name
- the variable namevalue
- the new value for the variable, null to clear the variablepublic Object getValue(String name)
VariableResolver
getValue
in interface VariableResolver
name
- the variable nameCopyright © 2024. All rights reserved.