|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.response.TNonXMLObjectIteratorImpl
public class TNonXMLObjectIteratorImpl
TNonXMLObjectIteratorImpl is the implementation class for TNonXMLObjectIterator. TNonXMLObjectIteratorImpl sits on top of a TXMLObjectIterator and can currently be used for unidirectional forward iterations only. Please note that the Non-XML object instances are obtained in a lazy manner and indirectly by an iteration over XML object instances. This means here for each Non-XML object exists an XML object representation thus the TXMLObjectIterator serves as an indirection to a TNonXMLObjectIterator.
Constructor Summary | |
---|---|
TNonXMLObjectIteratorImpl()
Initializes the default (empty) TNonXMLObjectIteratorImpl. |
|
TNonXMLObjectIteratorImpl(TXMLObjectIterator xmlObjectIterator,
TAbstractAccessor abstractAccessor)
Initializes the TNonXMLObjectIteratorImpl with the given TXMLObjectIterator and the given TInvocation instance. |
Method Summary | |
---|---|
boolean |
canMoveBy(int offset)
Indicates if this iterator can be moved by the given offset. |
void |
close()
Invalidate this iterator. |
boolean |
hasNext()
Indicates if iterator has a next TNonXMLObject instance. |
boolean |
hasPrevious()
Indicates if this iterator has a previous TNonXMLObject instance. |
void |
moveBy(int offset)
Moves the iterator by the given offset. |
TNonXMLObject |
next()
Returns the next TNonXMLObject in the underlying sequence. |
TNonXMLObject |
previous()
Returns the previous TXMLObject in the list. |
void |
reset()
Resets the iterator to its initial state as it has been constructed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TNonXMLObjectIteratorImpl()
public TNonXMLObjectIteratorImpl(TXMLObjectIterator xmlObjectIterator, TAbstractAccessor abstractAccessor)
xmlObjectIterator
- referrs as an iterator to the Non-XML objects XML object representation.invocation
- is needed here to invoke for each TXMLObject its concrete TNonXMLObject representation.Method Detail |
---|
public boolean hasNext()
hasNext
in interface TNonXMLObjectIterator
public TNonXMLObject next() throws TNoSuchNonXMLObjectException, TIteratorException
next
in interface TNonXMLObjectIterator
TNoSuchNonXMLObjectException
- if iteration has no more TNonXMLObject instances.
TIteratorException
- if iteration failed because of an underlying Tamino problem.public boolean hasPrevious()
hasPrevious
in interface TNonXMLObjectIterator
public TNonXMLObject previous() throws TNoSuchNonXMLObjectException, TIteratorException
previous
in interface TNonXMLObjectIterator
java.util.NoSuchElementException
- if iteration has no more elements.
TIteratorException
- if iteration failed because of an underlying Tamino problem.
TNoSuchNonXMLObjectException
- if the iteration has no previous TNonXMLObject instance.public boolean canMoveBy(int offset) throws TIteratorException
canMoveBy
in interface TNonXMLObjectIterator
offset
- the positive or negative amount to move the iterator
TIteratorException
- if iteration failed because of an underlying Tamino problem.public void moveBy(int offset) throws TNoSuchNonXMLObjectException, TIteratorException
moveBy
in interface TNonXMLObjectIterator
offset
- the positive or negative amount to move the iterator
TNoSuchNonXMLObjectException
- if the new position is out of bounds.
TIteratorException
- if iteration failed because of an underlying Tamino problem.public void reset() throws TIteratorException
reset
in interface TNonXMLObjectIterator
TIteratorException
- if iteration failed because of an underlying Tamino problem.public void close() throws TIteratorException
close
in interface TNonXMLObjectIterator
TIteratorException
- if iteration failed because of an underlying Tamino problem.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |