net.sourceforge.pebble.domain
Class TimePeriod

java.lang.Object
  extended by net.sourceforge.pebble.domain.TimePeriod
Direct Known Subclasses:
AbstractBlog, Day, Month, Year

public abstract class TimePeriod
extends java.lang.Object

Represents a period in time.

Author:
Simon Brown

Constructor Summary
TimePeriod(Blog blog)
          Specifies the top-level, owning blog.
 
Method Summary
 Blog getBlog()
          Gets the top-level owning blog.
 java.util.Date getDate()
          Gets the date that this blog is for.
 void setDate(java.util.Date d)
          Sets the date that this blog is for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimePeriod

public TimePeriod(Blog blog)
Specifies the top-level, owning blog.

Parameters:
blog - the top-level owning Blog instance
Method Detail

getBlog

public Blog getBlog()
Gets the top-level owning blog.

Returns:
a Blog instance

getDate

public java.util.Date getDate()
Gets the date that this blog is for.

Returns:
a Date instance

setDate

public void setDate(java.util.Date d)
Sets the date that this blog is for.

Parameters:
d - a Date instance


Copyright © 2003-2006, Simon Brown. All Rights Reserved.