org.codehaus.plexus.interpolation
public class PrefixedValueSourceWrapper extends Object implements FeedbackEnabledValueSource, QueryEnabledValueSource
Version: $Id: PrefixedValueSourceWrapper.java 7681 2008-08-22 20:34:22Z jdcasey $
Constructor Summary | |
---|---|
PrefixedValueSourceWrapper(ValueSource valueSource, String prefix)
Wrap the given value source, but first trim the given prefix from any
expressions before they are passed along for resolution. | |
PrefixedValueSourceWrapper(ValueSource valueSource, String prefix, boolean allowUnprefixedExpressions)
Wrap the given value source, but first trim the given prefix from any
expressions before they are passed along for resolution. | |
PrefixedValueSourceWrapper(ValueSource valueSource, List possiblePrefixes)
Wrap the given value source, but first trim one of the given prefixes from any
expressions before they are passed along for resolution. | |
PrefixedValueSourceWrapper(ValueSource valueSource, List possiblePrefixes, boolean allowUnprefixedExpressions)
Wrap the given value source, but first trim one of the given prefixes from any
expressions before they are passed along for resolution. |
Method Summary | |
---|---|
void | clearFeedback()
If the nested ValueSource implements FeedbackEnabledValueSource,
then clear that source's feedback list. |
List | getFeedback()
If the nested ValueSource implements FeedbackEnabledValueSource,
then return that source's feedback list. |
String | getLastExpression()
If the nested ValueSource implements QueryEnabledValueSource,
then return that source's last expression. |
Object | getValue(String expression)
Uses ValueSourceUtils to
get the trimmed expression. |
Parameters: valueSource The ValueSource to wrap. prefix The expression prefix to trim.
Parameters: valueSource The ValueSource to wrap. prefix The expression prefix to trim. allowUnprefixedExpressions Flag telling the wrapper whether to continue resolving expressions that don't start with the prefix it tracks.
Parameters: valueSource The ValueSource to wrap. possiblePrefixes The List of expression prefixes to trim.
Parameters: valueSource The ValueSource to wrap. possiblePrefixes The List of expression prefixes to trim. allowUnprefixedExpressions Flag telling the wrapper whether to continue resolving expressions that don't start with one of the prefixes it tracks.