com.funambol.common.pim.model.model
Class VCalendar

java.lang.Object
  extended by com.funambol.common.pim.model.model.VComponent
      extended by com.funambol.common.pim.model.model.VCalendar
All Implemented Interfaces:
VisitorInterface, java.lang.Comparable

public class VCalendar
extends VComponent
implements VisitorInterface

Version:
$Id: VCalendar.java,v 1.2 2007-11-28 11:14:05 nichele Exp $

Field Summary
static java.lang.String VCALENDAR_VERSION_10
          Version 1.0 is older vCalendar standard: http://www.imc.org/pdi/vcal-10.rtf
static java.lang.String VCALENDAR_VERSION_20
          Version 2.0 is iCalendar as specified by RFC-2445
 
Fields inherited from class com.funambol.common.pim.model.model.VComponent
DATE_PROPERTIES, TYPE_APPOINTMENT, TYPE_TASK
 
Constructor Summary
VCalendar()
           
 
Method Summary
 void accept(Visitor v)
          visitor.
 java.lang.Object accept(VisitorObject v, java.lang.Object argu)
          visitor with arguments.
 void addEvent(VEvent event)
           
 void addTimezone(VTimezone timezone)
           
 void addTodo(VTodo todo)
           
 VEvent getFirstVEvent()
           
 VTodo getFirstVTodo()
           
 java.lang.String getSifType()
           
 VCalendarContent getVCalendarContent()
           
 java.lang.String getVComponentName()
          Should be overridden in concrete subclass to return component name, for example VEVENT, VTODO or similar
 java.lang.String toString()
           
 
Methods inherited from class com.funambol.common.pim.model.model.VComponent
addComponent, addProperty, addProperty, clone, compareTo, convertUTCDatesToLocal, delComponent, delProperty, equals, getAllComponents, getAllProperties, getComponent, getComponents, getProperties, getProperty, hashCode, hasProperty, setProperty, toStringBuffer
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VCALENDAR_VERSION_20

public static final java.lang.String VCALENDAR_VERSION_20
Version 2.0 is iCalendar as specified by RFC-2445

See Also:
Constant Field Values

VCALENDAR_VERSION_10

public static final java.lang.String VCALENDAR_VERSION_10
Version 1.0 is older vCalendar standard: http://www.imc.org/pdi/vcal-10.rtf

See Also:
Constant Field Values
Constructor Detail

VCalendar

public VCalendar()
Method Detail

getVComponentName

public java.lang.String getVComponentName()
Description copied from class: VComponent
Should be overridden in concrete subclass to return component name, for example VEVENT, VTODO or similar

Specified by:
getVComponentName in class VComponent

getSifType

public java.lang.String getSifType()
Specified by:
getSifType in class VComponent

addEvent

public void addEvent(VEvent event)

addTodo

public void addTodo(VTodo todo)

addTimezone

public void addTimezone(VTimezone timezone)

getVCalendarContent

public VCalendarContent getVCalendarContent()

getFirstVEvent

public VEvent getFirstVEvent()

getFirstVTodo

public VTodo getFirstVTodo()

accept

public void accept(Visitor v)
            throws VisitorException
visitor.

Specified by:
accept in interface VisitorInterface
Parameters:
v - the visitor
Throws:
VisitorException

accept

public java.lang.Object accept(VisitorObject v,
                               java.lang.Object argu)
                        throws VisitorException
visitor with arguments.

Specified by:
accept in interface VisitorInterface
Parameters:
v - the visitor
argu - the argument
Returns:
the result of the visit
Throws:
VisitorException

toString

public java.lang.String toString()
Overrides:
toString in class VComponent


Copyright © 2001-2009 Funambol.