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
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.fortuna.ical4j.model.Content
Content.Factory
-
-
Field Summary
-
Fields inherited from class net.fortuna.ical4j.model.Property
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, CALSCALE, CATEGORIES, CLASS, COMMENT, COMPLETED, CONTACT, COUNTRY, CREATED, DESCRIPTION, DTEND, DTSTAMP, DTSTART, DUE, DURATION, EXDATE, EXPERIMENTAL_PREFIX, EXRULE, EXTENDED_ADDRESS, FREEBUSY, GEO, LAST_MODIFIED, LOCALITY, LOCATION, LOCATION_TYPE, METHOD, NAME, ORGANIZER, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZURL, UID, URL, VERSION
-
-
Constructor Summary
Constructors Constructor Description DateListProperty(String name, DateList dates, PropertyFactory factory)
DateListProperty(String name, ParameterList parameters, DateList dates, PropertyFactory factory)
DateListProperty(String name, ParameterList parameters, PropertyFactory factory)
DateListProperty(String name, PropertyFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property
copy()
Create a (deep) copy of this property.DateList
getDates()
TimeZone
getTimeZone()
String
getValue()
void
setTimeZone(TimeZone timezone)
Sets the timezone associated with this property.void
setUtc(boolean utc)
Resets the timezone associated with the property.void
setValue(String aValue)
Sets the current value of the property.-
Methods inherited from class net.fortuna.ical4j.model.Property
equals, getName, getParameter, getParameters, getParameters, hashCode, toString, validate
-
-
-
-
Constructor Detail
-
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 nameparameters
- property parameters
-
DateListProperty
public DateListProperty(String name, DateList dates, PropertyFactory factory)
- Parameters:
name
- the property namedates
- a list of initial dates for the property
-
DateListProperty
public DateListProperty(String name, ParameterList parameters, DateList dates, PropertyFactory factory)
- Parameters:
name
- the property nameparameters
- property parametersdates
- a list of initial dates for the property
-
-
Method Detail
-
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 classProperty
- Parameters:
aValue
- a string representation of the property value- Throws:
ParseException
- possibly thrown by setting the value of certain properties
-
getValue
public String getValue()
-
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 classProperty
- Returns:
- the copy of the property
- Throws:
IOException
- where an error occurs reading property dataURISyntaxException
- where the property contains an invalid URI valueParseException
- where the property contains an invalid date value
-
-