|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.api.search.SearchExpressionUtils
public class SearchExpressionUtils
Canonical utilities for parsing incoming string search expressions
Field Summary | |
---|---|
static Collection<SearchOperator> |
CLAUSE_OPERATORS
Clause operators just join multiple expressions |
Method Summary | |
---|---|
static String[] |
parseBinaryOperatorValues(SearchOperator operator,
String expression)
|
static String |
parsePostfixUnaryOperatorValue(SearchOperator operator,
String expression)
|
static Predicate |
parsePredicates(String expression,
String property)
|
static String |
parsePrefixUnaryOperatorValue(SearchOperator operator,
String expression)
|
static Range |
parseRange(String rangeString)
|
static Predicate |
parseSimplePredicate(String property,
String value)
|
static String[] |
splitOnClauses(String expression)
Splits the expression by AND and OR operators. |
static String[] |
splitOnOperators(String expression,
Collection<SearchOperator> operators)
Splits the expression by the given operators. |
static String[] |
splitOnOperators(String expression,
SearchOperator... operators)
Splits the expression by the given operators. |
static String |
stripClauseOperators(String expression)
Strips AND and OR operators from the expression string |
static String |
stripOperators(String expression,
Collection<SearchOperator> operators)
Strips AND and OR operators from the expression string |
static String |
stripOperators(String expression,
SearchOperator... operators)
Strips AND and OR operators from the expression string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Collection<SearchOperator> CLAUSE_OPERATORS
Method Detail |
---|
public static String parsePrefixUnaryOperatorValue(SearchOperator operator, String expression)
public static String parsePostfixUnaryOperatorValue(SearchOperator operator, String expression)
public static String[] parseBinaryOperatorValues(SearchOperator operator, String expression)
public static String[] splitOnClauses(String expression)
expression
- the expression to parse
public static String stripClauseOperators(String expression)
expression
- the expression to parse
public static String[] splitOnOperators(String expression, Collection<SearchOperator> operators)
expression
- the expression to parse
public static String[] splitOnOperators(String expression, SearchOperator... operators)
expression
- the expression to parse
public static String stripOperators(String expression, Collection<SearchOperator> operators)
expression
- the expression to parse
public static String stripOperators(String expression, SearchOperator... operators)
expression
- the expression to parse
public static Range parseRange(String rangeString)
public static Predicate parsePredicates(String expression, String property)
public static Predicate parseSimplePredicate(String property, String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |