com.highdeal.calendar.hci
Class HolidayModel.EnumeratedDay

java.lang.Object
  extended by com.highdeal.calendar.hci.HolidayModel.EnumeratedDay
All Implemented Interfaces:
HolidayModel.DayDefinition
Enclosing class:
HolidayModel

public static final class HolidayModel.EnumeratedDay
extends java.lang.Object
implements HolidayModel.DayDefinition

This Java class enables to define a enumerated day, that is to say a day given by an enumeration of precise date (including year). For instance, Chinese New Year is defined by: 2007-02-18, 2008-02-07, 2009-01-26, etc.


Constructor Summary
HolidayModel.EnumeratedDay()
          Builds a new empty EnumeratedDay.
 
Method Summary
 void checkValidity()
          Exists as implementation of HolidayModel.DayDefinition.checkValidity() but does nothing, since no error may exist in an enumerated day configuration.
 java.util.List<java.util.Date> getDates()
          Gets the list of dates defining this day.
 int getType()
          Returns the type of the implementing class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HolidayModel.EnumeratedDay

public HolidayModel.EnumeratedDay()
Builds a new empty EnumeratedDay.

Method Detail

getDates

public java.util.List<java.util.Date> getDates()
Gets the list of dates defining this day.

Returns:
The list of dates defining this day

getType

public int getType()
Description copied from interface: HolidayModel.DayDefinition
Returns the type of the implementing class. Internal use only.

Specified by:
getType in interface HolidayModel.DayDefinition
Returns:
The type of the implementing class

checkValidity

public void checkValidity()
                   throws InvalidHolidayException
Exists as implementation of HolidayModel.DayDefinition.checkValidity() but does nothing, since no error may exist in an enumerated day configuration.

Specified by:
checkValidity in interface HolidayModel.DayDefinition
Throws:
InvalidHolidayException
See Also:
HolidayModel.FixedDay.checkValidity(), HolidayModel.RelativeDay.checkValidity(), HolidayModel.EasterRelativeDay.checkValidity(), checkValidity()

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)