|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ecmimpl.cmis.util.OwCMISDateTime
public class OwCMISDateTime
Date handling utility for CMIS adapter.
The main purpose of this utility is to implement String to Date and reversed conversions
with respect to the Date String format specified by CMIS : YYYY-MM-DDThh:mm:ss.sss[Z | +hh:mm | -hh:mm].
The implementation relays on the XMLGregorianCalendar implementation.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor Summary | |
|---|---|
OwCMISDateTime(Date date_p)
Constructor |
|
OwCMISDateTime(Date date_p,
TimeZone timeZone_p)
Constructor |
|
OwCMISDateTime(Date date_p,
TimeZone timeZone_p,
boolean ignoreDateZone_p)
Constructor |
|
OwCMISDateTime(String dateLexicalRepresentation_p)
Constructor |
|
OwCMISDateTime(XMLGregorianCalendar calendar_p)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj_p)
|
Calendar |
getCalendar()
|
Date |
getDate(boolean ignoreTimeZone_p)
|
TimeZone |
getTimeZone()
|
XMLGregorianCalendar |
getXMLGregorianCalendar()
|
XMLGregorianCalendar |
getXMLGregorianCalendar(boolean ignoreTimeZone_p)
|
int |
hashCode()
|
String |
toCMISDateTimeString()
|
String |
toCMISDateTimeString(boolean omitTimeZone_p)
|
String |
toISODateTimeString()
|
String |
toISODateTimeString(boolean omitTimeZone_p)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OwCMISDateTime(String dateLexicalRepresentation_p)
throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
dateLexicalRepresentation_p - String representation of a CMIS datecom.wewebu.ow.server.exceptions.OwInvalidOperationExceptionpublic OwCMISDateTime(XMLGregorianCalendar calendar_p)
public OwCMISDateTime(Date date_p)
throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
date_p - date represented by this object (time zone included)
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if cannot create/convert to XMLGregorianCalendar
public OwCMISDateTime(Date date_p,
TimeZone timeZone_p)
throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
date_p - date represented by this objecttimeZone_p - the time zone to represent the given date in
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if cannot create/convert to XMLGregorianCalendar
public OwCMISDateTime(Date date_p,
TimeZone timeZone_p,
boolean ignoreDateZone_p)
throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
date_p - date represented by this objecttimeZone_p - the time zone to represent the given date inignoreDateZone_p - if true the time zone of the given date will be ignoredfalse the time zone of the given date will be considered
when creating the date representation in the given time zone.
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if cannot create/convert to XMLGregorianCalendar| Method Detail |
|---|
public String toCMISDateTimeString()
public String toISODateTimeString()
public String toISODateTimeString(boolean omitTimeZone_p)
public String toCMISDateTimeString(boolean omitTimeZone_p)
omitTimeZone_p - if true the time zone part of the string representation will be omittedfalse the string representation will include the time zone part
public Date getDate(boolean ignoreTimeZone_p)
ignoreTimeZone_p - if true ???
Date representation of this objectpublic Calendar getCalendar()
Calendar representation of this object; the TimeZone of the
returned Calendar will be set to the closest TimeZone as given
by TimeZone.getAvailableIDs(int) for this dates UTC offsetpublic XMLGregorianCalendar getXMLGregorianCalendar()
XMLGregorianCalendar representation of this date time objectpublic XMLGregorianCalendar getXMLGregorianCalendar(boolean ignoreTimeZone_p)
ignoreTimeZone_p - if true the returned XMLGregorianCalendar will
have an undefined time zone
XMLGregorianCalendar representation of this date time objectpublic TimeZone getTimeZone()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj_p)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||