Package com.day.cq.search.eval
Class XPath
- java.lang.Object
-
- com.day.cq.search.eval.XPath
-
public abstract class XPath extends java.lang.Object
Utility class for XPath related methods and constants.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AND
static java.lang.String
CLOSING_BRACKET
static java.lang.String
DESC
static java.lang.String
FN_LOWER_CASE
static java.lang.String
JCR_CONTAINS
static java.lang.String
JCR_LIKE
static char
JCR_LIKE_ANY_WILDCARD
static char
JCR_LIKE_SINGLE_WILDCARD
static java.lang.String
JCR_LIKE_WILDCARD
static java.lang.String
JCR_ROOT
static java.lang.String
NOT
static java.lang.String
OPENING_BRACKET
static java.lang.String
OPTION
static java.lang.String
OR
static java.lang.String
ORDER_BY
static java.lang.String
PREDICATE_CLOSING_BRACKET
static java.lang.String
PREDICATE_OPENING_BRACKET
static java.lang.String
REP_EXCERPT
static java.lang.String
SEARCH_ALL
static java.lang.String
XPATH_FUNCTION_NAME
static java.lang.String
XPATH_FUNCTION_PREFIX
static java.lang.String
XPATH_PREFIX
-
Constructor Summary
Constructors Constructor Description XPath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getCaseInsensitiveEqualsExpression(java.lang.String property, java.lang.String value)
static java.lang.String
getCaseInsensitiveUnqualsExpression(java.lang.String property, java.lang.String value)
static java.lang.String
getEqualsExpression(java.lang.String property, java.lang.String value)
static java.lang.String
getFulltextStringLiteral(java.lang.String value)
static java.lang.String
getJcrLikeExpression(java.lang.String property, java.lang.String value)
static java.lang.String
getNotExpression(java.lang.String property)
static java.lang.String
getPropertyPath(java.lang.String property)
static java.lang.String
getStringLiteral(java.lang.String value)
static java.lang.String
getUnequalsExpression(java.lang.String property, java.lang.String value)
static java.lang.String
getXPathOrderBy(java.lang.String property, boolean ascending)
static java.lang.String
getXPathOrderBy(java.lang.String property, boolean ascending, boolean ignoreCase)
-
-
-
Field Detail
-
SEARCH_ALL
public static final java.lang.String SEARCH_ALL
- See Also:
- Constant Field Values
-
NOT
public static final java.lang.String NOT
- See Also:
- Constant Field Values
-
AND
public static final java.lang.String AND
- See Also:
- Constant Field Values
-
OR
public static final java.lang.String OR
- See Also:
- Constant Field Values
-
ORDER_BY
public static final java.lang.String ORDER_BY
- See Also:
- Constant Field Values
-
DESC
public static final java.lang.String DESC
- See Also:
- Constant Field Values
-
OPTION
public static final java.lang.String OPTION
- See Also:
- Constant Field Values
-
OPENING_BRACKET
public static final java.lang.String OPENING_BRACKET
- See Also:
- Constant Field Values
-
CLOSING_BRACKET
public static final java.lang.String CLOSING_BRACKET
- See Also:
- Constant Field Values
-
PREDICATE_OPENING_BRACKET
public static final java.lang.String PREDICATE_OPENING_BRACKET
- See Also:
- Constant Field Values
-
PREDICATE_CLOSING_BRACKET
public static final java.lang.String PREDICATE_CLOSING_BRACKET
- See Also:
- Constant Field Values
-
JCR_ROOT
public static final java.lang.String JCR_ROOT
- See Also:
- Constant Field Values
-
JCR_LIKE
public static final java.lang.String JCR_LIKE
- See Also:
- Constant Field Values
-
JCR_CONTAINS
public static final java.lang.String JCR_CONTAINS
- See Also:
- Constant Field Values
-
JCR_LIKE_WILDCARD
public static final java.lang.String JCR_LIKE_WILDCARD
- See Also:
- Constant Field Values
-
JCR_LIKE_ANY_WILDCARD
public static final char JCR_LIKE_ANY_WILDCARD
- See Also:
- Constant Field Values
-
JCR_LIKE_SINGLE_WILDCARD
public static final char JCR_LIKE_SINGLE_WILDCARD
- See Also:
- Constant Field Values
-
REP_EXCERPT
public static final java.lang.String REP_EXCERPT
- See Also:
- Constant Field Values
-
FN_LOWER_CASE
public static final java.lang.String FN_LOWER_CASE
- See Also:
- Constant Field Values
-
XPATH_PREFIX
public static final java.lang.String XPATH_PREFIX
- See Also:
- Constant Field Values
-
XPATH_FUNCTION_PREFIX
public static final java.lang.String XPATH_FUNCTION_PREFIX
- See Also:
- Constant Field Values
-
XPATH_FUNCTION_NAME
public static final java.lang.String XPATH_FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPropertyPath
public static java.lang.String getPropertyPath(java.lang.String property)
-
getStringLiteral
public static java.lang.String getStringLiteral(java.lang.String value)
-
getFulltextStringLiteral
public static java.lang.String getFulltextStringLiteral(java.lang.String value)
-
getEqualsExpression
public static java.lang.String getEqualsExpression(java.lang.String property, java.lang.String value)
-
getCaseInsensitiveEqualsExpression
public static java.lang.String getCaseInsensitiveEqualsExpression(java.lang.String property, java.lang.String value)
-
getCaseInsensitiveUnqualsExpression
public static java.lang.String getCaseInsensitiveUnqualsExpression(java.lang.String property, java.lang.String value)
-
getUnequalsExpression
public static java.lang.String getUnequalsExpression(java.lang.String property, java.lang.String value)
-
getJcrLikeExpression
public static java.lang.String getJcrLikeExpression(java.lang.String property, java.lang.String value)
-
getNotExpression
public static java.lang.String getNotExpression(java.lang.String property)
-
getXPathOrderBy
public static java.lang.String getXPathOrderBy(java.lang.String property, boolean ascending)
-
getXPathOrderBy
public static java.lang.String getXPathOrderBy(java.lang.String property, boolean ascending, boolean ignoreCase)
-
-