|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.ListProperty<Date>
biweekly.property.ExceptionDates
public class ExceptionDates
Defines a list of exceptions to the recurrence rule defined in a component.
Examples:
//date and times ExceptionDates exdate = new ExceptionDates(true); Date datetime1 = ...; exdate.addValue(datetime1); Date datetime2 = ...; exdate.addValue(datetime2); //dates ExceptionDates exdate = new ExceptionDates(false); Date date1 = ...; exdate.addValue(date1); Date date2 = ...; exdate.addValue(date2);
Field Summary |
---|
Fields inherited from class biweekly.property.ICalProperty |
---|
parameters |
Constructor Summary | |
---|---|
ExceptionDates(boolean hasTime)
Creates an exception dates property. |
Method Summary | |
---|---|
String |
getTimezoneId()
Gets the timezone identifier. |
boolean |
hasTime()
Gets whether the dates have time components. |
void |
setHasTime(boolean hasTime)
Sets whether the 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.ListProperty |
---|
addValue, getValues |
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 ExceptionDates(boolean hasTime)
hasTime
- true if the dates have a time component, false if they are
strictly datesMethod Detail |
---|
public boolean hasTime()
public void setHasTime(boolean hasTime)
hasTime
- true if the dates have time components, false if they are
strictly datespublic 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 ListProperty<Date>
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 |