public final class ValueSourceUtils
extends java.lang.Object
ValueSource
implementations.Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
trimPrefix(java.lang.String expression,
java.lang.String[] possiblePrefixes,
boolean allowUnprefixedExpressions) |
|
static java.lang.String |
trimPrefix(java.lang.String expression,
java.util.Collection<java.lang.String> 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<java.lang.String> 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.public static java.lang.String trimPrefix(java.lang.String expression, java.lang.String[] possiblePrefixes, boolean allowUnprefixedExpressions)
Copyright © 2018. All rights reserved.