|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.swing.calculator.cql.CQLTermSet
public class CQLTermSet
A WordHoard Corpus Query Language term set.
| Field Summary | |
|---|---|
protected java.util.Set |
queryTerms
The search terms to match for a given word. |
| Constructor Summary | |
|---|---|
CQLTermSet()
Create a search term set. |
|
CQLTermSet(java.util.Collection queryTerms)
Create a query term set from a collection of query terms. |
|
CQLTermSet(CQLQueryTokenizer tokenizer)
Create a new term set from a CQLQueryTokenizer. |
|
CQLTermSet(CQLTerm[] queryTerms)
Create a query term set from a collection of query terms. |
|
| Method Summary | |
|---|---|
java.util.Collection |
getQueryTerms()
Get the query terms for this term set. |
boolean |
hasSpeaker()
Determine if any constituent query term refers to a speaker. |
boolean |
hasSpeech()
Determine if any constituent query term refers to a speech. |
boolean |
hasWordPart()
Determine if any constituent query term refers to a word part. |
java.lang.String |
toHQL(java.lang.String queryField,
int fieldIndexBogus,
boolean doingWords)
Get HQL version of query term set. |
java.lang.String |
toString()
Displayable version of term set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set queryTerms
| Constructor Detail |
|---|
public CQLTermSet()
public CQLTermSet(CQLQueryTokenizer tokenizer)
throws InvalidCQLQueryException
tokenizer - The CQLQueryTokenizer. Should be pointing
at the start of a set of CQLTerm definitions.
InvalidCQLQueryException - if the CQL syntax is bad. public CQLTermSet(java.util.Collection queryTerms)
queryTerms - The query terms defining the query term set. public CQLTermSet(CQLTerm[] queryTerms)
queryTerms - The query terms defining the query term set. | Method Detail |
|---|
public java.util.Collection getQueryTerms()
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String toHQL(java.lang.String queryField,
int fieldIndexBogus,
boolean doingWords)
queryField - The name of field to which this term set applies.fieldIndexBogus - The index of this field in the select clause.doingWords - true if word results, false for work part results.
public boolean hasSpeaker()
public boolean hasSpeech()
public boolean hasWordPart()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||