|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.search.SearchResult
public class SearchResult
A search result.
A search result is a
word and the index in
the word of a
word part.
The index of the word part is -1 if the search did not include a lemma, part of speech, word class, or major word class criteron. In this case, no particular part of the word is responsible for the word being a result (as in, for exammple, a search by spelling only).
| Constructor Summary | |
|---|---|
SearchResult(Word word,
int partIndex)
Creates a new search result. |
|
| Method Summary | |
|---|---|
int |
getPartIndex()
Gets the part index in the word. |
Word |
getWord()
Gets the word. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchResult(Word word,
int partIndex)
word - The word.partIndex - The part index in the word, or -1 if none. | Method Detail |
|---|
public Word getWord()
public int getPartIndex()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||