Class AbstractDelegatingValueSource
- java.lang.Object
-
- org.codehaus.plexus.interpolation.AbstractDelegatingValueSource
-
- All Implemented Interfaces:
ValueSource
- Direct Known Subclasses:
PrefixedObjectValueSource,PrefixedPropertiesValueSource
public abstract class AbstractDelegatingValueSource extends java.lang.Object implements ValueSource
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingValueSource(ValueSource delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearFeedback()Clear the feedback accumulated by a prior interpolation run.protected ValueSourcegetDelegate()java.util.ListgetFeedback()Return the feedback about resolution failures for a particular expression.java.lang.ObjectgetValue(java.lang.String expression)java.lang.ObjectgetValue(java.lang.String expression, java.lang.String delimiterStart, java.lang.String delimiterEnd)Returns a value resolved from an expression.
-
-
-
Constructor Detail
-
AbstractDelegatingValueSource
protected AbstractDelegatingValueSource(ValueSource delegate)
-
-
Method Detail
-
getDelegate
protected ValueSource getDelegate()
-
getValue
public java.lang.Object getValue(java.lang.String expression, java.lang.String delimiterStart, java.lang.String delimiterEnd)Description copied from interface:ValueSourceReturns a value resolved from an expression. The return value is recursively resolved viaBasicInterpolator.interpolate(String), i.e. might contain expressions as well.- Specified by:
getValuein interfaceValueSource- Parameters:
expression- The string expression.delimiterStart- A valid start delimiter of the expression to be used with the callingInterpolator(by default${).delimiterEnd- A valid end delimiter of the expression to be used with the callingInterpolator(by default}).- Returns:
- the value related to the expression, or
nullif not found. This value might contain other expressions separated byexpressionStartDelimiterandexpressionEndDelimiter
-
getValue
public java.lang.Object getValue(java.lang.String expression)
- Specified by:
getValuein interfaceValueSource- Parameters:
expression- The string expression.- Returns:
- the value related to the expression, or
nullif not found. - See Also:
ValueSource.getValue(String, String, String)
-
clearFeedback
public void clearFeedback()
Description copied from interface:ValueSourceClear the feedback accumulated by a prior interpolation run.- Specified by:
clearFeedbackin interfaceValueSource
-
getFeedback
public java.util.List getFeedback()
Description copied from interface:ValueSourceReturn the feedback about resolution failures for a particular expression.- Specified by:
getFeedbackin interfaceValueSource- Returns:
- a combination of String and Throwable instances, where strings related to throwables are listed first.
-
-