org.codehaus.plexus.interpolation
Class FixedInterpolatorValueSource

java.lang.Object
  extended by org.codehaus.plexus.interpolation.FixedInterpolatorValueSource
All Implemented Interfaces:
ValueSource

public class FixedInterpolatorValueSource
extends Object
implements ValueSource

A value source that allows a fixed interpolator to be injected into a regular interpolator. This value source encapsulates state, so even though the fixed interpolator can be used as a singleton, a single FixedInterpolatorValueSource can only belong to one interpolator any given time.


Constructor Summary
FixedInterpolatorValueSource(FixedStringSearchInterpolator fixedStringSearchInterpolator)
           
 
Method Summary
 void clearFeedback()
          Clear the feedback accumulated by a prior interpolation run.
 List getFeedback()
          Return the feedback about resolution failures for a particular expression.
 Object getValue(String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedInterpolatorValueSource

public FixedInterpolatorValueSource(FixedStringSearchInterpolator fixedStringSearchInterpolator)
Method Detail

getValue

public Object getValue(String expression)
Specified by:
getValue in interface ValueSource
Returns:
the value related to the expression, or null if not found.

getFeedback

public List getFeedback()
Description copied from interface: ValueSource
Return the feedback about resolution failures for a particular expression.

Specified by:
getFeedback in interface ValueSource
Returns:
a combination of String and Throwable instances, where strings related to throwables are listed first.

clearFeedback

public void clearFeedback()
Description copied from interface: ValueSource
Clear the feedback accumulated by a prior interpolation run.

Specified by:
clearFeedback in interface ValueSource


Copyright © 2001-2014 Codehaus. All Rights Reserved.