com.e4graph
Class VertexIterator

java.lang.Object
  |
  +--com.e4graph.VertexIterator
All Implemented Interfaces:
java.util.Iterator

public final class VertexIterator
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
VertexIterator(com.e4graph.Node n)
          Constructor that creates an iterator that visits every vertex in this node.
VertexIterator(com.e4graph.Node n, int type)
          Constructor that creates an iterator that visits only vertices with the given type, in the given node.
VertexIterator(com.e4graph.Node n, java.lang.String name)
          Constructor that creates an iterator that visits only vertices with the given name, in the given node.
VertexIterator(com.e4graph.Node n, java.lang.String name, int type)
          Constructor that creates an iterator that visits only vertices with the given name and type, in the given node.
 
Method Summary
 boolean hasNext()
          Does this iterator have a next element?
 java.lang.Object next()
          Get the next element of the iteration.
 void remove()
          Remove method -- always throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexIterator

public VertexIterator(com.e4graph.Node n)
Constructor that creates an iterator that visits every vertex in this node.


VertexIterator

public VertexIterator(com.e4graph.Node n,
                      int type)
Constructor that creates an iterator that visits only vertices with the given type, in the given node.


VertexIterator

public VertexIterator(com.e4graph.Node n,
                      java.lang.String name)
Constructor that creates an iterator that visits only vertices with the given name, in the given node.


VertexIterator

public VertexIterator(com.e4graph.Node n,
                      java.lang.String name,
                      int type)
Constructor that creates an iterator that visits only vertices with the given name and type, in the given node.

Method Detail

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Remove method -- always throws UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator
java.lang.UnsupportedOperationException

hasNext

public boolean hasNext()
Does this iterator have a next element?

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Get the next element of the iteration.

Specified by:
next in interface java.util.Iterator
java.util.NoSuchElementException