FixedValueSourcepublic class MapBasedValueSource extends java.lang.Object implements FixedValueSource
| Constructor | Description |
|---|---|
MapBasedValueSource(java.util.Map values) |
Construct a new value source to wrap the supplied map.
|
| Modifier and Type | Method | 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)
values - the key/value pairs.public java.lang.Object getValue(java.lang.String expression,
InterpolationState interpolationState)
getValue in interface FixedValueSourceexpression - The expression.interpolationState - InterpolationState.Copyright © 2018. All rights reserved.