|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ar.com.ktulu.dict.AbstractMatches
Common knowledge for the different kinds of matches used.
| Field Summary | |
(package private) Database |
db
|
(package private) int |
size
|
(package private) java.text.CollationKey |
word
|
| Constructor Summary | |
AbstractMatches(Database db,
java.text.CollationKey word)
|
|
| Method Summary | |
Database |
getDatabase()
Returns the database that was used to perform the search. |
java.lang.String |
getWord()
Returns the word that was used to perform the search. |
abstract boolean |
hasNext()
Returns true there are more elements. |
int |
matches()
Returns the number of matches. |
abstract Definition |
next()
Returns the definition of the next word in the collection. |
abstract java.lang.String |
nextWord()
Returns the next word definition in the collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.text.CollationKey word
Database db
int size
| Constructor Detail |
public AbstractMatches(Database db,
java.text.CollationKey word)
| Method Detail |
public Database getDatabase()
Matches
getDatabase in interface Matchespublic java.lang.String getWord()
Matches
getWord in interface Matchespublic int matches()
Matches
matches in interface Matches
public abstract boolean hasNext()
throws DatabaseException
Matchestrue there are more elements.
hasNext in interface MatchesDatabaseException
public abstract Definition next()
throws DatabaseException
Matches
next in interface MatchesDatabaseException
public abstract java.lang.String nextWord()
throws DatabaseException
Matches
nextWord in interface MatchesDatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||