googlesearch
Class CompositeQuery

java.lang.Object
  extended by googlesearch.Query
      extended by googlesearch.CompositeQuery
Direct Known Subclasses:
AndQuery, DefinitionQuery, ExactQuery, NotQuery, OrQuery, SiteQuery

public abstract class CompositeQuery
extends Query

An abstract class representing queries that contain one or more other queries. It's main responsibility is to walk a tree of query objects and build up the query string represented by the tree.

Author:
jbergin

Field Summary
 
Fields inherited from class googlesearch.Query
NULL_QUERY
 
Constructor Summary
CompositeQuery()
           
 
Method Summary
 java.lang.String getSearchString()
          Obtain the search string specified when the object was created.
 
Methods inherited from class googlesearch.Query
buildSearchString, getQueryKey, lucky, modifier, search, search, setQueryKey, suggestSpelling, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeQuery

public CompositeQuery()
Method Detail

getSearchString

public java.lang.String getSearchString()
Description copied from class: Query
Obtain the search string specified when the object was created.

Specified by:
getSearchString in class Query
Returns:
the search string