|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.nachocalendar.holidays.HoliDayModel
public class HoliDayModel
Default implementation for HoliDayModel. It has a collection to contain the holidays and convenient accesor methods.
| Constructor Summary | |
|---|---|
HoliDayModel()
Creates a new instance of DefaultHoliDayModel. |
|
| Method Summary | |
|---|---|
void |
addHoliDay(HoliDay day)
Adds a new holiday to the Collection. |
void |
clear()
Removes all holidays from the Collection. |
java.util.Collection |
getAll()
Returns a Collection with the Holidays. |
java.lang.Object |
getData(java.util.Date date)
Returns the data asociated with the provided date. |
HoliDay |
getHoliDay(java.util.Date date)
Checks if the date provided is holiday. |
int |
getSize()
Returns the quantity of holidays in the Collection. |
void |
removeHoliDay(HoliDay day)
Removes the provided holiday from the Collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HoliDayModel()
| Method Detail |
|---|
public void addHoliDay(HoliDay day)
day - the new holidaypublic void removeHoliDay(HoliDay day)
day - holiday to be removedpublic int getSize()
public java.util.Collection getAll()
public void clear()
public java.lang.Object getData(java.util.Date date)
getData in interface DataModeldate - date provided
public HoliDay getHoliDay(java.util.Date date)
date - Date to be checked
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||