public class MapBasedValueSource extends Object implements FixedValueSource
| Constructor and Description |
|---|
MapBasedValueSource(Map values)
Construct a new value source to wrap the supplied map.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue(String expression,
InterpolationState interpolationState)
Lookup the supplied expression as a key in the wrapped Map, and return
its value.
|
public MapBasedValueSource(Map values)
values - the key/value pairs.public Object getValue(String expression, InterpolationState interpolationState)
getValue in interface FixedValueSourceexpression - The expression.interpolationState - InterpolationState.Copyright © 2001–2019 Codehaus Plexus. All rights reserved.