net.sf.nachocalendar.tasks

Class DefaultTask

Implemented Interfaces:
Serializable, Task

public class DefaultTask
extends java.lang.Object
implements Task, Serializable

Default implementation of the Task interface.
Author:
Ignacio Merani

Constructor Summary

DefaultTask()
Creates a new instance of DefaultTask.

Method Summary

Date
getDate()
Returns the Date of this task.
String
getName()
Returns the name of this task.
void
setDate(Date date)
Sets the date of this task.
void
setName(String name)
Sets the name of this task.
String
toString()
Returns a String representing this object.

Constructor Details

DefaultTask

public DefaultTask()
Creates a new instance of DefaultTask.

Method Details

getDate

public Date getDate()
Returns the Date of this task.
Returns:
Returns the date.

getName

public String getName()
Returns the name of this task.
Returns:
Returns the name.

setDate

public void setDate(Date date)
Sets the date of this task.
Parameters:
date - The date to set.

setName

public void setName(String name)
Sets the name of this task.
Parameters:
name - The name to set.

toString

public String toString()
Returns a String representing this object.
Returns:
String representing this object.