com.liferay.util.cal
Class Recurrence

java.lang.Object
  extended by com.liferay.util.cal.Recurrence
All Implemented Interfaces:
java.io.Serializable

Deprecated. This class has been repackaged at com.liferay.portal.kernel.cal.

public class Recurrence
extends java.lang.Object
implements java.io.Serializable

View Source

Author:
Jonathan Lennox
See Also:
Serialized Form

Field Summary
protected  DayAndPosition[] byDay
          Deprecated. Field byDay
protected  int[] byMonth
          Deprecated. Field byMonth
protected  int[] byMonthDay
          Deprecated. Field byMonthDay
protected  int[] byWeekNo
          Deprecated. Field byWeekNo
protected  int[] byYearDay
          Deprecated. Field byYearDay
static int DAILY
          Deprecated. Field DAILY
protected  java.util.Calendar dtStart
          Deprecated. Field dtStart
protected  Duration duration
          Deprecated. Field duration
protected  int frequency
          Deprecated. Field frequency
protected  int interval
          Deprecated. Field interval
static int MONTHLY
          Deprecated. Field MONTHLY
static int NO_RECURRENCE
          Deprecated. Field NO_RECURRENCE
protected  int occurrence
          Deprecated. Field interval
protected  java.util.Calendar until
          Deprecated. Field until
static int WEEKLY
          Deprecated. Field WEEKLY
static int YEARLY
          Deprecated. Field YEARLY
 
Constructor Summary
Recurrence()
          Deprecated. Constructor Recurrence
Recurrence(java.util.Calendar start, Duration dur)
          Deprecated. Constructor Recurrence
Recurrence(java.util.Calendar start, Duration dur, int freq)
          Deprecated. Constructor Recurrence
 
Method Summary
protected  boolean candidateIsInRecurrence(java.util.Calendar candidate, boolean debug)
          Deprecated. Method candidateIsInRecurrence
 DayAndPosition[] getByDay()
          Deprecated. Method getByDay
 int[] getByMonth()
          Deprecated. Method getByMonth
 int[] getByMonthDay()
          Deprecated. Method getByMonthDay
 int[] getByWeekNo()
          Deprecated. Method getByWeekNo
 int[] getByYearDay()
          Deprecated. Method getByYearDay
 java.util.Calendar getCandidateStartTime(java.util.Calendar current)
          Deprecated. Method getCandidateStartTime
protected static long getDayNumber(java.util.Calendar cal)
          Deprecated. Method getDayNumber
 java.util.Calendar getDtEnd()
          Deprecated. Method getDtEnd
 java.util.Calendar getDtStart()
          Deprecated. Method getDtStart
 Duration getDuration()
          Deprecated. Method getDuration
 int getFrequency()
          Deprecated. Method getFrequency
 int getInterval()
          Deprecated. Method getInterval
protected  int getMinimumInterval()
          Deprecated. Method getMinimumInterval
protected static long getMonthNumber(java.util.Calendar cal)
          Deprecated. Method getMonthNumber
 int getOccurrence()
          Deprecated. Method getOccurrence
protected  int getRecurrenceCount(java.util.Calendar candidate)
          Deprecated. Method getRecurrenceCount
 java.util.Calendar getUntil()
          Deprecated. Method getUntil
protected static long getWeekNumber(java.util.Calendar cal)
          Deprecated. Method getWeekNumber
 int getWeekStart()
          Deprecated. Method getWeekStart
 boolean isInRecurrence(java.util.Calendar current)
          Deprecated. Method isInRecurrence
 boolean isInRecurrence(java.util.Calendar current, boolean debug)
          Deprecated. Method isInRecurrence
protected  boolean matchesByDay(java.util.Calendar candidate)
          Deprecated. Method matchesByDay
protected static boolean matchesByField(int[] array, int field, java.util.Calendar candidate, boolean allowNegative)
          Deprecated. Method matchesByField
protected  boolean matchesByMonth(java.util.Calendar candidate)
          Deprecated. Method matchesByMonth
protected  boolean matchesByMonthDay(java.util.Calendar candidate)
          Deprecated. Method matchesByMonthDay
protected  boolean matchesByWeekNo(java.util.Calendar candidate)
          Deprecated. Method matchesByWeekNo
protected  boolean matchesByYearDay(java.util.Calendar candidate)
          Deprecated. Method matchesByYearDay
protected  boolean matchesIndividualByDay(java.util.Calendar candidate, DayAndPosition pos)
          Deprecated. Method matchesIndividualByDay
protected static void reduce_constant_length_field(int field, java.util.Calendar start, java.util.Calendar candidate)
          Deprecated. Method reduce_constant_length_field
protected static void reduce_day_of_month(java.util.Calendar start, java.util.Calendar candidate)
          Deprecated. Method reduce_day_of_month
protected static void reduce_day_of_year(java.util.Calendar start, java.util.Calendar candidate)
          Deprecated. Method reduce_day_of_year
 void setByDay(DayAndPosition[] b)
          Deprecated. Method setByDay
 void setByMonth(int[] b)
          Deprecated. Method setByMonth
 void setByMonthDay(int[] b)
          Deprecated. Method setByMonthDay
 void setByWeekNo(int[] b)
          Deprecated. Method setByWeekNo
 void setByYearDay(int[] b)
          Deprecated. Method setByYearDay
 void setDtEnd(java.util.Calendar end)
          Deprecated. Method setDtEnd
 void setDtStart(java.util.Calendar start)
          Deprecated. Method setDtStart
 void setDuration(Duration d)
          Deprecated. Method setDuration
 void setFrequency(int freq)
          Deprecated. Method setFrequency
 void setInterval(int intr)
          Deprecated. Method setInterval
 void setOccurrence(int occur)
          Deprecated. Method setOccurrence
 void setUntil(java.util.Calendar u)
          Deprecated. Method setUntil
 void setWeekStart(int weekstart)
          Deprecated. Method setWeekStart
 java.lang.String toString()
          Deprecated. Method toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DAILY

public static final int DAILY
Deprecated. 
Field DAILY

See Also:
Constant Field Values

WEEKLY

public static final int WEEKLY
Deprecated. 
Field WEEKLY

See Also:
Constant Field Values

MONTHLY

public static final int MONTHLY
Deprecated. 
Field MONTHLY

See Also:
Constant Field Values

YEARLY

public static final int YEARLY
Deprecated. 
Field YEARLY

See Also:
Constant Field Values

NO_RECURRENCE

public static final int NO_RECURRENCE
Deprecated. 
Field NO_RECURRENCE

See Also:
Constant Field Values

dtStart

protected java.util.Calendar dtStart
Deprecated. 
Field dtStart


duration

protected Duration duration
Deprecated. 
Field duration


frequency

protected int frequency
Deprecated. 
Field frequency


interval

protected int interval
Deprecated. 
Field interval


occurrence

protected int occurrence
Deprecated. 
Field interval


until

protected java.util.Calendar until
Deprecated. 
Field until


byDay

protected DayAndPosition[] byDay
Deprecated. 
Field byDay


byMonthDay

protected int[] byMonthDay
Deprecated. 
Field byMonthDay


byYearDay

protected int[] byYearDay
Deprecated. 
Field byYearDay


byWeekNo

protected int[] byWeekNo
Deprecated. 
Field byWeekNo


byMonth

protected int[] byMonth
Deprecated. 
Field byMonth

Constructor Detail

Recurrence

public Recurrence()
Deprecated. 
Constructor Recurrence


Recurrence

public Recurrence(java.util.Calendar start,
                  Duration dur)
Deprecated. 
Constructor Recurrence

Parameters:
start -
dur -

Recurrence

public Recurrence(java.util.Calendar start,
                  Duration dur,
                  int freq)
Deprecated. 
Constructor Recurrence

Parameters:
start -
dur -
freq -
Method Detail

getDtStart

public java.util.Calendar getDtStart()
Deprecated. 
Method getDtStart

Returns:
Calendar

setDtStart

public void setDtStart(java.util.Calendar start)
Deprecated. 
Method setDtStart

Parameters:
start -

getDuration

public Duration getDuration()
Deprecated. 
Method getDuration

Returns:
Duration

setDuration

public void setDuration(Duration d)
Deprecated. 
Method setDuration

Parameters:
d -

getDtEnd

public java.util.Calendar getDtEnd()
Deprecated. 
Method getDtEnd

Returns:
Calendar

setDtEnd

public void setDtEnd(java.util.Calendar end)
Deprecated. 
Method setDtEnd

Parameters:
end -

getFrequency

public int getFrequency()
Deprecated. 
Method getFrequency

Returns:
int

setFrequency

public void setFrequency(int freq)
Deprecated. 
Method setFrequency

Parameters:
freq -

getInterval

public int getInterval()
Deprecated. 
Method getInterval

Returns:
int

setInterval

public void setInterval(int intr)
Deprecated. 
Method setInterval

Parameters:
intr -

getOccurrence

public int getOccurrence()
Deprecated. 
Method getOccurrence

Returns:
int

setOccurrence

public void setOccurrence(int occur)
Deprecated. 
Method setOccurrence

Parameters:
occur -

getUntil

public java.util.Calendar getUntil()
Deprecated. 
Method getUntil

Returns:
Calendar

setUntil

public void setUntil(java.util.Calendar u)
Deprecated. 
Method setUntil

Parameters:
u -

getWeekStart

public int getWeekStart()
Deprecated. 
Method getWeekStart

Returns:
int

setWeekStart

public void setWeekStart(int weekstart)
Deprecated. 
Method setWeekStart

Parameters:
weekstart -

getByDay

public DayAndPosition[] getByDay()
Deprecated. 
Method getByDay

Returns:
DayAndPosition[]

setByDay

public void setByDay(DayAndPosition[] b)
Deprecated. 
Method setByDay

Parameters:
b -

getByMonthDay

public int[] getByMonthDay()
Deprecated. 
Method getByMonthDay

Returns:
int[]

setByMonthDay

public void setByMonthDay(int[] b)
Deprecated. 
Method setByMonthDay

Parameters:
b -

getByYearDay

public int[] getByYearDay()
Deprecated. 
Method getByYearDay

Returns:
int[]

setByYearDay

public void setByYearDay(int[] b)
Deprecated. 
Method setByYearDay

Parameters:
b -

getByWeekNo

public int[] getByWeekNo()
Deprecated. 
Method getByWeekNo

Returns:
int[]

setByWeekNo

public void setByWeekNo(int[] b)
Deprecated. 
Method setByWeekNo

Parameters:
b -

getByMonth

public int[] getByMonth()
Deprecated. 
Method getByMonth

Returns:
int[]

setByMonth

public void setByMonth(int[] b)
Deprecated. 
Method setByMonth

Parameters:
b -

isInRecurrence

public boolean isInRecurrence(java.util.Calendar current)
Deprecated. 
Method isInRecurrence

Parameters:
current -
Returns:
boolean

isInRecurrence

public boolean isInRecurrence(java.util.Calendar current,
                              boolean debug)
Deprecated. 
Method isInRecurrence

Parameters:
current -
debug -
Returns:
boolean

candidateIsInRecurrence

protected boolean candidateIsInRecurrence(java.util.Calendar candidate,
                                          boolean debug)
Deprecated. 
Method candidateIsInRecurrence

Parameters:
candidate -
debug -
Returns:
boolean

getMinimumInterval

protected int getMinimumInterval()
Deprecated. 
Method getMinimumInterval

Returns:
int

getCandidateStartTime

public java.util.Calendar getCandidateStartTime(java.util.Calendar current)
Deprecated. 
Method getCandidateStartTime

Parameters:
current -
Returns:
Calendar

reduce_constant_length_field

protected static void reduce_constant_length_field(int field,
                                                   java.util.Calendar start,
                                                   java.util.Calendar candidate)
Deprecated. 
Method reduce_constant_length_field

Parameters:
field -
start -
candidate -

reduce_day_of_month

protected static void reduce_day_of_month(java.util.Calendar start,
                                          java.util.Calendar candidate)
Deprecated. 
Method reduce_day_of_month

Parameters:
start -
candidate -

reduce_day_of_year

protected static void reduce_day_of_year(java.util.Calendar start,
                                         java.util.Calendar candidate)
Deprecated. 
Method reduce_day_of_year

Parameters:
start -
candidate -

getRecurrenceCount

protected int getRecurrenceCount(java.util.Calendar candidate)
Deprecated. 
Method getRecurrenceCount

Parameters:
candidate -
Returns:
int

getDayNumber

protected static long getDayNumber(java.util.Calendar cal)
Deprecated. 
Method getDayNumber

Parameters:
cal -
Returns:
long

getWeekNumber

protected static long getWeekNumber(java.util.Calendar cal)
Deprecated. 
Method getWeekNumber

Parameters:
cal -
Returns:
long

getMonthNumber

protected static long getMonthNumber(java.util.Calendar cal)
Deprecated. 
Method getMonthNumber

Parameters:
cal -
Returns:
long

matchesByDay

protected boolean matchesByDay(java.util.Calendar candidate)
Deprecated. 
Method matchesByDay

Parameters:
candidate -
Returns:
boolean

matchesIndividualByDay

protected boolean matchesIndividualByDay(java.util.Calendar candidate,
                                         DayAndPosition pos)
Deprecated. 
Method matchesIndividualByDay

Parameters:
candidate -
pos -
Returns:
boolean

matchesByField

protected static boolean matchesByField(int[] array,
                                        int field,
                                        java.util.Calendar candidate,
                                        boolean allowNegative)
Deprecated. 
Method matchesByField

Parameters:
array -
field -
candidate -
allowNegative -
Returns:
boolean

matchesByMonthDay

protected boolean matchesByMonthDay(java.util.Calendar candidate)
Deprecated. 
Method matchesByMonthDay

Parameters:
candidate -
Returns:
boolean

matchesByYearDay

protected boolean matchesByYearDay(java.util.Calendar candidate)
Deprecated. 
Method matchesByYearDay

Parameters:
candidate -
Returns:
boolean

matchesByWeekNo

protected boolean matchesByWeekNo(java.util.Calendar candidate)
Deprecated. 
Method matchesByWeekNo

Parameters:
candidate -
Returns:
boolean

matchesByMonth

protected boolean matchesByMonth(java.util.Calendar candidate)
Deprecated. 
Method matchesByMonth

Parameters:
candidate -
Returns:
boolean

toString

public java.lang.String toString()
Deprecated. 
Method toString

Overrides:
toString in class java.lang.Object
Returns:
String