|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimx.nuggets.wcap.RecurDate
public class RecurDate
The data object for recurrence/exclusion date.
This data object contains mainly two pieces of information. The "dayOnly" field indicates whether the "date" field contains only a day's information or an exact time in GMT. A "dayOnly" value of true implies the "date" field only contains day information and the recurrence/exclusion will occur on the same time of the event/todo that creates the recurrence. Otherwise, the recurrence/exclusion will occur on the time specified by the "date" field.
Constructor Summary | |
---|---|
RecurDate(boolean dayOnly,
java.util.Date date)
Default constructor. |
Method Summary | |
---|---|
static RecurDate |
convertFromString(java.lang.String dateStr,
java.text.DateFormat dfDay,
java.text.DateFormat dfFull)
Convert a ISO 8601 date only string or an ISO 8601 Zulu date/time string into a RecurDate object. |
boolean |
equals(java.lang.Object inObj)
Override the default java.lang.Object's equal command. |
java.util.Date |
getDate()
Retrieves the date field. |
boolean |
getDayOnly()
Retrieves the dayOnly field. |
void |
setDate(java.util.Date date)
Sets the date field. |
void |
setDayOnly(boolean dayOnly)
Sets the dayOnly field. |
java.lang.String |
toString()
Display the object as a string. |
java.lang.String |
toWcapQuery(WcapNugget nugget,
java.text.DateFormat dfDay,
java.text.DateFormat dfFull)
Convert the component into a string that is used for constructing a WCAP query. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RecurDate(boolean dayOnly, java.util.Date date) throws InvalidParameterException
dayOnly
- Indicates whether the date parameter stores
date
- The Date object that represent the date and/or time of the recurrence
or exclusion.
InvalidParameterException
Method Detail |
---|
public void setDayOnly(boolean dayOnly)
public boolean getDayOnly()
public void setDate(java.util.Date date) throws InvalidParameterException
InvalidParameterException
public java.util.Date getDate()
public java.lang.String toWcapQuery(WcapNugget nugget, java.text.DateFormat dfDay, java.text.DateFormat dfFull) throws WcapException
dfDay
- A DateFormat object that can format a Date object into ISO 8601 day
string. i.e. yyyyMMdd (yyyy=year, MM=month, dd=day).
dfFull
- A DateFormat object that can format a Date object into ISO 8601 Z
string. i.e. yyyyMMddThhmmssZ (yyyy=year, MM=month,
dd=day, hh=hour, mm=minute, ss=second, T and Z are
the actual text to appear in the string).
WcapException
public boolean equals(java.lang.Object inObj)
equals
in class java.lang.Object
public static RecurDate convertFromString(java.lang.String dateStr, java.text.DateFormat dfDay, java.text.DateFormat dfFull)
dateStr
- The date string.
dfDay
- A DateFormat object of ISO 8601 date only format.
i.e. "yyyyMMdd".
The invoker must ensure that dfDay is not used by other threads at
the same time.
dfFull
- A DateFormat object of ISO 8601 date only format.
i.e. "yyyyMMdd'T'HHmmss'Z'".
The invoker must ensure that dfFull is not used by other threads at
the same time.public java.lang.String toString()
toString
in class java.lang.Object
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.