org.codehaus.plexus.interpolation.util
public final class ValueSourceUtils extends Object
Version: $Id: ValueSourceUtils.java 7529 2008-07-20 20:24:21Z olamy $
Method Summary | |
---|---|
static String | trimPrefix(String expression, Collection possiblePrefixes, boolean allowUnprefixedExpressions)
If the expression starts with one of the provided prefixes, trim that prefix
and return the remaining expression. |
Parameters: expression The expression to trim possiblePrefixes The list of possible expression prefixes to trim allowUnprefixedExpressions 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.
Returns: The trimmed expression, or null. See the behavior of allowUnprefixedExpressions in this method for more detail.