|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.cql.CQLWord
public class CQLWord
A WordHoard Corpus Query Language word position.
Field Summary | |
---|---|
protected java.util.Set |
queryTermSets
The query term sets for matching for a given word position. |
Constructor Summary | |
---|---|
CQLWord()
Create a query word. |
|
CQLWord(java.util.Collection queryTermSets)
Create a query word from a collection of query term sets. |
|
CQLWord(CQLQueryTokenizer tokenizer)
Create a new word from a CQLQueryTokenizer. |
|
CQLWord(CQLTermSet[] queryTermSets)
Create a query word from a collection of query term sets. |
Method Summary | |
---|---|
java.util.Collection |
getQueryTermSets()
Get the query term set for this word. |
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 fieldIndex,
boolean doingWords)
Get HQL version of query term set. |
java.lang.String |
toString()
Get string version of query word for display. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Set queryTermSets
Constructor Detail |
---|
public CQLWord()
public CQLWord(java.util.Collection queryTermSets)
queryTermSets
- The query term sets defining
the query word. public CQLWord(CQLTermSet[] queryTermSets)
queryTermSets
- The query term sets defining the
query word. public CQLWord(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. Method Detail |
---|
public java.util.Collection getQueryTermSets()
public java.lang.String toHQL(java.lang.String queryField, int fieldIndex, boolean doingWords)
queryField
- The name of field to which this word applies.fieldIndex
- The index of this field in the select clause.doingWords
- true if word results, false for work part results.
public java.lang.String toString()
toString
in class java.lang.Object
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 |