com.softwareag.tamino.db.api.objectModel.sax
Class TSAXElementIterator

java.lang.Object
  extended by com.softwareag.tamino.db.api.objectModel.sax.TSAXElementIterator

public class TSAXElementIterator
extends java.lang.Object

TSAXElementIterator is a convenience class. It provides a simple unidirectional iterator for iterating typesafe over TSAXElement instances. You can create a TSAXElementIterator instance with a TXMLObjectIterator for TXMLObject instances of a SAX object model.

Version:
$Revision: 1.7 $
Author:
Marcus Schreyer

Constructor Summary
TSAXElementIterator(TXMLObjectIterator xmlObjectIterator)
          Initializes an iterator with a TXMLObjectIterator instance.
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more TSAXElement instances.
 TSAXElement next()
          Returns the next TSAXElement instance in the iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSAXElementIterator

public TSAXElementIterator(TXMLObjectIterator xmlObjectIterator)
Initializes an iterator with a TXMLObjectIterator instance.

Parameters:
xmlObjectIterator - a TXMLObjectIterator instance.
Method Detail

hasNext

public boolean hasNext()
Returns true if the iteration has more TSAXElement instances. (In other words, returns true if next would return a TSAXElement instance rather than throwing an exception.)

Returns:
true if the iterator has more TSAXElement instances.

next

public TSAXElement next()
                 throws TNoSuchXMLObjectException,
                        TIteratorException
Returns the next TSAXElement instance in the iteration.

Returns:
the next TSAXElement instance in the iteration.
Throws:
TNoSuchElementException - iteration has no more TSAXElement instances.
TIteratorException - signals an error while attempting to return the next TSAXElement instance.
TNoSuchXMLObjectException


Copyright (c) 2013 Software AG. All Rights Reserved.