com.mkdoc.query
Class AbstractQueryContext

java.lang.Object
  |
  +--com.mkdoc.query.AbstractQueryContext
All Implemented Interfaces:
QueryContext
Direct Known Subclasses:
RssQueryContext, TextQueryContext, XhtmlQueryContext

public abstract class AbstractQueryContext
extends java.lang.Object
implements QueryContext

Base class for QueryContext types.

Version:
0.1 2005-08-02
Author:
Philip Shaw

Field Summary
 
Fields inherited from interface com.mkdoc.query.QueryContext
HTML, LIMIT, RSS, TEXT
 
Constructor Summary
AbstractQueryContext()
           
 
Method Summary
 int getPageNumber()
          Get the requested page number for any results.
 int getResultsPerPage()
          Get the maximum number of results to display per page.
protected  void setPageNumber(int page)
          Set the requested page number for any results.
protected  void setResultsPerPage(int limit)
          Set the maximum number of results to display per page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mkdoc.query.QueryContext
getOutputType
 

Constructor Detail

AbstractQueryContext

public AbstractQueryContext()
Method Detail

getPageNumber

public final int getPageNumber()
Get the requested page number for any results.

Specified by:
getPageNumber in interface QueryContext
Returns:
The page number for any results
Since:
Version 0.1 2005-08-02

setPageNumber

protected final void setPageNumber(int page)
Set the requested page number for any results.

Parameters:
page - The page number for any results
Since:
Version 0.1 2005-08-02

getResultsPerPage

public final int getResultsPerPage()
Get the maximum number of results to display per page.

Specified by:
getResultsPerPage in interface QueryContext
Returns:
The maximum number of results to display per page.
Since:
Version 0.1 2005-08-02

setResultsPerPage

protected final void setResultsPerPage(int limit)
Set the maximum number of results to display per page.

Parameters:
limit - The maximum number of results per page.
Since:
Version 0.1 2005-08-02