|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.reporting.engine.classic.core.modules.gui.base.date.AnnualDateRule org.pentaho.reporting.engine.classic.core.modules.gui.base.date.DayOfWeekInMonthRule
public class DayOfWeekInMonthRule
An annual date rule that specifies the nth day of the week in a given month (for example, the third Wednesday in June, or the last Friday in November).
Constructor Summary | |
---|---|
DayOfWeekInMonthRule()
Deprecated. Default constructor: builds a rule for the first Monday in January by default. |
|
DayOfWeekInMonthRule(int count,
int dayOfWeek,
int month)
Deprecated. Standard constructor: builds a rule with the specified attributes. |
Method Summary | |
---|---|
int |
getCount()
Deprecated. Returns the 'count' for this rule (one of FIRST, SECOND, THIRD, FOURTH and LAST). |
SerialDate |
getDate(int year)
Deprecated. Return the date for this rule, given the year. |
int |
getDayOfWeek()
Deprecated. Returns the day-of-the-week for this rule (SerialDate.MONDAY, SerialDate.TUESDAY, etc.). |
int |
getMonth()
Deprecated. Returns the month for this rule. |
void |
setCount(int count)
Deprecated. Sets the 'count' for this rule (one of FIRST, SECOND, THIRD, FOURTH and LAST). |
void |
setDayOfWeek(int dayOfWeek)
Deprecated. Sets the day-of-the-week for this rule. |
void |
setMonth(int month)
Deprecated. Sets the month for this rule. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.gui.base.date.AnnualDateRule |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DayOfWeekInMonthRule()
public DayOfWeekInMonthRule(int count, int dayOfWeek, int month)
count
- one of: FIRST, SECOND, THIRD, FOURTH or LAST.dayOfWeek
- the day-of-the-week (SerialDate.MONDAY, SerialDate.TUESDAY, etc.).month
- the month (SerialDate.JANUARY, SerialDate.FEBRUARY, etc.).Method Detail |
---|
public int getCount()
public void setCount(int count)
count
- the 'count'.public int getDayOfWeek()
public void setDayOfWeek(int dayOfWeek)
dayOfWeek
- the day-of-the-week.public int getMonth()
public void setMonth(int month)
month
- the month (SerialDate.JANUARY, SerialDate.FEBRUARY, etc.).public SerialDate getDate(int year)
getDate
in class AnnualDateRule
year
- the year.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |