biweekly.property
Class RecurrenceRule
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.RecurrenceRule
public class RecurrenceRule
- extends ICalProperty
Defines how often a component repeats.
Examples:
//bi-weekly
RecurrenceRule rrule = new RecurrenceRule(Frequency.WEEKLY);
rrule.setInterval(2);
- Author:
- Michael Angstadt
- See Also:
- RFC 5545
p.122-32
Methods inherited from class biweekly.property.ICalProperty |
addParameter, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, getTimezoneId, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, setParameter, setParameter, setParameters, setSentBy, setTimezone, setTimezoneId, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecurrenceRule
public RecurrenceRule(RecurrenceRule.Frequency frequency)
- Creates a new recurrence rule property.
- Parameters:
frequency
- the frequency of the recurrence rule
getFrequency
public RecurrenceRule.Frequency getFrequency()
setFrequency
public void setFrequency(RecurrenceRule.Frequency frequency)
getUntil
public Date getUntil()
setUntil
public void setUntil(Date until)
setUntil
public void setUntil(Date until,
boolean hasTime)
hasTimeUntilDate
public boolean hasTimeUntilDate()
getCount
public Integer getCount()
setCount
public void setCount(Integer count)
getInterval
public Integer getInterval()
setInterval
public void setInterval(Integer interval)
getBySecond
public List<Integer> getBySecond()
setBySecond
public void setBySecond(List<Integer> bySecond)
getByMinute
public List<Integer> getByMinute()
setByMinute
public void setByMinute(List<Integer> byMinute)
getByHour
public List<Integer> getByHour()
setByHour
public void setByHour(List<Integer> byHour)
addByDay
public void addByDay(RecurrenceRule.DayOfWeek day)
addByDay
public void addByDay(Integer prefix,
RecurrenceRule.DayOfWeek day)
getByDay
public List<RecurrenceRule.DayOfWeek> getByDay()
getByDayPrefixes
public List<Integer> getByDayPrefixes()
getByMonthDay
public List<Integer> getByMonthDay()
setByMonthDay
public void setByMonthDay(List<Integer> byMonthDay)
getByYearDay
public List<Integer> getByYearDay()
setByYearDay
public void setByYearDay(List<Integer> byYearDay)
getByWeekNo
public List<Integer> getByWeekNo()
setByWeekNo
public void setByWeekNo(List<Integer> byWeekNo)
getByMonth
public List<Integer> getByMonth()
setByMonth
public void setByMonth(List<Integer> byMonth)
getBySetPos
public List<Integer> getBySetPos()
setBySetPos
public void setBySetPos(List<Integer> bySetPos)
getWorkweekStarts
public RecurrenceRule.DayOfWeek getWorkweekStarts()
setWorkweekStarts
public void setWorkweekStarts(RecurrenceRule.DayOfWeek workweekStarts)
validate
protected void validate(List<ICalComponent> components,
List<String> warnings)
- Description copied from class:
ICalProperty
- Checks the property for data consistency problems or deviations from the
spec. Meant to be overridden by child classes.
- Overrides:
validate
in class ICalProperty
- Parameters:
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
Copyright © 2013 Michael Angstadt. All Rights Reserved.