uk.org.ogsadai.client.toolkit.activity.xmldb
Interface BlockMaker

All Known Implementing Classes:
XMLResourceSetBlockMaker, XMLResourceSetBlockMaker

public interface BlockMaker

A BlockMaker is used to retrieve a sequence of blocks suitable for putting onto an output of an Activity. The interface is similar to a that of a java.util.Iterator.

Author:
The OGSA-DAI Project Team

Method Summary
 boolean hasNext()
          Returns true if this BlockMaker has more blocks to return, otherwise false.
 java.lang.Object next()
          Returns the next block to put onto the Activity output.
 

Method Detail

next

public java.lang.Object next()
                      throws CommonSystemException
Returns the next block to put onto the Activity output.

Returns:
an Object representing the output block. This is usually a String or byte[].
Throws:
CommonSystemException - if an unrecoverable error occurred

hasNext

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

Throws:
CommonSystemException - if an unrecoverable error occurred