public class TNonXMLObjectIteratorImpl extends java.lang.Object implements TNonXMLObjectIterator
Constructor and Description |
---|
TNonXMLObjectIteratorImpl()
Initializes the default (empty) TNonXMLObjectIteratorImpl.
|
TNonXMLObjectIteratorImpl(TXMLObjectIterator xmlObjectIterator,
TAbstractAccessor abstractAccessor)
Initializes the TNonXMLObjectIteratorImpl with the given TXMLObjectIterator and the given TInvocation instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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 iteratorTIteratorException
- 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 iteratorTNoSuchNonXMLObjectException
- 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.Copyright (c) 2017 Software AG. All Rights Reserved.