//# 0 errors, 42 messages
//#
/*
    //#timeperiod.java:1:1: class: net.sourceforge.pebble.domain.TimePeriod
    //#timeperiod.java:1:1: method: net.sourceforge.pebble.domain.TimePeriod.net.sourceforge.pebble.domain.TimePeriod__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.domain;

import java.util.Date;

/**
 * Represents a period in time.
 *
 * @author    Simon Brown
 */
public abstract class TimePeriod {

  /** a reference to the top level, owning blog */
  private Blog blog;

  /** a Date representation of the day that this blog is for */
  private Date date;

  /**
   * Specifies the top-level, owning blog.
   *
   * @param blog    the top-level owning Blog instance
   */
  public TimePeriod(Blog blog) {
    //#timeperiod.java:54: method: void net.sourceforge.pebble.domain.TimePeriod.net.sourceforge.pebble.domain.TimePeriod(Blog)
    //#input(void net.sourceforge.pebble.domain.TimePeriod(Blog)): blog
    //#input(void net.sourceforge.pebble.domain.TimePeriod(Blog)): this
    //#output(void net.sourceforge.pebble.domain.TimePeriod(Blog)): this.blog
    //#post(void net.sourceforge.pebble.domain.TimePeriod(Blog)): this.blog == blog
    //#post(void net.sourceforge.pebble.domain.TimePeriod(Blog)): init'ed(this.blog)
    this.blog = blog;
  }
    //#timeperiod.java:56: end of method: void net.sourceforge.pebble.domain.TimePeriod.net.sourceforge.pebble.domain.TimePeriod(Blog)

  /**
   * Gets the top-level owning blog.
   *
   * @return  a Blog instance
   */
  public Blog getBlog() {
    return blog;
    //#timeperiod.java:64: method: Blog net.sourceforge.pebble.domain.TimePeriod.getBlog()
    //#input(Blog getBlog()): this
    //#input(Blog getBlog()): this.blog
    //#output(Blog getBlog()): return_value
    //#pre[2] (Blog getBlog()): init'ed(this.blog)
    //#post(Blog getBlog()): return_value == this.blog
    //#post(Blog getBlog()): init'ed(return_value)
    //#timeperiod.java:64: end of method: Blog net.sourceforge.pebble.domain.TimePeriod.getBlog()
  }

  /**
   * Gets the date that this blog is for.
   *
   * @return  a Date instance
   */
  public Date getDate() {
    return this.date;
    //#timeperiod.java:73: method: Date net.sourceforge.pebble.domain.TimePeriod.getDate()
    //#input(Date getDate()): this
    //#input(Date getDate()): this.date
    //#output(Date getDate()): return_value
    //#pre[2] (Date getDate()): init'ed(this.date)
    //#post(Date getDate()): return_value == this.date
    //#post(Date getDate()): init'ed(return_value)
    //#timeperiod.java:73: end of method: Date net.sourceforge.pebble.domain.TimePeriod.getDate()
  }

  /**
   * Sets the date that this blog is for.
   *
   * @param d   a Date instance
   */
  public void setDate(Date d) {
    this.date = d;
    //#timeperiod.java:82: method: void net.sourceforge.pebble.domain.TimePeriod.setDate(Date)
    //#input(void setDate(Date)): d
    //#input(void setDate(Date)): this
    //#output(void setDate(Date)): this.date
    //#post(void setDate(Date)): this.date == d
    //#post(void setDate(Date)): init'ed(this.date)
  }
    //#timeperiod.java:83: end of method: void net.sourceforge.pebble.domain.TimePeriod.setDate(Date)

}
    //#output(net.sourceforge.pebble.domain.TimePeriod__static_init): __Descendant_Table[net/sourceforge/pebble/domain/TimePeriod]
    //#output(net.sourceforge.pebble.domain.TimePeriod__static_init): __Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#output(net.sourceforge.pebble.domain.TimePeriod__static_init): __Dispatch_Table.getDate()Ljava/util/Date;
    //#output(net.sourceforge.pebble.domain.TimePeriod__static_init): __Dispatch_Table.setDate(Ljava/util/Date;)V
    //#post(net.sourceforge.pebble.domain.TimePeriod__static_init): __Descendant_Table[net/sourceforge/pebble/domain/TimePeriod] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.domain.TimePeriod__static_init): __Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog; == &getBlog
    //#post(net.sourceforge.pebble.domain.TimePeriod__static_init): __Dispatch_Table.getDate()Ljava/util/Date; == &getDate
    //#post(net.sourceforge.pebble.domain.TimePeriod__static_init): __Dispatch_Table.setDate(Ljava/util/Date;)V == &setDate
    //#timeperiod.java:: end of method: net.sourceforge.pebble.domain.TimePeriod.net.sourceforge.pebble.domain.TimePeriod__static_init
    //#timeperiod.java:: end of class: net.sourceforge.pebble.domain.TimePeriod
