uk.org.ogsadai.activity.xmldb
Class XMLResourceSetBlockMaker

java.lang.Object
  |
  +--uk.org.ogsadai.activity.xmldb.XMLResourceSetBlockMaker
All Implemented Interfaces:
BlockMaker

public class XMLResourceSetBlockMaker
extends java.lang.Object
implements BlockMaker

This BlockMaker processes an org.xmldb.api.base.ResourceSet, returning an XML representation as a sequence of String blocks.

Author:
The OGSA-DAI Project Team

Constructor Summary
XMLResourceSetBlockMaker(org.xmldb.api.base.ResourceSet results)
          Constructs an instance for the specified ResourceSet.
 
Method Summary
 boolean hasNext()
          Returns true if this BlockMaker has more blocks to return, otherwise false.
 java.lang.Object next()
          Returns the next String block containing part of the XML representation of the ResourceSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLResourceSetBlockMaker

public XMLResourceSetBlockMaker(org.xmldb.api.base.ResourceSet results)
                         throws CommonSystemException
Constructs an instance for the specified ResourceSet.

Parameters:
results - A ResourceSet containing the results.
Throws:
CommonSystemException - If there is a system problem constructing the instance.
Method Detail

hasNext

public boolean hasNext()
                throws CommonSystemException
Description copied from interface: BlockMaker
Returns true if this BlockMaker has more blocks to return, otherwise false.

Specified by:
hasNext in interface BlockMaker
Throws:
CommonSystemException - if an unrecoverable error occurred

next

public java.lang.Object next()
                      throws CommonSystemException
Returns the next String block containing part of the XML representation of the ResourceSet.

Specified by:
next in interface BlockMaker
Returns:
An Object referencing a String.
Throws:
CommonSystemException - If there is a system problem constructing the instance.