|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.uniroma2.art.owlart.navigation.RDFIteratorImpl<T>
T
- public abstract class RDFIteratorImpl<T>
This abstract implementation simply makes the hasNext()
and next()
methods of
standard Iterator
interface throw the specific runtime exception: ModelRuntimeException
Implementations of this abstract class should catch this Runtime Exception and then throw the standard
Checked Exception ModelAccessException
. This way, users will always use the specific methods of
RDFIterator (streamOpen()
and getNext()
) and be properly notified with the Catched
Exception ModelAccessException
. At the same time, should a library suited for the Iterator
interface be adopted, it will internally call the standard methods, possibly throw the Runtime exception,
and then have this catched and rethrown as a Checked Exception. This assures both compliance with existing
Iterator support libraries as well as Checked Extensions compile-time handling for his specific methods
Constructor Summary | |
---|---|
RDFIteratorImpl()
|
Method Summary | |
---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.uniroma2.art.owlart.navigation.RDFIterator |
---|
close, getNext, streamOpen |
Constructor Detail |
---|
public RDFIteratorImpl()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |