Fields Summary |
---|
public static final byte | STATUS_TENTATIVEStatus constant indicating that a user's attendance at an event is
tentative. |
public static final byte | STATUS_CONFIRMEDStatus constant indicating that a user's attendance at an event is
confirmed. |
public static final byte | STATUS_CANCELEDStatus constant indicating that an event has been cancelled. |
public static final byte | VISIBILITY_DEFAULTVisibility constant indicating that an event uses the user's default
visibility. |
public static final byte | VISIBILITY_CONFIDENTIALVisibility constant indicating that an event has been marked
confidential. |
public static final byte | VISIBILITY_PRIVATEVisibility constant indicating that an event has been marked private. |
public static final byte | VISIBILITY_PUBLICVisibility constant indicating that an event has been marked public. |
public static final byte | TRANSPARENCY_OPAQUETransparency constant indicating that an event has been marked opaque. |
public static final byte | TRANSPARENCY_TRANSPARENTTransparency constant indicating that an event has been marked
transparent. |
private byte | status |
private String | recurrence |
private byte | visibility |
private byte | transparency |
private Vector | attendees |
private Vector | whens |
private Vector | reminders |
private String | originalEventId |
private String | originalEventStartTime |
private String | where |
private String | commentsUri |
private Hashtable | extendedProperties |
Methods Summary |
---|
public void | addAttendee(Who attendee)
attendees.add(attendee);
|
public void | addExtendedProperty(java.lang.String name, java.lang.String value)
if (extendedProperties == null) {
extendedProperties = new Hashtable();
}
extendedProperties.put(name, value);
|
public void | addReminder(Reminder reminder)
if (reminders == null) {
reminders = new Vector();
}
reminders.add(reminder);
|
public void | addWhen(When when)
whens.add(when);
|
public void | clear()
super.clear();
status = STATUS_TENTATIVE;
recurrence = null;
visibility = VISIBILITY_DEFAULT;
transparency = TRANSPARENCY_OPAQUE;
attendees.removeAllElements();
whens.removeAllElements();
reminders = null;
originalEventId = null;
originalEventStartTime = null;
where = null;
commentsUri = null;
extendedProperties = null;
|
public void | clearAttendees()
attendees.clear();
|
public void | clearExtendedProperties()
extendedProperties = null;
|
public void | clearReminders()
reminders = null;
|
public void | clearWhens()
whens.clear();
|
public java.util.Vector | getAttendees()
return attendees;
|
public java.lang.String | getCommentsUri()
return commentsUri;
|
public java.util.Hashtable | getExtendedProperties()
return extendedProperties;
|
public java.lang.String | getExtendedProperty(java.lang.String name)
if (extendedProperties == null) {
return null;
}
String value = null;
if (extendedProperties.containsKey(name)) {
value = (String) extendedProperties.get(name);
}
return value;
|
public When | getFirstWhen()
if (whens.isEmpty()) {
return null;
}
return (When) whens.elementAt(0);
|
public java.lang.String | getOriginalEventId()
return originalEventId;
|
public java.lang.String | getOriginalEventStartTime()
return originalEventStartTime;
|
public java.lang.String | getRecurrence()
return recurrence;
|
public java.util.Vector | getReminders()
return reminders;
|
public byte | getStatus()
return status;
|
public byte | getTransparency()
return transparency;
|
public byte | getVisibility()
return visibility;
|
public java.util.Vector | getWhens()
return whens;
|
public java.lang.String | getWhere()
return where;
|
public void | setCommentsUri(java.lang.String commentsUri)
this.commentsUri = commentsUri;
|
public void | setOriginalEventId(java.lang.String originalEventId)
this.originalEventId = originalEventId;
|
public void | setOriginalEventStartTime(java.lang.String originalEventStartTime)
this.originalEventStartTime = originalEventStartTime;
|
public void | setRecurrence(java.lang.String recurrence)
this.recurrence = recurrence;
|
public void | setStatus(byte status)
this.status = status;
|
public void | setTransparency(byte transparency)
this.transparency = transparency;
|
public void | setVisibility(byte visibility)
this.visibility = visibility;
|
public void | setWhere(java.lang.String where)
this.where = where;
|
public void | toString(java.lang.StringBuffer sb)
super.toString(sb);
sb.append("STATUS: " + status + "\n");
appendIfNotNull(sb, "RECURRENCE", recurrence);
sb.append("VISIBILITY: " + visibility + "\n");
sb.append("TRANSPARENCY: " + transparency + "\n");
appendIfNotNull(sb, "ORIGINAL_EVENT_ID", originalEventId);
appendIfNotNull(sb, "ORIGINAL_START_TIME", originalEventStartTime);
Enumeration whos = this.attendees.elements();
while (whos.hasMoreElements()) {
Who who = (Who) whos.nextElement();
who.toString(sb);
}
Enumeration times = this.whens.elements();
while (times.hasMoreElements()) {
When when = (When) times.nextElement();
when.toString(sb);
}
if (reminders != null) {
Enumeration alarms = reminders.elements();
while (alarms.hasMoreElements()) {
Reminder reminder = (Reminder) alarms.nextElement();
reminder.toString(sb);
}
}
appendIfNotNull(sb, "WHERE", where);
appendIfNotNull(sb, "COMMENTS", commentsUri);
if (extendedProperties != null) {
Enumeration entryNames = extendedProperties.keys();
while (entryNames.hasMoreElements()) {
String name = (String) entryNames.nextElement();
String value = (String) extendedProperties.get(name);
sb.append(name);
sb.append(':");
sb.append(value);
sb.append('\n");
}
}
|