edu.northwestern.at.wordhoard.model.search
Class SearchResultLemmaSearch

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.search.SearchResultLemmaSearch

public class SearchResultLemmaSearch
extends java.lang.Object

A search result.

A search result is a lemma and its count.


Constructor Summary
SearchResultLemmaSearch(Lemma lemma, int count, int docCount)
          Creates a new search result.
 
Method Summary
 int getCount()
          Gets the count.
 int getDocCount()
          Gets the doc count.
 Lemma getLemma()
          Gets the lemma.
 Spelling getTag()
          Gets the tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultLemmaSearch

public SearchResultLemmaSearch(Lemma lemma,
                               int count,
                               int docCount)
Creates a new search result.

Parameters:
lemma - The lemma.
count - The count.
Method Detail

getLemma

public Lemma getLemma()
Gets the lemma.

Returns:
The lemma.

getTag

public Spelling getTag()
Gets the tag.

Returns:
The tag.

getCount

public int getCount()
Gets the count.

Returns:
count of this lemma in all corpora.

getDocCount

public int getDocCount()
Gets the doc count.

Returns:
count of docs in which this lemma is present.