Class MapBasedValueSource
java.lang.Object
org.codehaus.plexus.interpolation.fixed.MapBasedValueSource
- All Implemented Interfaces:
FixedValueSource
Wraps a Map, and looks up the whole expression as a single key, returning the
value mapped to it.
-
Constructor Summary
ConstructorDescriptionMapBasedValueSource
(Map values) Construct a new value source to wrap the supplied map. -
Method Summary
Modifier and TypeMethodDescriptiongetValue
(String expression, InterpolationState interpolationState) Lookup the supplied expression as a key in the wrapped Map, and return its value.
-
Constructor Details
-
MapBasedValueSource
Construct a new value source to wrap the supplied map.- Parameters:
values
- the key/value pairs.
-
-
Method Details
-
getValue
Lookup the supplied expression as a key in the wrapped Map, and return its value.- Specified by:
getValue
in interfaceFixedValueSource
- Parameters:
expression
- The expression.interpolationState
-InterpolationState
.- Returns:
- the value related to the expression, or null if not found (not available from this source)
-