|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimx.nuggets.wcap.Component
public abstract class Component
The parent class of Event and ToDo. This abstract class composed of the basic information common to both Event and ToDo. For more details of the meaning of each field, please refer to the JavaDoc of the default constructors for Event and ToDo.
(Note: although RFC 2445 indicates a component can be event, todo AND journal, this package only implements Event and ToDo only. It is because iCS doesn't support the idea of Journal yet.)
Field Summary | |
---|---|
protected Alarm |
_alarm
|
protected java.util.Date |
_created
|
protected java.lang.String |
_desc
|
protected java.util.Vector |
_exdates
|
protected java.util.Vector |
_exrules
|
protected java.util.Date |
_lastMod
|
protected java.lang.String |
_location
|
protected int |
_priority
|
protected java.util.Vector |
_rdates
|
protected java.lang.String |
_rid
|
protected java.util.Vector |
_rrules
|
protected int |
_sequence
|
protected CompStatus |
_status
|
protected java.lang.String |
_timeZoneId
|
protected java.lang.String |
_title
|
protected java.lang.String |
_uid
|
Constructor Summary | |
---|---|
Component(java.lang.String uid,
java.lang.String rid,
java.lang.String title,
java.lang.String desc,
java.lang.String location,
CompStatus status,
java.util.Vector rdates,
java.util.Vector rrules,
java.util.Vector exdates,
java.util.Vector exrules,
Alarm alarm,
int priority,
int sequence,
java.util.Date created,
java.util.Date lastMod,
java.lang.String timeZoneId)
Default constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object inObj)
Override the default java.lang.Object's equal command. |
Alarm |
getAlarm()
Get the alarm field. |
java.util.Date |
getCreatedDate()
Get the Date object that represents the component's creation time. |
java.lang.String |
getDescription()
Get the description. |
java.util.Vector |
getExclusionDates()
Get the exclusion dates. |
java.util.Vector |
getExclusionRules()
Get the exclusion rules. |
java.util.Date |
getLastModDate()
Get the Date object that represents the component's last modified time. |
java.lang.String |
getLocation()
Get the location. |
int |
getPriority()
Get the priority. |
java.util.Vector |
getRecurrenceDates()
Get the recurrence dates. |
java.util.Vector |
getRecurrenceRules()
Get the recurrence rules. |
java.lang.String |
getRid()
Get the recurrence id. |
int |
getSequence()
Get the sequence number. |
CompStatus |
getStatus()
Get the status of the Event/ToDo. |
java.lang.String |
getTimeZoneId()
Get the time zone ID string that will be used in the notification email. |
java.lang.String |
getTitle()
Get the title. |
java.lang.String |
getUid()
Get the unique id. |
boolean |
hasRecurRule()
A convenience method to check if the component "REALLY" has a recurrence rule. |
void |
setAlarm(Alarm alarm)
Set the alarm field. |
void |
setCreatedDate(java.util.Date created)
Set the Date object that represents the component's creation time. |
void |
setDescription(java.lang.String desc)
Set the description. |
void |
setExclusionDates(java.util.Vector exdates)
Set the exclusion dates. |
void |
setExclusionRules(java.util.Vector exrules)
Set the exclusion rules. |
void |
setLastModDate(java.util.Date lastMod)
Set the Date object that represents the component's last modified time. |
void |
setLocation(java.lang.String location)
Set the location. |
void |
setPriority(int priority)
Set the priority. |
void |
setRecurrenceDates(java.util.Vector rdates)
Set the recurrence rules. |
void |
setRecurrenceRules(java.util.Vector rrules)
Set the recurrence rules. |
void |
setRid(java.lang.String rid)
Set the recurrence id. |
void |
setSequence(int sequence)
Set the sequence number. |
void |
setStatus(CompStatus status)
Set the status of the Event/ToDo. |
void |
setTimeZoneId(java.lang.String timeZoneId)
Set the time zone ID string that will be used in the notification email. |
void |
setTitle(java.lang.String title)
Set the title. |
void |
setUid(java.lang.String uid)
Get the unique id. |
java.lang.String |
toString()
Returns a meaningful message with respect to the content of the object. |
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 |
Field Detail |
---|
protected java.lang.String _uid
protected java.lang.String _rid
protected java.lang.String _title
protected java.lang.String _desc
protected java.lang.String _location
protected CompStatus _status
protected java.util.Vector _rdates
protected java.util.Vector _rrules
protected java.util.Vector _exdates
protected java.util.Vector _exrules
protected Alarm _alarm
protected int _priority
protected int _sequence
protected java.util.Date _created
protected java.util.Date _lastMod
protected java.lang.String _timeZoneId
Constructor Detail |
---|
public Component(java.lang.String uid, java.lang.String rid, java.lang.String title, java.lang.String desc, java.lang.String location, CompStatus status, java.util.Vector rdates, java.util.Vector rrules, java.util.Vector exdates, java.util.Vector exrules, Alarm alarm, int priority, int sequence, java.util.Date created, java.util.Date lastMod, java.lang.String timeZoneId)
ToDo
,
Event
Method Detail |
---|
public java.lang.String getUid()
public void setUid(java.lang.String uid)
public java.lang.String getRid()
A new Event/ToDo does not have any rid created, and thus, one can leave this field null. However, once it's created, you should get the rid from the server as you fetch the Event/ToDo. According to iCS Programmer's Reference, the rid will be "0" for all Events/ToDos that donot have recurring instances. Otherwise, it would be the same string as the ISO8601 Zulu timestamp of the instance of Event/ToDo.
public void setRid(java.lang.String rid)
A new Event/ToDo does not have any rid created, and thus, one can leave this field null. However, once it's created, you should get the rid from the server as you fetch the Event/ToDo. According to iCS Programmer's Reference, the rid will be "0" for all Events/ToDos that donot have recurring instances. Otherwise, it would be the same string as the ISO8601 Zulu timestamp of the instance of Event/ToDo.
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public CompStatus getStatus()
public void setStatus(CompStatus status)
public java.util.Vector getRecurrenceDates()
public void setRecurrenceDates(java.util.Vector rdates)
public java.util.Vector getRecurrenceRules()
public void setRecurrenceRules(java.util.Vector rrules)
public java.util.Vector getExclusionDates()
public void setExclusionDates(java.util.Vector exdates)
public java.util.Vector getExclusionRules()
public void setExclusionRules(java.util.Vector exrules)
public Alarm getAlarm()
public void setAlarm(Alarm alarm)
public int getPriority()
The priority value is an integer from 0 to 9, where 0 is the lowest priority and 9 is the highest priority. A negative value means this value has not been specified yet.
public void setPriority(int priority)
The priority value is an integer from 0 to 9, where 0 is the lowest priority and 9 is the highest priority. A negative value means this value has not been specified.
public int getSequence()
The sequence number is an integer value. A negative value means this value has not been specified.
public void setSequence(int sequence)
The sequence number is an integer value. A negative value means this value has not been specified.
public java.util.Date getCreatedDate()
This is a standard Date object.
public void setCreatedDate(java.util.Date created)
The sequence number is an integer value. A negative value means this value has not been specified.
public java.util.Date getLastModDate()
This is a standard Date object.
public void setLastModDate(java.util.Date lastMod)
The sequence number is an integer value. A negative value means this value has not been specified.
public java.lang.String getTimeZoneId()
This is a string object in the format of America/New_York, Europe/London
public void setTimeZoneId(java.lang.String timeZoneId)
This is a string object in the format of America/New_York, Europe/London
public boolean hasRecurRule()
A component is regarded as having recurrence if:
public java.lang.String toWcapQuery(WcapNugget nugget, java.text.DateFormat dfDay, java.text.DateFormat dfFull) throws InvalidParameterException, WcapException
InvalidParameterException
WcapException
public boolean equals(java.lang.Object inObj)
equals
in class java.lang.Object
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.