edu.cmu.andrew.icalendar.components
Class VCalendar

java.lang.Object
  |
  +--edu.cmu.andrew.icalendar.Component
        |
        +--edu.cmu.andrew.icalendar.components.VCalendar

public class VCalendar
extends Component

A single ICalendar object from BEGIN:VCALENDAR to END:VCALENDAR. A VCalendar object contains a number of properties and 1 or more components. It MUST contain "PRODID" and "VERSION" properties.


Fields inherited from class edu.cmu.andrew.icalendar.Component
properties, subComponents
 
Constructor Summary
VCalendar(Map properties, List subComponents)
           
 
Method Summary
private  void checkInvariant()
           
 String getName()
          Return the name of this Component.
 Writer outputICalendar(Writer w)
          Write the iCalendar representation to w.
 
Methods inherited from class edu.cmu.andrew.icalendar.Component
getComponents, getInstance, getProperty, getPropertyMap, getSingleDate, getSingleDuration, getSingleInteger, getSingleString, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

VCalendar

public VCalendar(Map properties,
                 List subComponents)
          throws BadComponentException
Method Detail

getName

public String getName()
Description copied from class: Component
Return the name of this Component.
Overrides:
getName in class Component

checkInvariant

private void checkInvariant()
                     throws BadComponentException

outputICalendar

public Writer outputICalendar(Writer w)
                       throws IOException
Description copied from class: Component
Write the iCalendar representation to w. It invokes the output method of each subcomponent and each property of this object.
Overrides:
outputICalendar in class Component
See Also:
Component.outputICalendar(Writer)