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
$Id$
Created on 11/08/2005
Base class for properties with a list of dates as a value.
- See Also:
-
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, CALENDAR_ADDRESS, 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, PARTICIPANT_TYPE, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, PROXIMITY, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCE_TYPE, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, STRUCTURED_DATA, STYLED_DESCRIPTION, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZID_ALIAS_OF, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZUNTIL, TZURL, UID, URL, VERSION, XML -
Constructor Summary
ConstructorsConstructorDescriptionDateListProperty(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
Modifier and TypeMethodDescriptionfinal Propertycopy()Create a (deep) copy of this property.final DateListgetDates()final TimeZonegetValue()voidsetTimeZone(TimeZone timezone) Sets the timezone associated with this property.final voidsetUtc(boolean utc) Resets the timezone associated with the property.voidSets the current value of the property.Methods inherited from class net.fortuna.ical4j.model.Property
compareTo, equals, getFluentTarget, getName, getParameter, getParameters, getParameters, hashCode, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fortuna.ical4j.model.FluentProperty
withParameter
-
Constructor Details
-
DateListProperty
- Parameters:
name- the property name
-
DateListProperty
- Parameters:
name- the property nameparameters- property parameters
-
DateListProperty
- 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 Details
-
getDates
- Returns:
- Returns the dates.
-
setValue
Sets the current value of the property.- Specified by:
setValuein classProperty- Parameters:
aValue- a string representation of the property value- Throws:
ParseException- possibly thrown by setting the value of certain properties
-
getValue
-
setTimeZone
Sets the timezone associated with this property.- Parameters:
timezone- a timezone to associate with this property
-
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
Create a (deep) copy of this property.- Overrides:
copyin 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
-