uk.org.ogsadai.common
Interface BlockMaker

All Known Implementing Classes:
XMLResourceSetBlockMaker

public interface BlockMaker

A BlockMaker is used to retrieve a sequence of blocks of some type. 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.
 

Method Detail

next

public java.lang.Object next()
                      throws BlockMakerException
Returns the next block.

Returns:
an Object.
Throws:
BlockMakerException - if a problem occurs when accessing the block.

hasNext

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

Returns:
true or false.
Throws:
BlockMakerException - if a problem occurs when accessing the blocks.