|
||||||||||
| 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. This property must contain either dates or time periods. It cannot contain a combination of both.
Examples:
//date-time values Date one = ... Date two = ... List<Date> dates = Arrays.asList(one, two); RecurrenceDates prop = new RecurrenceDates(dates, true); //date values Date one = ... Date two = ... List<Date> dates = Arrays.asList(one, two); RecurrenceDates prop = new RecurrenceDates(dates, false); //periods Period one = ... Period two = ... List<Period> periods = Arrays.asList(one, two); 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 property's timezone in the form of a globally-defined timezone (e.g. |
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, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, setParameter, setParameter, setParameters, setSentBy, 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 periods| Method Detail |
|---|
public List<Date> getDates()
public boolean hasTime()
public List<Period> getPeriods()
public String getTimezoneId()
ICalPropertyTimezoneId 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.
getTimezoneId in class ICalPropertypublic void setTimezoneId(String timezoneId)
ICalPropertyICalProperty.setTimezone(VTimezone) to use a timezone that's defined within
the iCalendar object.
setTimezoneId in class ICalPropertytimezoneId - the timezone identifier (e.g. "America/New_York") or
null to removepublic void setTimezone(VTimezone timezone)
ICalPropertyICalProperty.setTimezoneId(String) to use a
globally-defined timezone (e.g. "America/New_York").
setTimezone in class ICalPropertytimezone - the timezone component or null to remove
protected void validate(List<ICalComponent> components,
List<String> warnings)
ICalProperty
validate in class ICalPropertycomponents - 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 | |||||||||