net.sf.nachocalendar.holidays
Class DefaultHoliDay

java.lang.Object
  extended bynet.sf.nachocalendar.holidays.DefaultHoliDay
All Implemented Interfaces:
HoliDay, java.io.Serializable

public class DefaultHoliDay
extends java.lang.Object
implements java.io.Serializable, HoliDay

Default implementation for holidays.

Author:
Ignacio Merani
See Also:
Serialized Form

Constructor Summary
DefaultHoliDay()
          Creates a new instance of HoliDay.
 
Method Summary
 java.util.Date getDate()
          Getter for property date.
 java.lang.String getDescription()
          Getter for property description.
 java.lang.String getName()
          Getter for property name.
 boolean isRecurrent()
          Getter for property recurrent.
 void setDate(java.util.Date date)
          Setter for property date.
 void setDescription(java.lang.String description)
          Setter for property description.
 void setName(java.lang.String name)
          Setter for property name.
 void setRecurrent(boolean recurrent)
          Setter for property recurrent.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultHoliDay

public DefaultHoliDay()
Creates a new instance of HoliDay.

Method Detail

getName

public java.lang.String getName()
Getter for property name.

Specified by:
getName in interface HoliDay
Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Specified by:
setName in interface HoliDay
Parameters:
name - New value of property name.

getDate

public java.util.Date getDate()
Getter for property date.

Specified by:
getDate in interface HoliDay
Returns:
Value of property date.

setDate

public void setDate(java.util.Date date)
Setter for property date.

Specified by:
setDate in interface HoliDay
Parameters:
date - New value of property date.

getDescription

public java.lang.String getDescription()
Getter for property description.

Returns:
Value of property description.

setDescription

public void setDescription(java.lang.String description)
Setter for property description.

Parameters:
description - New value of property description.

isRecurrent

public boolean isRecurrent()
Getter for property recurrent.

Specified by:
isRecurrent in interface HoliDay
Returns:
Value of property recurrent.

setRecurrent

public void setRecurrent(boolean recurrent)
Setter for property recurrent.

Specified by:
setRecurrent in interface HoliDay
Parameters:
recurrent - New value of property recurrent.

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns:
a string representation of the object.