|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.RecurrenceDates
public class RecurrenceDates
Defines a list of dates or periods that help define a recurrence rule. It must contain either dates or time periods. It cannot contain a combination of both.
Examples:
//date-time values Date datetime1 = ... Date datetime2 = ... List<Date> datetimes = Arrays.asList(datetime1, datetime2); RecurrenceDates prop = new RecurrenceDates(datetimes, true); //date values Date date1 = ... Date date2 = ... List<Date> dates = Arrays.asList(date1, date2); RecurrenceDates prop = new RecurrenceDates(dates, false); //periods Period period1 = ... Period period2 = ... List<Period> periods = Arrays.asList(period1, period2); RecurrenceDates prop = new RecurrenceDates(periods, true);
Field Summary |
---|
Fields inherited from class biweekly.property.ICalProperty |
---|
parameters |
Constructor Summary | |
---|---|
RecurrenceDates(List<Date> dates,
boolean hasTime)
Creates a recurrence dates property. |
|
RecurrenceDates(List<Period> periods)
Creates a recurrence dates property. |
Method Summary | |
---|---|
List<Date> |
getDates()
Gets the recurrence dates. |
List<Period> |
getPeriods()
Gets the time periods. |
String |
getTimezoneId()
Gets the timezone identifier. |
boolean |
hasTime()
Gets whether the recurrence dates have time components. |
void |
setTimezone(VTimezone timezone)
Sets the property's timezone to a timezone that is defined within the iCalendar object. |
void |
setTimezoneId(String timezoneId)
Sets the timezone identifier. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
Methods inherited from class biweekly.property.ICalProperty |
---|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecurrenceDates(List<Date> dates, boolean hasTime)
dates
- the recurrence dateshasTime
- true if the dates have a time component, false if they are
strictly datespublic RecurrenceDates(List<Period> periods)
periods
- the time periodsMethod Detail |
---|
public List<Date> getDates()
public boolean hasTime()
public List<Period> getPeriods()
public String getTimezoneId()
ICalProperty
TimezoneId
property of a VTimezone
component, or (b)
specifies a globally-defined timezone (e.g. "America/New_York"). For a
list of globally-defined timezones, see the TZ database.
public void setTimezoneId(String timezoneId)
ICalProperty
TimezoneId
property of a VTimezone
component, or (b)
specifies a globally-defined timezone (e.g. "America/New_York"). For a
list of globally-defined timezones, see the TZ database.
timezoneId
- the timezone identifier (e.g. "America/New_York") or
null to removepublic void setTimezone(VTimezone timezone)
ICalProperty
ICalProperty.setTimezoneId(String)
to use a
globally-defined timezone (e.g. "America/New_York").
timezone
- the timezone component to reference or null to removeprotected void validate(List<ICalComponent> components, List<String> warnings)
ICalProperty
validate
in class ICalProperty
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |