|
SAP Convergent Charging
Java and XML APIs (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 Java 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)
Builds 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()
Gets the weekday. |
void |
setMonth(java.lang.String month)
Sets the month; Should be one of month names defined in MONTHS. |
void |
setPosition(java.lang.String position)
Sets the position; Should be one of position names defined in POSITIONS. |
void |
setWeekday(java.lang.String weekday)
Sets the weekday; Should be one of weekday names defined in WEEKDAYS. |
| 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 monthpublic java.lang.String getPosition()
public void setPosition(java.lang.String position)
POSITIONS.
position - The positionpublic java.lang.String getWeekday()
public void setWeekday(java.lang.String weekday)
WEEKDAYS.
weekday - The weekdaypublic 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()
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||