edu.northwestern.at.wordhoard.swing.calculator.cql
Class CQLPhrase

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.calculator.cql.CQLPhrase

public class CQLPhrase
extends java.lang.Object

A WordHoard Corpus Query Language phrase.


Field Summary
protected  java.util.List queryWords
          Ordered list of query words defining a query phrase.
 
Constructor Summary
CQLPhrase()
          Create a query word.
CQLPhrase(CQLQueryTokenizer tokenizer)
          Create a new phrase from a CQLQueryTokenizer.
CQLPhrase(CQLWord[] queryWords)
          Create a query phrase from a collection of query words.
CQLPhrase(java.util.List queryWords)
          Create a query phrase from a collection of query words.
 
Method Summary
 java.util.List getQueryWords()
          Get the query words for this phrase.
 java.lang.String toString()
          Displayable version of phrase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queryWords

protected java.util.List queryWords
Ordered list of query words defining a query phrase.

Constructor Detail

CQLPhrase

public CQLPhrase()
Create a query word.


CQLPhrase

public CQLPhrase(java.util.List queryWords)
Create a query phrase from a collection of query words.

Parameters:
queryWords - The query words defining the phrase.

CQLPhrase

public CQLPhrase(CQLWord[] queryWords)
Create a query phrase from a collection of query words.

Parameters:
queryWords - The query words defining the query phrase.

CQLPhrase

public CQLPhrase(CQLQueryTokenizer tokenizer)
          throws InvalidCQLQueryException
Create a new phrase from a CQLQueryTokenizer.

Parameters:
tokenizer - The CQLQueryTokenizer. Should be pointing at the start of a set of CQLWord definitions.
Throws:
InvalidCQLQueryException - if the CQL syntax is bad.
Method Detail

getQueryWords

public java.util.List getQueryWords()
Get the query words for this phrase.

Returns:
The list of query term sets.

toString

public java.lang.String toString()
Displayable version of phrase.

Overrides:
toString in class java.lang.Object