org.codehaus.plexus.interpolation
Class SingleResponseValueSource

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

public class SingleResponseValueSource
extends Object
implements ValueSource

If the expression matches, simply return the response object.

Since:
1.12

Constructor Summary
SingleResponseValueSource(String expression, Object response)
           
 
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

SingleResponseValueSource

public SingleResponseValueSource(String expression,
                                 Object response)
Method Detail

clearFeedback

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

Specified by:
clearFeedback in interface ValueSource

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.

getValue

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


Copyright © 2001-2011 Codehaus. All Rights Reserved.