|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.util.ValueSourceUtils
public final class ValueSourceUtils
Utility methods shared by multiple ValueSource
implementations.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |