Class PropBaseDateTime<T,U>

Type Parameters:
U - - implementation class
All Implemented Interfaces:
PropDateTime<T>, VProperty<T>, VChild, VElement, VParent
Direct Known Subclasses:
DateTimeDue, DateTimeEnd, DateTimeStart, PropertyBaseRecurrence, RecurrenceId

public abstract class PropBaseDateTime<T,U> extends VPropertyBase<T,U> implements PropDateTime<T>
Abstract class for all non-UTC date-time classes Contains the time zone identifier parameter
See Also:
  • Field Details

  • Constructor Details

    • PropBaseDateTime

      protected PropBaseDateTime()
    • PropBaseDateTime

      public PropBaseDateTime(T temporal)
    • PropBaseDateTime

      public PropBaseDateTime(PropBaseDateTime<T,U> source)
  • Method Details

    • getTimeZoneIdentifier

      public TimeZoneIdentifierParameter getTimeZoneIdentifier()
      TZID Time Zone Identifier To specify the identifier for the time zone definition for a time component in the property value. Examples: DTSTART;TZID=America/New_York:19980119T020000
      Specified by:
      getTimeZoneIdentifier in interface PropDateTime<T>
    • setTimeZoneIdentifier

      public void setTimeZoneIdentifier(TimeZoneIdentifierParameter timeZoneIdentifier)
      Specified by:
      setTimeZoneIdentifier in interface PropDateTime<T>
    • setTimeZoneIdentifier

      public void setTimeZoneIdentifier(String value)
    • setTimeZoneIdentifier

      public void setTimeZoneIdentifier(ZoneId zone)
    • withTimeZoneIdentifier

      public U withTimeZoneIdentifier(TimeZoneIdentifierParameter timeZoneIdentifier)
    • withTimeZoneIdentifier

      public U withTimeZoneIdentifier(ZoneId zone)
    • withTimeZoneIdentifier

      public U withTimeZoneIdentifier(String content)
    • modifiedValue

      protected String modifiedValue()
      append time zone to front of time for parsing in DATE_ZONED_DATE_TIME parse method
      Overrides:
      modifiedValue in class VPropertyBase<T,U>
      See Also:
    • setValue

      public void setValue(T value)
      Description copied from interface: VProperty
      Set the value of the property
      Specified by:
      setValue in interface VProperty<T>
      Overrides:
      setValue in class VPropertyBase<T,U>
    • 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 VPropertyBase<T,U>
      Returns:
      - list of error messages