|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.server.support.query.CalendarHelper
public class CalendarHelper
Helper dealing with conversion of Calendar
to and from the string
format specified by CMISQL.
Method Summary | |
---|---|
static java.util.GregorianCalendar |
fromString(java.lang.String datetime)
Converts a CMISQL date string representation to a GregorianCalendar . |
static java.lang.String |
toString(java.util.Calendar cal)
Converts a Calendar to its CMISQL string representation. |
static void |
toString(java.util.Calendar cal,
java.lang.StringBuilder buf)
Converts a Calendar to its CMISQL string representation. |
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 fromString(java.lang.String datetime)
GregorianCalendar
.
Parses YYYY-HH-MMThh:mm:ss.sss+hh:mm
, or a Z
for the
timezone, and with .sss
being optional.
datetime
- the string representation in CMISQL format
public static java.lang.String toString(java.util.Calendar cal)
cal
- a Calendar
public static void toString(java.util.Calendar cal, java.lang.StringBuilder buf)
cal
- a Calendar
buf
- a buffer in which to add the CMISQL string representation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |