Class VLocatable<T>

All Implemented Interfaces:
VAttendee<T>, VComponent, VDescribable<T>, VDescribable2<T>, VDuration<T>, VLastModified<T>, VRepeatable<T>, VChild, VElement, VParent
Direct Known Subclasses:
NonStandardComponent, VEvent, VTodo

public abstract class VLocatable<T> extends VDisplayable<T> implements VDescribable2<T>, VDuration<T>
  • Constructor Details

    • VLocatable

      public VLocatable()
    • VLocatable

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

    • getDescription

      public Description getDescription()
      DESCRIPTION RFC 5545 iCalendar 3.8.1.5. page 84 This property provides a more complete description of the calendar component than that provided by the "SUMMARY" property. Example: DESCRIPTION:Meeting to provide technical review for "Phoenix" design.\nHappy Face Conference Room. Phoenix design team MUST attend this meeting.\nRSVP to team leader. Note: Only VJournal allows multiple instances of DESCRIPTION
      Specified by:
      getDescription in interface VDescribable2<T>
    • setDescription

      public void setDescription(Description description)
      Specified by:
      setDescription in interface VDescribable2<T>
    • getDuration

      public DurationProp getDuration()
      Description copied from interface: VDuration
      Gets the value of the DurationProp
      Specified by:
      getDuration in interface VDuration<T>
    • setDuration

      public void setDuration(DurationProp duration)
      Description copied from interface: VDuration
      Sets the value of the DurationProp
      Specified by:
      setDuration in interface VDuration<T>
    • getGeographicPosition

      public GeographicPosition getGeographicPosition()
    • setGeographicPosition

      public void setGeographicPosition(GeographicPosition geographicPosition)
    • setGeographicPosition

      public void setGeographicPosition(String geographicPosition)
    • setGeographicPosition

      public void setGeographicPosition(double latitude, double longitude)
    • withGeographicPosition

      public T withGeographicPosition(GeographicPosition geographicPosition)
    • withGeographicPosition

      public T withGeographicPosition(String geographicPosition)
    • withGeographicPosition

      public T withGeographicPosition(double latitude, double longitude)
    • getLocation

      public Location getLocation()
    • setLocation

      public void setLocation(Location location)
    • setLocation

      public void setLocation(String location)
    • withLocation

      public T withLocation(Location location)
    • withLocation

      public T withLocation(String location)
    • getPriority

      public Priority getPriority()
    • setPriority

      public void setPriority(Priority priority)
    • setPriority

      public void setPriority(String priority)
    • setPriority

      public void setPriority(int priority)
    • withPriority

      public T withPriority(Priority priority)
    • withPriority

      public T withPriority(String priority)
    • withPriority

      public T withPriority(int priority)
    • getResources

      public List<Resources> getResources()
      RESOURCES: RFC 5545 iCalendar 3.8.1.10. page 91 This property defines the equipment or resources anticipated for an activity specified by a calendar component. More than one resource can be specified as a COMMA-separated list Example: RESOURCES:EASEL,PROJECTOR,VCR RESOURCES;LANGUAGE=fr:Nettoyeur haute pression
    • setResources

      public void setResources(List<Resources> resources)
    • withResources

      public T withResources(List<Resources> resources)
    • withResources

      public T withResources(String... resources)
    • withResources

      public T withResources(Resources... resources)
    • getVAlarms

      public List<VAlarm> getVAlarms()
      VALARM Alarm Component RFC 5545 iCalendar 3.6.6. page 71 Provide a grouping of component properties that define an alarm. The "VALARM" calendar component MUST only appear within either a "VEVENT" or "VTODO" calendar component.
    • setVAlarms

      public void setVAlarms(List<VAlarm> vAlarms)
    • withVAlarms

      public T withVAlarms(List<VAlarm> vAlarms)
    • withVAlarms

      public T withVAlarms(VAlarm... vAlarms)
    • withVAlarms

      public T withVAlarms(String... vAlarms)
    • errors

      public List<String> errors()
      Description copied from class: VPersonal
      / if (useRequestStatus) / { // Set REQUEST-STATUS for each message / statusMessages.entrySet() / .stream() / .flatMap(e -> e.getValue().stream()) / .forEach(e -> addChild(RequestStatus.parse(e))); / }
      Specified by:
      errors in interface VElement
      Overrides:
      errors in class VDisplayable<T>
      Returns:
      - list of error messages
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VParentBase<T>
    • streamRecurrences

      public Stream<Temporal> streamRecurrences(Temporal start)
      Stream recurrence dates with adjustment to include recurrences that don't end before start parameter
      Specified by:
      streamRecurrences in interface VRepeatable<T>
      Overrides:
      streamRecurrences in class VDisplayable<T>
      Parameters:
      start - - include recurrences that END before this value
      Returns:
      - stream of start dates or date/times for the recurrence set
    • eraseDateTimeProperties

      public void eraseDateTimeProperties()
      Description copied from class: VDisplayable
      Erase all date/time properties such as DTSTART, DTEND, DURATION, and DUE (which ever exist). This is necessary to prepare a CANCEL iTIP message for one recurrence instance.
      Overrides:
      eraseDateTimeProperties in class VDisplayable<T>
    • getActualDuration

      public abstract TemporalAmount getActualDuration()
      A convenience method that returns either Duration property value, or a calculated duration based on start and end values
    • setEndOrDuration

      public abstract void setEndOrDuration(Temporal startRecurrence, Temporal endRecurrence)
      A convenience method that sets DTEND, DURATION (VEvent) or DUE (VTodo) depending on which ever is already set to new value calculated by the duration or period between input parameters (depending on if the parameters are LocalDate or a date/time type (i.e. ZonedDateTime)) Note: In order to set DTEND, DTSTART must be assigned a value. DURATION and DUE doesn't require a DTSTART value.
      Parameters:
      startRecurrence -
      endRecurrence -