public class TNonXMLObjectIteratorTimeLoggingImpl extends TNonXMLObjectIteratorImpl
Constructor and Description |
---|
TNonXMLObjectIteratorTimeLoggingImpl()
Initializes the default (empty) TNonXMLObjectIteratorTimeLoggingImpl.
|
TNonXMLObjectIteratorTimeLoggingImpl(TXMLObjectIterator xmlObjectIterator,
TAbstractAccessor abstractAccessor)
Initializes the TNonXMLObjectIteratorTimeLoggingImpl 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 TNonXMLObjectIteratorTimeLoggingImpl()
public TNonXMLObjectIteratorTimeLoggingImpl(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
hasNext
in class TNonXMLObjectIteratorImpl
public TNonXMLObject next() throws TNoSuchNonXMLObjectException, TIteratorException
next
in interface TNonXMLObjectIterator
next
in class TNonXMLObjectIteratorImpl
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
hasPrevious
in class TNonXMLObjectIteratorImpl
public TNonXMLObject previous() throws TNoSuchNonXMLObjectException, TIteratorException
previous
in interface TNonXMLObjectIterator
previous
in class TNonXMLObjectIteratorImpl
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
canMoveBy
in class TNonXMLObjectIteratorImpl
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
moveBy
in class TNonXMLObjectIteratorImpl
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
reset
in class TNonXMLObjectIteratorImpl
TIteratorException
- if iteration failed because of an underlying Tamino problem.public void close() throws TIteratorException
close
in interface TNonXMLObjectIterator
close
in class TNonXMLObjectIteratorImpl
TIteratorException
- if iteration failed because of an underlying Tamino problem.Copyright (c) 2017 Software AG. All Rights Reserved.