org.codehaus.plexus.interpolation

Class MapBasedValueSource

public class MapBasedValueSource extends AbstractValueSource

Wraps a Map, and looks up the whole expression as a single key, returning the value mapped to it.

Version: $Id: MapBasedValueSource.java 7717 2008-09-12 21:04:19Z jdcasey $

Constructor Summary
MapBasedValueSource(Map values)
Construct a new value source to wrap the supplied map.
Method Summary
ObjectgetValue(String expression)
Lookup the supplied expression as a key in the wrapped Map, and return its value.

Constructor Detail

MapBasedValueSource

public MapBasedValueSource(Map values)
Construct a new value source to wrap the supplied map.

Method Detail

getValue

public Object getValue(String expression)
Lookup the supplied expression as a key in the wrapped Map, and return its value.
Copyright © 2001-2009 Codehaus. All Rights Reserved.