public class MapBasedValueSource extends java.lang.Object implements FixedValueSource
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
values |
| Constructor and Description |
|---|
MapBasedValueSource(java.util.Map values)
Construct a new value source to wrap the supplied map.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue(java.lang.String expression,
InterpolationState interpolationState)
Lookup the supplied expression as a key in the wrapped Map, and return
its value.
|
public MapBasedValueSource(java.util.Map values)
public java.lang.Object getValue(java.lang.String expression,
InterpolationState interpolationState)
getValue in interface FixedValueSource