|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.cmu.andrew.icalendar.AbstractEvent
A skeleton Event class. All abstract methods must be implemented EXCEPT EITHER getSecondaryMap should be implemented OR outputICalendar and getSecondaryValue should be overriden. If getSecondaryMap is not implemented, it should raise a RuntimeException. Under normal circumstances, a class representing a new event should override:
| Inner Class Summary | |
private class |
AbstractEvent.PropertyMap
A Map<String, List<Property> > |
| Field Summary | |
private Date |
created
|
private String |
uid
create a UID for this object in case getUid isn't overriden |
| Constructor Summary | |
AbstractEvent()
|
|
| Method Summary | |
Date |
getCreated()
Returns the creation date/time of this event. |
abstract String |
getDescription()
The detailed description of this event. |
abstract Date |
getEnddate()
Returns the ending date of this event. |
String |
getEventClass()
One of "PUBLIC", "PRIVATE", or "CONFIDENTIAL". |
CharacterIterator |
getIndexable()
What data should be indexed from this event? |
abstract String |
getLocation()
The location of this event. |
String |
getNthValue(String property)
|
abstract String |
getOwningAgenda()
All events stored in the event store have an "owning agenda". |
int |
getPriority()
the priority of the event, if any, from 1 to 9, with 1 the highest priority. |
protected Map |
getPropertyMap()
Returns a Map of attributes. |
protected abstract Map |
getSecondaryMap()
Returns a Map of secondary attributes, assuming secondary attributes are single-valued strings, of iCalendar property name to property value, without and parameters. |
abstract int |
getSeq()
The sequence number of an event is incremented every time the event is modified in a substantial fashion. |
abstract Date |
getStartdate()
The date that this event starts on. |
EventStatus |
getStatus()
The status of the event. |
abstract String |
getSummary()
The summary ("title") of this event. |
boolean |
getTransp()
Whether or not this event is transparent to other events. |
String |
getUid()
The unique ID of an event is a globally unique identification that is invariant across the life of this event, regardless of invitations/removals/cancellations. |
abstract boolean |
hasEndtime()
The equivalent to hasStarttime. |
abstract boolean |
hasStarttime()
Returns true if the startdate has a time component. |
Writer |
outputICalendar(Writer w)
Write the iCalendar representation to w. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface edu.cmu.andrew.icalendar.Event |
getSecondaryValue |
| Field Detail |
private final String uid
private final Date created
| Constructor Detail |
public AbstractEvent()
| Method Detail |
public String getUid()
EventgetUid in interface Eventpublic abstract int getSeq()
EventgetSeq in interface Eventedu.cmu.andrew.icalendar.Eventpublic abstract Date getStartdate()
EventgetStartdate in interface Eventedu.cmu.andrew.icalendar.Eventpublic abstract boolean hasStarttime()
EventhasStarttime in interface Eventedu.cmu.andrew.icalendar.Eventpublic abstract Date getEnddate()
EventgetEnddate in interface Eventedu.cmu.andrew.icalendar.Eventpublic abstract boolean hasEndtime()
EventhasEndtime in interface Eventedu.cmu.andrew.icalendar.Eventpublic Date getCreated()
EventgetCreated in interface Eventpublic String getEventClass()
EventgetEventClass in interface Eventpublic abstract String getDescription()
EventgetDescription in interface Eventedu.cmu.andrew.icalendar.Eventpublic int getPriority()
EventgetPriority in interface Eventpublic EventStatus getStatus()
EventgetStatus in interface Eventpublic abstract String getSummary()
EventgetSummary in interface Eventedu.cmu.andrew.icalendar.Eventpublic boolean getTransp()
EventgetTransp in interface Eventedu.cmu.andrew.icalendar.Eventpublic abstract String getLocation()
EventgetLocation in interface Eventedu.cmu.andrew.icalendar.Eventpublic String getNthValue(String property)
public abstract String getOwningAgenda()
EventgetOwningAgenda in interface Eventedu.cmu.andrew.icalendar.Eventpublic CharacterIterator getIndexable()
EventgetIndexable in interface Eventedu.cmu.andrew.icalendar.Eventprotected abstract Map getSecondaryMap()
protected Map getPropertyMap()
public Writer outputICalendar(Writer w)
throws IOException
Eventoutput method of each subcomponent and each
property of this object. Outputs only a VEVENT component.outputICalendar in interface Eventedu.cmu.andrew.icalendar.Eventw - the writer to send output towIOException - when w does sopublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||