Class RecurRuleComponents

java.lang.Object
org.bedework.convert.RecurRuleComponents

public class RecurRuleComponents extends Object
Broken out recurrence rule. recur = "FREQ"=freq *( ; either UNTIL or COUNT may appear in a 'recur', ; but UNTIL and COUNT MUST NOT occur in the same 'recur' ( ";" "UNTIL" "=" enddate ) / ( ";" "COUNT" "=" 1*DIGIT ) / ; the rest of these keywords are optional, ; but MUST NOT occur more than once ( ";" "INTERVAL" "=" 1*DIGIT ) / ( ";" "BYSECOND" "=" byseclist ) / ( ";" "BYMINUTE" "=" byminlist ) / ( ";" "BYHOUR" "=" byhrlist ) / ( ";" "BYDAY" "=" bywdaylist ) / ( ";" "BYMONTHDAY" "=" bymodaylist ) / ( ";" "BYYEARDAY" "=" byyrdaylist ) / ( ";" "BYWEEKNO" "=" bywknolist ) / ( ";" "BYMONTH" "=" bymolist ) / ( ";" "BYSETPOS" "=" bysplist ) / ( ";" "WKST" "=" weekday ) / ( ";" x-name "=" text ) ) freq = "SECONDLY" / "MINUTELY" / "HOURLY" / "DAILY" / "WEEKLY" / "MONTHLY" / "YEARLY" enddate = date enddate =/ date-time ;An UTC value byseclist = seconds / ( seconds *("," seconds) ) seconds = 1DIGIT / 2DIGIT ;0 to 59 byminlist = minutes / ( minutes *("," minutes) ) minutes = 1DIGIT / 2DIGIT ;0 to 59 byhrlist = hour / ( hour *("," hour) ) hour = 1DIGIT / 2DIGIT ;0 to 23 bywdaylist = weekdaynum / ( weekdaynum *("," weekdaynum) ) weekdaynum = [([plus] ordwk / minus ordwk)] weekday plus = "+" minus = "-" ordwk = 1DIGIT / 2DIGIT ;1 to 53 weekday = "SU" / "MO" / "TU" / "WE" / "TH" / "FR" / "SA" ;Corresponding to SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, ;FRIDAY, SATURDAY and SUNDAY days of the week. bymodaylist = monthdaynum / ( monthdaynum *("," monthdaynum) ) monthdaynum = ([plus] ordmoday) / (minus ordmoday) ordmoday = 1DIGIT / 2DIGIT ;1 to 31 byyrdaylist = yeardaynum / ( yeardaynum *("," yeardaynum) ) yeardaynum = ([plus] ordyrday) / (minus ordyrday) ordyrday = 1DIGIT / 2DIGIT / 3DIGIT ;1 to 366 bywknolist = weeknum / ( weeknum *("," weeknum) ) weeknum = ([plus] ordwk) / (minus ordwk) bymolist = monthnum / ( monthnum *("," monthnum) ) monthnum = 1DIGIT / 2DIGIT ;1 to 12 bysplist = setposday / ( setposday *("," setposday) ) setposday = yeardaynum
Version:
1.0
Author:
Mike Douglass douglm - rpi.edu
  • Constructor Details

    • RecurRuleComponents

      public RecurRuleComponents()
  • Method Details

    • setRule

      public void setRule(String val)
      Parameters:
      val - String rule this is derived from
    • getRule

      public String getRule()
      Returns:
      String weekstart or null
    • setFreq

      public void setFreq(net.fortuna.ical4j.model.Recur.Frequency val)
      Parameters:
      val - Freq
    • getFreq

      public net.fortuna.ical4j.model.Recur.Frequency getFreq()
      Returns:
      Freq
    • setUntil

      public void setUntil(net.fortuna.ical4j.model.Date val)
      Parameters:
      val - until Date
    • getUntil

      public net.fortuna.ical4j.model.Date getUntil()
      Returns:
      Date
    • setCount

      public void setCount(int val)
      Parameters:
      val - count
    • getCount

      public int getCount()
      Returns:
      int
    • setInterval

      public void setInterval(int val)
      Parameters:
      val - interval
    • getInterval

      public int getInterval()
      Returns:
      int
    • setBySecond

      public void setBySecond(Collection<Integer> val)
      Parameters:
      val - bySecond list
    • getBySecond

      public Collection<Integer> getBySecond()
      Returns:
      bySecond list or null
    • setByMinute

      public void setByMinute(Collection<Integer> val)
      Parameters:
      val - byMinute list
    • getByMinute

      public Collection<Integer> getByMinute()
      Returns:
      byMinute list or null
    • setByHour

      public void setByHour(Collection<Integer> val)
      Parameters:
      val - byHour list
    • getByHour

      public Collection<Integer> getByHour()
      Returns:
      byHour list or null
    • setByDay

      public void setByDay(Collection<RecurRuleComponents.PosDays> val)
      Parameters:
      val - byDay map
    • getByDay

      Returns:
      byDay map or null
    • setByMonthDay

      public void setByMonthDay(Collection<Integer> val)
      Parameters:
      val - byMonthDay list
    • getByMonthDay

      public Collection<Integer> getByMonthDay()
      Returns:
      byMonthDay list or null
    • setByYearDay

      public void setByYearDay(Collection<Integer> val)
      Parameters:
      val - byYearDay list
    • getByYearDay

      public Collection<Integer> getByYearDay()
      Returns:
      byYearDay list or null
    • setByWeekNo

      public void setByWeekNo(Collection<Integer> val)
      Parameters:
      val - byWeekNo list
    • getByWeekNo

      public Collection<Integer> getByWeekNo()
      Returns:
      byWeekNo list or null
    • setByMonth

      public void setByMonth(Collection<Integer> val)
      Parameters:
      val - byMonth list
    • getByMonth

      public Collection<Integer> getByMonth()
      Returns:
      byMonth list or null
    • setBySetPos

      public void setBySetPos(Collection<Integer> val)
      Parameters:
      val - bySetPos list
    • getBySetPos

      public Collection<Integer> getBySetPos()
      Returns:
      bySetPos list or null
    • setWkst

      public void setWkst(String val)
      Parameters:
      val - String weekstart
    • getWkst

      public String getWkst()
      Returns:
      String weekstart or null
    • fromEventRrules

      public static org.bedework.util.misc.response.GetEntitiesResponse<RecurRuleComponents> fromEventRrules(BwEvent ev)
      Return parsed rrules.
      Parameters:
      ev - containing rules
      Returns:
      Response containing status and collection of parsed rrules