Module ical4j.core

Class DateListProperty<T extends Temporal>

java.lang.Object
net.fortuna.ical4j.model.Content
net.fortuna.ical4j.model.Property
net.fortuna.ical4j.model.property.DateListProperty<T>
All Implemented Interfaces:
Serializable, Comparable<Property>, FluentProperty, Prototype<Property>
Direct Known Subclasses:
ExDate, RDate

public abstract class DateListProperty<T extends Temporal> extends Property
$Id$

Created on 11/08/2005

Base class for properties with a list of dates as a value. Note that generics have been introduced as part of the migration to the new Java Date/Time API. Date properties should now indicate the applicable Temporal type for the property. For example:

  • UTC-based properties should use Instant to represent UTC time
  • Date-only properties should use LocalDate to represent a date value
  • Date-time properties should use ZonedDateTime to represent a date-time value influenced by timezone rules
See Also:
  • Constructor Details

    • DateListProperty

      public DateListProperty(String name)
      Parameters:
      name - the property name
    • DateListProperty

      public DateListProperty(String name, ParameterList parameters, Value defaultValueParam)
      Parameters:
      name - the property name
      parameters - property parameters
    • DateListProperty

      public DateListProperty(String name, DateList<T> dates)
      Parameters:
      name - the property name
      dates - a list of initial dates for the property
    • DateListProperty

      public DateListProperty(String name, ParameterList parameters, DateList<T> dates, Value defaultValueParam)
      Parameters:
      name - the property name
      parameters - property parameters
      dates - a list of initial dates for the property
  • Method Details

    • getDates

      public final List<T> getDates()
      Returns:
      Returns the dates.
    • setValue

      public void setValue(String aValue)
      Sets the current value of the property.
      Specified by:
      setValue in class Property
      Parameters:
      aValue - a string representation of the property value
    • getValue

      public String getValue()
      Specified by:
      getValue in class Content
      Returns:
      the content value
    • setTimeZoneRegistry

      public void setTimeZoneRegistry(TimeZoneRegistry timeZoneRegistry)
    • setDefaultTimeZone

      public void setDefaultTimeZone(ZoneId defaultTimeZone)
      A default timezone may be specified for interpreting floating DATE-TIME values. In the absence of a default timezone the system default timezone will be used.
      Parameters:
      defaultTimeZone - a timezone identifier