Class PrefixedObjectValueSource
- java.lang.Object
-
- org.codehaus.plexus.interpolation.AbstractDelegatingValueSource
-
- org.codehaus.plexus.interpolation.PrefixedObjectValueSource
-
- All Implemented Interfaces:
QueryEnabledValueSource
,ValueSource
public class PrefixedObjectValueSource extends AbstractDelegatingValueSource implements QueryEnabledValueSource
Wraps an arbitrary object with anObjectBasedValueSource
instance, then wraps that source with aPrefixedValueSourceWrapper
instance, to which this class delegates all of its calls.
-
-
Constructor Summary
Constructors Constructor Description PrefixedObjectValueSource(java.lang.String prefix, java.lang.Object root)
Wrap the specified root object, allowing the specified expression prefix.PrefixedObjectValueSource(java.util.List<java.lang.String> possiblePrefixes, java.lang.Object root, boolean allowUnprefixedExpressions)
Wrap the specified root object, allowing the specified list of expression prefixes and setting whether thePrefixedValueSourceWrapper
allows unprefixed expressions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLastExpression()
-
Methods inherited from class org.codehaus.plexus.interpolation.AbstractDelegatingValueSource
clearFeedback, getDelegate, getFeedback, getValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.interpolation.ValueSource
clearFeedback, getFeedback, getValue
-
-
-
-
Constructor Detail
-
PrefixedObjectValueSource
public PrefixedObjectValueSource(java.lang.String prefix, java.lang.Object root)
Wrap the specified root object, allowing the specified expression prefix.- Parameters:
prefix
- the prefix.root
- the root of the graph.
-
PrefixedObjectValueSource
public PrefixedObjectValueSource(java.util.List<java.lang.String> possiblePrefixes, java.lang.Object root, boolean allowUnprefixedExpressions)
Wrap the specified root object, allowing the specified list of expression prefixes and setting whether thePrefixedValueSourceWrapper
allows unprefixed expressions.- Parameters:
possiblePrefixes
- The possible prefixes.root
- The root of the graph.allowUnprefixedExpressions
- if we allow undefined expressions or not.
-
-
Method Detail
-
getLastExpression
public java.lang.String getLastExpression()
- Specified by:
getLastExpression
in interfaceQueryEnabledValueSource
- Returns:
- the most recent expression processed by this value source, or null.
-
-