net.sf.nachocalendar.holidays

Class DefaultHoliDay

Implemented Interfaces:
HoliDay, Serializable

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

Default implementation for holidays.
Author:
Ignacio Merani

Constructor Summary

DefaultHoliDay()
Creates a new instance of HoliDay.

Method Summary

Date
getDate()
Getter for property date.
String
getDescription()
Getter for property description.
String
getName()
Getter for property name.
boolean
isRecurrent()
Getter for property recurrent.
void
setDate(Date date)
Setter for property date.
void
setDescription(String description)
Setter for property description.
void
setName(String name)
Setter for property name.
void
setRecurrent(boolean recurrent)
Setter for property recurrent.
String
toString()
Returns a string representation of the object.

Constructor Details

DefaultHoliDay

public DefaultHoliDay()
Creates a new instance of HoliDay.

Method Details

getDate

public Date getDate()
Getter for property date.
Returns:
Value of property date.

getDescription

public String getDescription()
Getter for property description.
Returns:
Value of property description.

getName

public String getName()
Getter for property name.
Returns:
Value of property name.

isRecurrent

public boolean isRecurrent()
Getter for property recurrent.
Returns:
Value of property recurrent.

setDate

public void setDate(Date date)
Setter for property date.
Parameters:
date - New value of property date.

setDescription

public void setDescription(String description)
Setter for property description.
Parameters:
description - New value of property description.

setName

public void setName(String name)
Setter for property name.
Parameters:
name - New value of property name.

setRecurrent

public void setRecurrent(boolean recurrent)
Setter for property recurrent.
Parameters:
recurrent - New value of property recurrent.

toString

public 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.