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