org.apache.wsrp4j.consumer.app
Interface PageRegistry

All Known Implementing Classes:
PageRegistryImpl

public interface PageRegistry

Defines a registry which can be used to administer page objects.

Version:
$Id: PageRegistry.java,v 1.4 2005/08/10 14:42:36 cziegeler Exp $
Author:
Stephan Laertz

Method Summary
 void addPage(Page page)
          Add a page to the registry
 boolean existsPage(java.lang.String pageID)
          Tests if page with the given ID exists
 java.util.Iterator getAllPages()
          Get all pages in the registry
 Page getPage(java.lang.String pageID)
          Get the page with the given ID
 Page removePage(java.lang.String pageID)
          Remove the page with the given ID from the registry
 

Method Detail

addPage

public void addPage(Page page)
Add a page to the registry

Parameters:
page - The page to add

getPage

public Page getPage(java.lang.String pageID)
Get the page with the given ID

Parameters:
pageID - ID of the page
Returns:
The page with the given ID

getAllPages

public java.util.Iterator getAllPages()
Get all pages in the registry

Returns:
Iterator with all pages

removePage

public Page removePage(java.lang.String pageID)
Remove the page with the given ID from the registry

Parameters:
pageID - ID of the page
Returns:
The page which had been mapped to this id or null if no page was found with the given id

existsPage

public boolean existsPage(java.lang.String pageID)
Tests if page with the given ID exists

Parameters:
pageID - ID of the page
Returns:
True if a page exists with this ID


--