com.arsdigita.search.ui
Interface QueryGenerator

All Known Implementing Classes:
QueryComponent

public interface QueryGenerator

This interface provides the API for retrieving a query specification based on the current state. The ResultsPane component uses an instance of this class to retrieve the query spec and display a list of results

See Also:
QueryComponent, ResultsPane

Method Summary
 QuerySpecification getQuerySpecification(PageState state)
          Retrieves the current query spec.
 boolean hasQuery(PageState state)
          Determines whether a query spec currrently exists
 

Method Detail

hasQuery

public boolean hasQuery(PageState state)
Determines whether a query spec currrently exists

Returns:
true if a query spec is available

getQuerySpecification

public QuerySpecification getQuerySpecification(PageState state)
Retrieves the current query spec. This method can only be called if hasQuery(state) returns true.

Returns:
the query spec


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC