SAP CC 1.0
API 4.2 (Core)

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 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:
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()

SAP CC 1.0
API 4.2 (Core)


API Reference - July 2009

SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2

(c) Copyright 2009 SAP AG. All rights reserved.