|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.jcr.util.Util
public final class Util
Miscellaneous utility functions
Method Summary | |
---|---|
static java.lang.String |
escape(java.lang.String path)
Escapes a JCR path such that it can be used in a XPath query |
static java.lang.String |
replace(java.lang.String string,
java.lang.String target,
java.lang.String replacement)
Replace every occurrence of target in string with
replacement . |
static java.util.GregorianCalendar |
toCalendar(java.util.Calendar date)
Convert from Calendar to a GregorianCalendar . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.GregorianCalendar toCalendar(java.util.Calendar date)
Calendar
to a GregorianCalendar
.
date
-
date
if it is an instance of GregorianCalendar
.
Otherwise a new GregorianCalendar
instance for date
.public static java.lang.String replace(java.lang.String string, java.lang.String target, java.lang.String replacement)
target
in string
with
replacement
.
string
- string to do replacement ontarget
- string to search forreplacement
- string to replace with
public static java.lang.String escape(java.lang.String path)
path
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |