org.codehaus.plexus.interpolation.util
public final class ValueSourceUtils extends java.lang.Object
ValueSource
implementations.Modifier and Type | Method and Description |
---|---|
static java.lang.String |
trimPrefix(java.lang.String expression,
java.util.Collection possiblePrefixes,
boolean allowUnprefixedExpressions)
If the expression starts with one of the provided prefixes, trim that prefix
and return the remaining expression.
|
public static java.lang.String trimPrefix(java.lang.String expression, java.util.Collection possiblePrefixes, boolean allowUnprefixedExpressions)
expression
- The expression to trimpossiblePrefixes
- The list of possible expression prefixes to trimallowUnprefixedExpressions
- Whether to return the expression if it
doesn't start with one of the prefixes. If true, simply return the
original expression; if false, return null.Copyright © 2014. All Rights Reserved.