|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.calendar.hci.HolidayModel.RelativeDay
public static final class HolidayModel.RelativeDay
This class enables to define a relative day, that is to say a day given by a week day position in a month (e.g. second monday of January).
| Constructor Summary | |
|---|---|
HolidayModel.RelativeDay(java.lang.String month,
java.lang.String weekday,
java.lang.String position)
Build a new RelativeDay. |
|
| Method Summary | |
|---|---|
void |
checkValidity()
Throws an InvalidHolidayException if:
month is not one of month defined in MONTHS.
weekday is not one of weekday defined in WEEKDAYS.
position is not one of position defined in POSITIONS.
|
java.lang.String |
getMonth()
Gets the month. |
java.lang.String |
getPosition()
Gets the position. |
int |
getType()
Returns the type of the implementing class. |
java.lang.String |
getWeekday()
Get the weekday. |
void |
setMonth(java.lang.String month)
Sets the month. |
void |
setPosition(java.lang.String position)
Sets the position. |
void |
setWeekday(java.lang.String weekday)
Sets the weekday. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HolidayModel.RelativeDay(java.lang.String month,
java.lang.String weekday,
java.lang.String position)
RelativeDay.
month - the month name, see MONTHSweekday - the weekday name, see WEEKDAYSposition - the position of the weekday in the month, see POSITIONS| Method Detail |
|---|
public java.lang.String getMonth()
public void setMonth(java.lang.String month)
MONTHS.
month - the month.public java.lang.String getPosition()
public void setPosition(java.lang.String position)
POSITIONS.
position - the position.public java.lang.String getWeekday()
public void setWeekday(java.lang.String weekday)
WEEKDAYS.
weekday - the weekday.public int getType()
HolidayModel.DayDefinition
getType in interface HolidayModel.DayDefinition
public void checkValidity()
throws InvalidHolidayException
InvalidHolidayException if:
MONTHS.WEEKDAYS.POSITIONS.
checkValidity in interface HolidayModel.DayDefinitionInvalidHolidayExceptionHolidayModel.FixedDay.checkValidity(),
checkValidity(),
HolidayModel.EasterRelativeDay.checkValidity(),
HolidayModel.EnumeratedDay.checkValidity()
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.