|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.search.SearchCriteria
edu.northwestern.at.wordhoard.model.search.SearchCriteriaLemmaWorkCount
public class SearchCriteriaLemmaWorkCount
A set of word search criteria.
| Constructor Summary | |
|---|---|
SearchCriteriaLemmaWorkCount()
Creates a new empty set of word search criteria. |
|
SearchCriteriaLemmaWorkCount(Corpus corpus,
Lemma lemma,
Pos pos,
Spelling spelling,
int strength)
Creates a new set of word search criteria. |
|
SearchCriteriaLemmaWorkCount(java.lang.String groupByClassname)
Creates a new set of freq search criteria. |
|
| Method Summary | |
|---|---|
void |
add(SearchCriterion criterion)
Adds a criterion. |
boolean |
contains(java.lang.Class cls)
Returns true if the critera contains a criterion class. |
Corpus |
getCorpus()
Gets the corpus. |
TextLine |
getDescription(FontInfo[] fontInfo)
Gets a description of the search criteria. |
java.util.List |
search(org.hibernate.Session session)
Executes the query. |
boolean |
suspicious()
Returns true if the criteria are "suspicious". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchCriteriaLemmaWorkCount()
public SearchCriteriaLemmaWorkCount(Corpus corpus,
Lemma lemma,
Pos pos,
Spelling spelling,
int strength)
The collation strengths for spelling searches are:
corpus - The corpus to be searched, or null.lemma - The lemma, or null.pos - The part of speech, or null.spelling - The spelling, or null.strength - Collation strength for spelling searches. public SearchCriteriaLemmaWorkCount(java.lang.String groupByClassname)
groupByClassname - The group by class. | Method Detail |
|---|
public void add(SearchCriterion criterion)
add in class SearchCriteriacriterion - Search criterion. public Corpus getCorpus()
getCorpus in class SearchCriteriapublic boolean contains(java.lang.Class cls)
contains in class SearchCriteriacls - Criterion class.
public java.util.List search(org.hibernate.Session session)
throws PersistenceException
search in class SearchCriteriasession - Hibernate session.
search results which match the search criteria,
ordered by location (by work tag, then by ordinal
within work).
PersistenceException public TextLine getDescription(FontInfo[] fontInfo)
getDescription in class SearchCriteriafontInfo - Array of font info indexed by character set.
public boolean suspicious()
A set of search criteria is "suspicious" if it contains neither a lemma criterion nor a spelling criterion. Such a search is likely to take a long time and produce a large number of results.
suspicious in class SearchCriteria
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||