|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openutils.mgnlcriteria.jcr.query.xpath.utils.XPathTextUtils
public final class XPathTextUtils
A utility class to escape xpath strings
| Method Summary | |
|---|---|
static String |
encodeDigitsInPath(String path)
|
static String |
stringToJCRSearchExp(String str)
Convert a string to a JCR search expression literal, suitable for use in jcr:contains() (inside XPath queries). |
static String |
stringToXPathLiteral(String str)
Convert a string to an XPath 2.0 string literal, suitable for inclusion in a query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String stringToXPathLiteral(String str)
str - Any string.
public static String stringToJCRSearchExp(String str)
str - Any string.
public static String encodeDigitsInPath(String path)
path - to encode eg //my//path/2009//*
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||