Class DateListProperty

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

public abstract class DateListProperty extends Property
$Id$

Created on 11/08/2005

Base class for properties with a list of dates as a value.

See Also:
  • Constructor Details

    • DateListProperty

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

      public DateListProperty(String name, ParameterList parameters, PropertyFactory factory)
      Parameters:
      name - the property name
      parameters - property parameters
    • DateListProperty

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

      public DateListProperty(String name, ParameterList parameters, DateList dates, PropertyFactory factory)
      Parameters:
      name - the property name
      parameters - property parameters
      dates - a list of initial dates for the property
  • Method Details

    • getDates

      public final DateList getDates()
      Returns:
      Returns the dates.
    • setValue

      public void setValue(String aValue) throws ParseException
      Sets the current value of the property.
      Specified by:
      setValue in class Property
      Parameters:
      aValue - a string representation of the property value
      Throws:
      ParseException - possibly thrown by setting the value of certain properties
    • getValue

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

      public void setTimeZone(TimeZone timezone)
      Sets the timezone associated with this property.
      Parameters:
      timezone - a timezone to associate with this property
    • getTimeZone

      public final TimeZone getTimeZone()
      Returns:
      the timezone
    • setUtc

      public final void setUtc(boolean utc)
      Resets the timezone associated with the property. If utc is true, any TZID parameters are removed and the Java timezone is updated to UTC time. If utc is false, TZID parameters are removed and the Java timezone is set to the default timezone (i.e. represents a "floating" local time)
      Parameters:
      utc - the UTC value
    • copy

      public final Property copy() throws IOException, URISyntaxException, ParseException
      Create a (deep) copy of this property.
      Overrides:
      copy in class Property
      Returns:
      the copy of the property
      Throws:
      IOException - where an error occurs reading property data
      URISyntaxException - where the property contains an invalid URI value
      ParseException - where the property contains an invalid date value