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 an
ObjectBasedValueSource instance, then
wraps that source with a PrefixedValueSourceWrapper instance, to which
this class delegates all of its calls.-
Constructor Summary
ConstructorsConstructorDescriptionPrefixedObjectValueSource(String prefix, Object root) Wrap the specified root object, allowing the specified expression prefix.PrefixedObjectValueSource(List<String> possiblePrefixes, Object root, boolean allowUnprefixedExpressions) Wrap the specified root object, allowing the specified list of expression prefixes and setting whether thePrefixedValueSourceWrapperallows unprefixed expressions. -
Method Summary
Methods inherited from class AbstractDelegatingValueSource
clearFeedback, getDelegate, getFeedback, getValue, getValueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ValueSource
clearFeedback, getFeedback, getValue, getValue
-
Constructor Details
-
PrefixedObjectValueSource
-
PrefixedObjectValueSource
public PrefixedObjectValueSource(List<String> possiblePrefixes, Object root, boolean allowUnprefixedExpressions) Wrap the specified root object, allowing the specified list of expression prefixes and setting whether thePrefixedValueSourceWrapperallows unprefixed expressions.- Parameters:
possiblePrefixes- The possible prefixes.root- The root of the graph.allowUnprefixedExpressions- if we allow undefined expressions or not.
-
-
Method Details
-
getLastExpression
- Specified by:
getLastExpressionin interfaceQueryEnabledValueSource- Returns:
- the most recent expression processed by this value source, or null.
-