|
||||||||||
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()
Event
getUid
in interface Event
public abstract int getSeq()
Event
getSeq
in interface Event
edu.cmu.andrew.icalendar.Event
public abstract Date getStartdate()
Event
getStartdate
in interface Event
edu.cmu.andrew.icalendar.Event
public abstract boolean hasStarttime()
Event
hasStarttime
in interface Event
edu.cmu.andrew.icalendar.Event
public abstract Date getEnddate()
Event
getEnddate
in interface Event
edu.cmu.andrew.icalendar.Event
public abstract boolean hasEndtime()
Event
hasEndtime
in interface Event
edu.cmu.andrew.icalendar.Event
public Date getCreated()
Event
getCreated
in interface Event
public String getEventClass()
Event
getEventClass
in interface Event
public abstract String getDescription()
Event
getDescription
in interface Event
edu.cmu.andrew.icalendar.Event
public int getPriority()
Event
getPriority
in interface Event
public EventStatus getStatus()
Event
getStatus
in interface Event
public abstract String getSummary()
Event
getSummary
in interface Event
edu.cmu.andrew.icalendar.Event
public boolean getTransp()
Event
getTransp
in interface Event
edu.cmu.andrew.icalendar.Event
public abstract String getLocation()
Event
getLocation
in interface Event
edu.cmu.andrew.icalendar.Event
public String getNthValue(String property)
public abstract String getOwningAgenda()
Event
getOwningAgenda
in interface Event
edu.cmu.andrew.icalendar.Event
public CharacterIterator getIndexable()
Event
getIndexable
in interface Event
edu.cmu.andrew.icalendar.Event
protected abstract Map getSecondaryMap()
protected Map getPropertyMap()
public Writer outputICalendar(Writer w) throws IOException
Event
output
method of each subcomponent and each
property of this object. Outputs only a VEVENT component.outputICalendar
in interface Event
edu.cmu.andrew.icalendar.Event
w
- the writer to send output tow
IOException
- 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 |