edu.northwestern.at.wordhoard.model.bibtool
Class SearchWorkCriteria

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.bibtool.SearchWorkCriteria

public class SearchWorkCriteria
extends java.lang.Object

Search criteria.

A search criteria object specifies the criteria for a word occurrence search. It has the following components:


Constructor Summary
SearchWorkCriteria(Corpus corpus, java.lang.String authorname, java.lang.String title, java.lang.String yearStart, java.lang.String yearEnd, boolean caseSensitive)
          Creates a new search criteria.
 
Method Summary
 java.lang.String getAuthorName()
          Gets the author.
 boolean getCaseSensitive()
          Gets the case sensitive option.
 Corpus getCorpus()
          Gets the corpus.
 java.lang.String getTitle()
          Gets the title.
 java.lang.String getYearEnd()
          Gets the year end.
 java.lang.String getYearStart()
          Gets the year Start.
 java.lang.String toShortString()
          Returns a short string representation of the search criteria.
 java.lang.String toString()
          Returns a full string representation of the search criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchWorkCriteria

public SearchWorkCriteria(Corpus corpus,
                          java.lang.String authorname,
                          java.lang.String title,
                          java.lang.String yearStart,
                          java.lang.String yearEnd,
                          boolean caseSensitive)
Creates a new search criteria.

Parameters:
corpus - The corpus to be searched.
authorname - The Author, or null.
title - The title, or null.
caseSensitive - True if case sensitive.
Method Detail

getCorpus

public Corpus getCorpus()
Gets the corpus.

Returns:
The corpus.

getAuthorName

public java.lang.String getAuthorName()
Gets the author.

Returns:
The authorname, or null.

getTitle

public java.lang.String getTitle()
Gets the title.

Returns:
The title, or null.

getYearStart

public java.lang.String getYearStart()
Gets the year Start.

Returns:
The yearStart, or null.

getYearEnd

public java.lang.String getYearEnd()
Gets the year end.

Returns:
The yearEnd, or null.

getCaseSensitive

public boolean getCaseSensitive()
Gets the case sensitive option.

Returns:
The case sensitive option.

toString

public java.lang.String toString()
Returns a full string representation of the search criteria.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.

toShortString

public java.lang.String toShortString()
Returns a short string representation of the search criteria.

Returns:
The short string representation.