|
Qizx/open 4.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
com.qizx.api.fulltext.Thesaurus.LookupResult
public static class Thesaurus.LookupResult
Structure returned by Thesaurus lookup.
Contains:
Constructor Summary | |
---|---|
Thesaurus.LookupResult(int consumedTokens)
Creates a new empty lookup result. |
Method Summary | |
---|---|
void |
addSynonym(Thesaurus.Synonym syn)
|
void |
addSynonym(Thesaurus.TokenSequence sequence,
String relationship,
int level)
Appends a Synonym. |
int |
consumedTokens()
Returns the number of consumed input tokens. |
Thesaurus.TokenSequence |
getSequence(int index)
Returns the word sequence at rank 'index'. |
Thesaurus.Synonym |
getSynonym(int index)
|
int |
size()
Returns the number of equivalent word sequences. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public Thesaurus.LookupResult(int consumedTokens)
consumedTokens
- the number of consumed input tokens.Method Detail |
---|
public int consumedTokens()
public int size()
size
in interface Collection
size
in interface List
size
in class ArrayList
public Thesaurus.Synonym getSynonym(int index)
public Thesaurus.TokenSequence getSequence(int index)
public void addSynonym(Thesaurus.TokenSequence sequence, String relationship, int level)
public void addSynonym(Thesaurus.Synonym syn)
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |