//# 0 errors, 126 messages
//#
/*
    //#searchhit.java:1:1: class: net.sourceforge.pebble.search.SearchHit
    //#searchhit.java:1:1: method: net.sourceforge.pebble.search.SearchHit.net.sourceforge.pebble.search.SearchHit__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.search;

import net.sourceforge.pebble.domain.Blog;

import java.util.Date;

/**
 * A container for the results of a search (a search hit).
 *
 * @author    Simon Brown
 */
public class SearchHit {

  /** the blog to which the result belongs */
  private Blog blog;

  /** the id of the blog entry that matched the search query */
  private String id;

  /** the permalink of the blog entry that matched the search query */
  private String permalink;

  /** the title of the blog entry that matched the search query */
  private String title;

  /** the excerpt of the blog entry that matched the search query */
  private String excerpt;

  /** the date of the blog entry */
  private Date date;

  /** the score of the matched */
  private float score;

  /** the number of this result */
  private int number;

  /**
   * Creates a new instance with the specified message.
   */
  public SearchHit(Blog blog, String id, String permalink, String title, String excerpt, Date date, float score) {
    //#searchhit.java:72: method: void net.sourceforge.pebble.search.SearchHit.net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): blog
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): date
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): excerpt
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): id
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): permalink
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): score
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this
    //#input(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): title
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.blog
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.date
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.excerpt
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.id
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.permalink
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.score
    //#output(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.title
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.blog == blog
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.blog)
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.date == date
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.date)
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.excerpt == excerpt
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.excerpt)
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.id == id
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.id)
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.permalink == permalink
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.permalink)
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.score == score
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.score)
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): this.title == title
    //#post(void net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)): init'ed(this.title)
    this.blog = blog;
    this.id = id;
    this.permalink = permalink;
    this.title = title;
    this.excerpt = excerpt;
    this.date = date;
    this.score = score;
  }
    //#searchhit.java:80: end of method: void net.sourceforge.pebble.search.SearchHit.net.sourceforge.pebble.search.SearchHit(Blog, String, String, String, String, Date, float)

  /**
   * Gets the blog for the matching blog entry.
   *
   * @return  the owning Blog instance
   */
  public Blog getBlog() {
    return this.blog;
    //#searchhit.java:88: method: Blog net.sourceforge.pebble.search.SearchHit.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)
    //#searchhit.java:88: end of method: Blog net.sourceforge.pebble.search.SearchHit.getBlog()
  }

  /**
   * Gets the id for the matching blog entry.
   *
   * @return  the id as a String
   */
  public String getId() {
    return this.id;
    //#searchhit.java:97: method: String net.sourceforge.pebble.search.SearchHit.getId()
    //#input(String getId()): this
    //#input(String getId()): this.id
    //#output(String getId()): return_value
    //#pre[2] (String getId()): init'ed(this.id)
    //#post(String getId()): return_value == this.id
    //#post(String getId()): init'ed(return_value)
    //#searchhit.java:97: end of method: String net.sourceforge.pebble.search.SearchHit.getId()
  }

  /**
   * Gets the permalink for the matching blog entry.
   *
   * @return  a permalink as a String
   */
  public String getPermalink() {
    return this.permalink;
    //#searchhit.java:106: method: String net.sourceforge.pebble.search.SearchHit.getPermalink()
    //#input(String getPermalink()): this
    //#input(String getPermalink()): this.permalink
    //#output(String getPermalink()): return_value
    //#pre[2] (String getPermalink()): init'ed(this.permalink)
    //#post(String getPermalink()): return_value == this.permalink
    //#post(String getPermalink()): init'ed(return_value)
    //#searchhit.java:106: end of method: String net.sourceforge.pebble.search.SearchHit.getPermalink()
  }

  /**
   * Gets the title for the matching blog entry.
   *
   * @return  a title as a String
   */
  public String getTitle() {
    return title;
    //#searchhit.java:115: method: String net.sourceforge.pebble.search.SearchHit.getTitle()
    //#input(String getTitle()): this
    //#input(String getTitle()): this.title
    //#output(String getTitle()): return_value
    //#pre[2] (String getTitle()): init'ed(this.title)
    //#post(String getTitle()): return_value == this.title
    //#post(String getTitle()): init'ed(return_value)
    //#searchhit.java:115: end of method: String net.sourceforge.pebble.search.SearchHit.getTitle()
  }

  /**
   * Gets the excerpt for the matching blog entry.
   *
   * @return  a excerpt as a String
   */
  public String getExcerpt() {
    return excerpt;
    //#searchhit.java:124: method: String net.sourceforge.pebble.search.SearchHit.getExcerpt()
    //#input(String getExcerpt()): this
    //#input(String getExcerpt()): this.excerpt
    //#output(String getExcerpt()): return_value
    //#pre[2] (String getExcerpt()): init'ed(this.excerpt)
    //#post(String getExcerpt()): return_value == this.excerpt
    //#post(String getExcerpt()): init'ed(return_value)
    //#searchhit.java:124: end of method: String net.sourceforge.pebble.search.SearchHit.getExcerpt()
  }

  /**
   * Gets the date of the matching blog entry.
   *
   * @return  the date as a Date
   */
  public Date getDate() {
    return this.date;
    //#searchhit.java:133: method: Date net.sourceforge.pebble.search.SearchHit.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)
    //#searchhit.java:133: end of method: Date net.sourceforge.pebble.search.SearchHit.getDate()
  }

  /**
   * Gets the score for the matching blog entry.
   *
   * @return  a score as a float
   */
  public float getScore() {
    return this.score;
    //#searchhit.java:142: method: float net.sourceforge.pebble.search.SearchHit.getScore()
    //#input(float getScore()): this
    //#input(float getScore()): this.score
    //#output(float getScore()): return_value
    //#pre[2] (float getScore()): init'ed(this.score)
    //#post(float getScore()): return_value == this.score
    //#post(float getScore()): init'ed(return_value)
    //#searchhit.java:142: end of method: float net.sourceforge.pebble.search.SearchHit.getScore()
  }

  /**
   * Gets the number of this result.
   *
   * @return  the number as an int
   */
  public int getNumber() {
    return this.number;
    //#searchhit.java:151: method: int net.sourceforge.pebble.search.SearchHit.getNumber()
    //#input(int getNumber()): this
    //#input(int getNumber()): this.number
    //#output(int getNumber()): return_value
    //#pre[2] (int getNumber()): init'ed(this.number)
    //#post(int getNumber()): return_value == this.number
    //#post(int getNumber()): init'ed(return_value)
    //#searchhit.java:151: end of method: int net.sourceforge.pebble.search.SearchHit.getNumber()
  }

  /**
   * Sets the number of this result.
   *
   * @param n   the number as an int
   */
  public void setNumber(int n) {
    this.number = n;
    //#searchhit.java:160: method: void net.sourceforge.pebble.search.SearchHit.setNumber(int)
    //#input(void setNumber(int)): n
    //#input(void setNumber(int)): this
    //#output(void setNumber(int)): this.number
    //#post(void setNumber(int)): this.number == n
    //#post(void setNumber(int)): init'ed(this.number)
  }
    //#searchhit.java:161: end of method: void net.sourceforge.pebble.search.SearchHit.setNumber(int)

}
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Descendant_Table[net/sourceforge/pebble/search/SearchHit]
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog;
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getDate()Ljava/util/Date;
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getExcerpt()Ljava/lang/String;
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getId()Ljava/lang/String;
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getNumber()I
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getPermalink()Ljava/lang/String;
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getScore()F
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getTitle()Ljava/lang/String;
    //#output(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.setNumber(I)V
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Descendant_Table[net/sourceforge/pebble/search/SearchHit] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getBlog()Lnet/sourceforge/pebble/domain/Blog; == &getBlog
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getDate()Ljava/util/Date; == &getDate
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getExcerpt()Ljava/lang/String; == &getExcerpt
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getId()Ljava/lang/String; == &getId
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getNumber()I == &getNumber
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getPermalink()Ljava/lang/String; == &getPermalink
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getScore()F == &getScore
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.getTitle()Ljava/lang/String; == &getTitle
    //#post(net.sourceforge.pebble.search.SearchHit__static_init): __Dispatch_Table.setNumber(I)V == &setNumber
    //#searchhit.java:: end of method: net.sourceforge.pebble.search.SearchHit.net.sourceforge.pebble.search.SearchHit__static_init
    //#searchhit.java:: end of class: net.sourceforge.pebble.search.SearchHit
