public class TXMLObjectFetchingIterator extends TXMLObjectIteratorImpl
START_AT_BEGIN, START_AT_END
Constructor and Description |
---|
TXMLObjectFetchingIterator(TInputStreamInterpreter inputStreamInterpreter,
TAbstractAccessor abstractAccessor)
Constructor.
|
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.
|
int |
getCount()
Gets the query count as an int.
|
boolean |
hasCount()
Indicates if the response of Tamino contained the query count.
|
boolean |
hasNext()
Indicates if iterator has next XmlObject instance.
|
protected boolean |
hasNextCursorObject()
Indicates if iterator has next cursored XmlObject instance within Tamino
|
boolean |
hasPrevious()
Indicates if this iterator has a previous TXMLObject instance.
|
protected boolean |
hasPreviousCursorObject()
Indicates if iterator has previous cursored XmlObject instance within Tamino
|
void |
moveBy(int offset)
Moves the iterator by the given offset.
|
TXMLObject |
next()
Returns the next element in the list.
|
TXMLObject |
previous()
Returns the previous TXMLObject in the list.
|
void |
reset()
Resets the iterator to its initial state as it has been constructed.
|
getCurrentIndex, getLocale, getResponseQueryContent, initIndex, setCurrentIndex, setLocale, setResponseQueryContent
public TXMLObjectFetchingIterator(TInputStreamInterpreter inputStreamInterpreter, TAbstractAccessor abstractAccessor)
inputStreamInterpreter
- is responsible for the interpreting of low level Tamino results.abstractAccessor
- is needed to invoke generic commands on an underlying Tamino database.public boolean hasNext()
hasNext
in interface TXMLObjectIterator
hasNext
in class TXMLObjectIteratorImpl
protected boolean hasNextCursorObject()
public TXMLObject next() throws TNoSuchXMLObjectException, TIteratorException
next
in interface TXMLObjectIterator
next
in class TXMLObjectIteratorImpl
NoSuchElementException
- if iteration has no more elements.TIteratorException
- if iteration failed because of an underlying Tamino problem.TNoSuchXMLObjectException
- the if iteration has no next TXMLObject instance.public boolean hasPrevious()
hasPrevious
in interface TXMLObjectIterator
hasPrevious
in class TXMLObjectIteratorImpl
protected boolean hasPreviousCursorObject()
public TXMLObject previous() throws TNoSuchXMLObjectException, TIteratorException
previous
in interface TXMLObjectIterator
previous
in class TXMLObjectIteratorImpl
NoSuchElementException
- if iteration has no more elements.TIteratorException
- if iteration failed because of an underlying Tamino problem.TNoSuchXMLObjectException
- if the iteration has no previous TXMLObject instance.public boolean hasCount()
hasCount
in interface TXMLObjectIterator
hasCount
in class TXMLObjectIteratorImpl
public int getCount()
getCount
in interface TXMLObjectIterator
getCount
in class TXMLObjectIteratorImpl
public boolean canMoveBy(int offset) throws TIteratorException
canMoveBy
in interface TXMLObjectIterator
canMoveBy
in class TXMLObjectIteratorImpl
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 TNoSuchXMLObjectException, TIteratorException
moveBy
in interface TXMLObjectIterator
moveBy
in class TXMLObjectIteratorImpl
offset
- the positive or negative amount to move the iteratorTNoSuchXMLObjectException
- 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 TXMLObjectIterator
reset
in class TXMLObjectIteratorImpl
TIteratorException
- if iteration failed because of an underlying Tamino problem.public void close() throws TIteratorException
close
in interface TXMLObjectIterator
close
in class TXMLObjectIteratorImpl
TIteratorException
- if iteration failed because of an underlying Tamino problem.Copyright (c) 2017 Software AG. All Rights Reserved.