|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.memory.MemLiteralIterator
An implementation of org.openrdf.sesame.sail.LiteralIterator that can iterate over a list of Literal objects.
| Constructor Summary | |
MemLiteralIterator(Collection literals)
Creates a new LiteralIterator that iterates over all objects in the supplied list. |
|
MemLiteralIterator(Collection literals,
String label,
String language,
URI datatype)
Creates a new LiteralIterator that iterates over all objects in the supplied list, only returning the ones that have the specified label, language and/or datatype. |
|
| Method Summary | |
void |
close()
Closes the iterator and frees any resources that it uses (e.g. |
boolean |
hasNext()
Checks whether there are any more values available. |
Value |
next()
Gets the next value. |
Literal |
nextLiteral()
Gets the next Literal. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemLiteralIterator(Collection literals)
literals - A Collection containing Literal objects
public MemLiteralIterator(Collection literals,
String label,
String language,
URI datatype)
literals - A Collection containing Literal objectslabel - The label that the returned literals should have,
or null if literals with any label should be returned.language - The language that the returned literals should have,
or null if literals with any language should be returned.datatype - The datatype that the returned literals should have,
or null if literals with any datatype should be returned.| Method Detail |
public boolean hasNext()
ValueIterator
hasNext in interface ValueIteratorpublic Value next()
ValueIterator
next in interface ValueIteratorpublic Literal nextLiteral()
LiteralIterator
nextLiteral in interface LiteralIteratorValueIterator.next()public void close()
ValueIterator
close in interface ValueIterator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||