Class StandardOrDaylight<T extends StandardOrDaylight<T>>

All Implemented Interfaces:
VComponent, VRepeatable<T>, VChild, VElement, VParent
Direct Known Subclasses:
DaylightSavingTime, StandardTime

public abstract class StandardOrDaylight<T extends StandardOrDaylight<T>> extends VRepeatableBase<T>

Superclass of DaylightSavingTime and StandardTime that contains the following properties:

  • Field Details

    • timeZoneNames

      private List<TimeZoneName> timeZoneNames

      This property specifies the customary designation for a time zone description.
      RFC 5545, 3.8.3.2, page 103

      EXAMPLES:

      • TZNAME:EST
      • TZNAME;LANGUAGE=fr-CA:HN

    • timeZoneOffsetFrom

      private TimeZoneOffsetFrom timeZoneOffsetFrom

      This property specifies the offset that is in use prior to this time zone observance.
      RFC 5545, 3.8.3.3, page 104

      EXAMPLES:

      • TZOFFSETFROM:-0500
      • TZOFFSETFROM:+1345
    • timeZoneOffsetTo

      private TimeZoneOffsetTo timeZoneOffsetTo

      This property specifies the offset that is in use in this time zone observance
      RFC 5545, 3.8.3.4, page 105

      EXAMPLES:

      • TZOFFSETTO:-0400
      • TZOFFSETTO:+1245
    • streamer

      private RecurrenceRuleCache streamer
  • Constructor Details

    • StandardOrDaylight

      public StandardOrDaylight()
    • StandardOrDaylight

      public StandardOrDaylight(StandardOrDaylight<T> source)
  • Method Details

    • getTimeZoneNames

      public List<TimeZoneName> getTimeZoneNames()
    • setTimeZoneNames

      public void setTimeZoneNames(List<TimeZoneName> timeZoneNames)
    • withTimeZoneNames

      public T withTimeZoneNames(List<TimeZoneName> timeZoneNames)
      Sets the value of the #timeZoneNamesProperty()
      Returns:
      - this class for chaining
    • withTimeZoneNames

      public T withTimeZoneNames(String... timeZoneNames)
      Sets the value of the #timeZoneNamesProperty() by parsing a vararg of time zone name strings
      Returns:
      - this class for chaining
    • withTimeZoneNames

      public T withTimeZoneNames(TimeZoneName... timeZoneNames)
      Sets the value of the #timeZoneNamesProperty() from a vararg of TimeZoneName objects.
      Returns:
      - this class for chaining
    • getTimeZoneOffsetFrom

      public TimeZoneOffsetFrom getTimeZoneOffsetFrom()
    • setTimeZoneOffsetFrom

      public void setTimeZoneOffsetFrom(TimeZoneOffsetFrom timeZoneOffsetFrom)
    • setTimeZoneOffsetFrom

      public void setTimeZoneOffsetFrom(ZoneOffset zoneOffset)
    • setTimeZoneOffsetFrom

      public void setTimeZoneOffsetFrom(String timeZoneOffsetFrom)
    • withTimeZoneOffsetFrom

      public T withTimeZoneOffsetFrom(TimeZoneOffsetFrom timeZoneOffsetFrom)

      Sets the value of the #timeZoneOffsetFromProperty() by creating a new TimeZoneOffsetFrom from the ZoneOffset parameter

      Parameters:
      zoneOffset - value for new TimeZoneOffsetFrom
    • withTimeZoneOffsetFrom

      public T withTimeZoneOffsetFrom(ZoneOffset zoneOffset)

      Sets the value of the #timeZoneOffsetFromProperty() by creating a new TimeZoneOffsetFrom from the ZoneOffset parameter

      Returns:
      - this class for chaining
    • withTimeZoneOffsetFrom

      public T withTimeZoneOffsetFrom(String timeZoneOffsetFrom)

      Sets the value of the #timeZoneOffsetFromProperty() by parsing a iCalendar content string

      Returns:
      - this class for chaining
    • getTimeZoneOffsetTo

      public TimeZoneOffsetTo getTimeZoneOffsetTo()
    • setTimeZoneOffsetTo

      public void setTimeZoneOffsetTo(TimeZoneOffsetTo timeZoneOffsetTo)
    • setTimeZoneOffsetTo

      public void setTimeZoneOffsetTo(ZoneOffset zoneOffset)
    • setTimeZoneOffsetTo

      public void setTimeZoneOffsetTo(String timeZoneOffsetTo)
    • withTimeZoneOffsetTo

      public T withTimeZoneOffsetTo(TimeZoneOffsetTo timeZoneOffsetTo)

      Sets the value of the #timeZoneOffsetToProperty()

      Returns:
      - this class for chaining
    • withTimeZoneOffsetTo

      public T withTimeZoneOffsetTo(ZoneOffset zoneOffset)

      Sets the value of the #timeZoneOffsetToProperty() by creating a new TimeZoneOffsetTo from the ZoneOffset parameter

      Returns:
      - this class for chaining
    • withTimeZoneOffsetTo

      public T withTimeZoneOffsetTo(String timeZoneOffsetTo)

      Sets the value of the #timeZoneOffsetToProperty() by parsing a iCalendar content string

      Returns:
      - this class for chaining
    • calendarList

      public List<? extends VComponent> calendarList()
    • errors

      public List<String> errors()
      Description copied from interface: VElement
      Produces a list of error messages indicating problems with calendar element VElement.errors() is invoked recursively to return errors of child elements in addition to errors in parent
      Specified by:
      errors in interface VElement
      Overrides:
      errors in class VRepeatableBase<T extends StandardOrDaylight<T>>
      Returns:
      - list of error messages
    • recurrenceCache

      public RecurrenceRuleCache recurrenceCache()
      Description copied from interface: VRepeatable
      Handles caching of recurrence start Temporal values.
      Specified by:
      recurrenceCache in interface VRepeatable<T extends StandardOrDaylight<T>>
      Overrides:
      recurrenceCache in class VRepeatableBase<T extends StandardOrDaylight<T>>