All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jfxtras.icalendarfx.components.VComponent Maven / Gradle / Ivy

There is a newer version: 17-r1
Show newest version
package jfxtras.icalendarfx.components;

import java.lang.reflect.Method;
import java.util.List;

import jfxtras.icalendarfx.VChild;
import jfxtras.icalendarfx.VParent;
import jfxtras.icalendarfx.properties.calendar.CalendarScale;
import jfxtras.icalendarfx.properties.calendar.ProductIdentifier;
import jfxtras.icalendarfx.properties.calendar.Version;
import jfxtras.icalendarfx.properties.component.misc.NonStandardProperty;

/**
 * 

RFC 5545, 3.6. Calendar Components

* *

The body of the iCalendar object consists of a sequence of calendar * properties and one or more calendar components. The calendar * properties are attributes that apply to the calendar object as a * whole. The calendar components are collections of properties that * express a particular calendar semantic. For example, the calendar * component can specify an event, a to-do, a journal entry, time zone * information, free/busy time information, or an alarm.

* *

The body of the iCalendar object is defined by the following * notation: * *

    *
  • icalbody = calprops component *
  • calprops *
      *
    • The following are REQUIRED, but MUST NOT occur more than once. *
        *
      • {@link ProductIdentifier PRODID} *
      • {@link Version VERSION} *
      *
    *
      *
    • The following are OPTIONAL, but MUST NOT occur more than once. *
        *
      • {@link CalendarScale CALSCALE} *
      • {@link Method METHOD} *
      *
    *
      *
    • The following are OPTIONAL, and MAY occur more than once. *
        *
      • {@link NonStandardProperty X-PROP} *
      • IANA-PROP *
      *
    *
  • component *
      *
    • {@link VEvent VEVENT} *
    • {@link VTodo VTODO} *
    • {@link VJournal VJOURNAL} *
    • {@link VFreeBusy VFREEBUSY} *
    • {@link VTimeZone VTIMEZONE} *
    • IANA-Comp (not implemented) *
    • X-Comp (not implemented) *
    *
* *

An iCalendar object MUST include the {@link ProductIdentifier PRODID} and {@link Version VERSION} calendar properties. In addition, it MUST include at least one calendar component. Special forms of iCalendar objects are possible to publish just busy time (i.e., only a {@link VFreeBusy VFREEBUSY} calendar component) or time zone (i.e., only a {@link VTimeZone VTIMEZONE} calendar component) information. In addition, a complex iCalendar object that is used to capture a complete snapshot of the contents of a calendar is possible (e.g., composite of many different calendar components). More commonly, an iCalendar object will consist of just a single {@link VEvent VEVENT}, {@link VTodo VTODO}, or {@link VJournal VJOURNAL} calendar component. Applications MUST ignore x-comp and iana-comp values they don't recognize. Applications that support importing iCalendar objects SHOULD support all of the component types defined in this document, and SHOULD NOT silently drop any components as that can lead to user data loss.

Returns content line for a calendar component. See RFC 5545 3.4 * Contains component properties with their values and any parameters.

*

* The following is a example of iCalendar content text: *

    * BEGIN:VEVENT
    * UID:[email protected]
    * DTSTAMP:19970610T172345Z
    * DTSTART:19970714T170000Z
    * DTEND:19970715T040000Z
    * SUMMARY:Bastille Day Party
    * END:VEVENT *
*

* * @return - the component content lines */ @Override String toString(); // TODO - WHAT IS THIS? IS IT NECESSARY? List calendarList(); /** Parse a VComponent from a {@code Iterator}. * Returns list of error strings for {@link RequestStatus} if collectErrorList is true, * otherwise returns an empty list * * @param contentLines calendar component lines to parse * @param collectErrorMessages true causes return List to contain error messages, false causes empty list * @return list of error messages if collectErrorMessages is true, otherwise empty list */ // @Deprecated // try to move to base classes // Map> parseContent(Iterator contentLines, boolean collectErrorMessages); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy