Class PrefixedObjectValueSource

java.lang.Object
org.codehaus.plexus.interpolation.AbstractDelegatingValueSource
org.apache.maven.model.interpolation.PrefixedObjectValueSource
All Implemented Interfaces:
org.codehaus.plexus.interpolation.QueryEnabledValueSource, org.codehaus.plexus.interpolation.ValueSource

public class PrefixedObjectValueSource extends org.codehaus.plexus.interpolation.AbstractDelegatingValueSource implements org.codehaus.plexus.interpolation.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 Link icon

    Constructors
    Constructor
    Description
    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 the PrefixedValueSourceWrapper allows unprefixed expressions.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description

    Methods inherited from class org.codehaus.plexus.interpolation.AbstractDelegatingValueSource Link icon

    clearFeedback, getDelegate, getFeedback, getValue

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.codehaus.plexus.interpolation.ValueSource Link icon

    clearFeedback, getFeedback, getValue
  • Constructor Details Link icon

    • PrefixedObjectValueSource Link icon

      public PrefixedObjectValueSource(String prefix, Object root)
      Wrap the specified root object, allowing the specified expression prefix.
      Parameters:
      prefix - the prefix.
      root - the root of the graph.
    • PrefixedObjectValueSource Link icon

      public PrefixedObjectValueSource(List<String> possiblePrefixes, Object root, boolean allowUnprefixedExpressions)
      Wrap the specified root object, allowing the specified list of expression prefixes and setting whether the PrefixedValueSourceWrapper allows unprefixed expressions.
      Parameters:
      possiblePrefixes - The possible prefixes.
      root - The root of the graph.
      allowUnprefixedExpressions - if we allow undefined expressions or not.
  • Method Details Link icon

    • getLastExpression Link icon

      public String getLastExpression()
      Specified by:
      getLastExpression in interface org.codehaus.plexus.interpolation.QueryEnabledValueSource