| java.lang.Object org.mandarax.util.AbstractClauseIterator
All known Subclasses: org.mandarax.sql.SQLClauseIterator, org.mandarax.util.ZeroClauseIterator, org.mandarax.util.AbstractAutoFactIterator, org.mandarax.rdf.RDFClauseIterator, org.mandarax.sql.CachedClauseIterator, org.mandarax.util.SingleClauseSetIterator, org.mandarax.util.MultipleClauseSetIterator, org.mandarax.util.SingleClauseIterator, org.mandarax.util.MergedClauseIterator,
AbstractClauseIterator | abstract public class AbstractClauseIterator implements ClauseIterator(Code) | | Iterator for clauses.
In this abstract class compatiblity methods with java.util.Enumeration
and java.util.Iterator were defined. Since the ClauseIterator method throw now
an ClauseSetException, this compatibility is not longer maintained!
The respective methods from Iterator and Enumeration are marked as depreceted and should not be marked.
For compatibility, we keep this class alive and implement this methods.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.0 |
Method Summary | |
public void | close() Close the iterator and release all resources. | public boolean | hasMoreElements() Indicates whether there are more elements. | public boolean | hasNext() Indicates whether there are more elements. | public Object | next() Get the next element. | public Object | nextElement() Get the next element. | public void | remove() Remove an element. |
AbstractClauseIterator | protected AbstractClauseIterator()(Code) | | Constructor.
|
close | public void close()(Code) | | Close the iterator and release all resources.
By default, do nothing.
|
hasMoreElements | public boolean hasMoreElements()(Code) | | Indicates whether there are more elements.
Duplicates the functionality of hasMoreClauses() in order to implement
the java.util.Enumeration interface.
true if there are more clauses, false otherwise |
hasNext | public boolean hasNext()(Code) | | Indicates whether there are more elements.
Duplicates the functionality of hasMoreClauses() in order to implement
the java.util.Iterator interface.
true if there are more clauses, false otherwise |
next | public Object next()(Code) | | Get the next element.
Duplicates the functionality of nextClause() in order to implement
the java.util.Iterator interface.
the next clause |
nextElement | public Object nextElement()(Code) | | Get the next element.
Duplicates the functionality of nextClause() in order to implement
the java.util.Enumeration interface.
the next clause |
remove | public void remove()(Code) | | Remove an element. Not supported, throws a UnsupportedOperationException .
|
|
|