public class GraphIterator extends Object implements Iterator
Modifier and Type | Class and Description |
---|---|
protected static class |
GraphIterator.GraphIteratorResources
A specialized iterator to iterate only over instances of
Resource
. |
protected class |
GraphIterator.StackElement
Element to be stored in the stack.
|
Modifier and Type | Field and Description |
---|---|
protected GraphIteratorElement |
nextElement
The next element as being returned by
next() . |
protected GraphIterator.StackElement |
se
The current information at a certain depth.
|
protected Stack |
stack
The stack contains information for previous depth.
|
protected Set |
visitedResources
The set of resources that have been visited before.
|
Modifier | Constructor and Description |
---|---|
protected |
GraphIterator(Resource root) |
Modifier and Type | Method and Description |
---|---|
protected void |
createNext() |
protected void |
createResult() |
static Iterator |
getIterator(Resource root)
Create a new Iterator that iterates over all triples.
|
protected Enumeration |
getPropertyEnumeration(Resource r) |
static Iterator |
getResourceIterator(Resource root)
Create a new Iterator that iterates over all Resources.
|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
protected void |
stepDeeper(Resource root) |
protected boolean |
stepHigher() |
protected Set visitedResources
protected GraphIterator.StackElement se
protected Stack stack
protected GraphIteratorElement nextElement
protected GraphIterator(Resource root)
public static Iterator getIterator(Resource root)
next()
is of type GraphIteratorElement
.protected Enumeration getPropertyEnumeration(Resource r)
protected void stepDeeper(Resource root)
protected boolean stepHigher()
protected void createResult()
protected void createNext()
public boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
public Object next()
next
in interface Iterator
Iterator.next()
public void remove()
remove
in interface Iterator
Iterator.remove()
Copyright © 2015 universAAL Consortium. All Rights Reserved.