att.grappa
Class Subgraph.Enumerator

java.lang.Object
  extended by att.grappa.Subgraph.Enumerator
All Implemented Interfaces:
GraphEnumeration, java.util.Enumeration
Enclosing class:
Subgraph

 class Subgraph.Enumerator
extends java.lang.Object
implements GraphEnumeration


Field Summary
private  int dictType
           
private  Element elem
           
private  java.util.Enumeration enm
           
private  Subgraph root
           
private  GraphEnumeration subEnum
           
private  int types
           
 
Constructor Summary
Subgraph.Enumerator(int t)
           
 
Method Summary
 int getEnumerationTypes()
          Get the types of elements possibly contained in this enumeration.
 Subgraph getSubgraphRoot()
          Get the root of this enumeration.
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 Element nextGraphElement()
          A convenience method that should just return a cast of a call to nextElement()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private Subgraph root

types

private int types

enm

private java.util.Enumeration enm

subEnum

private GraphEnumeration subEnum

elem

private Element elem

dictType

private int dictType
Constructor Detail

Subgraph.Enumerator

Subgraph.Enumerator(int t)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

nextGraphElement

public Element nextGraphElement()
Description copied from interface: GraphEnumeration
A convenience method that should just return a cast of a call to nextElement()

Specified by:
nextGraphElement in interface GraphEnumeration
Returns:
the next graph element in the enumeration

getSubgraphRoot

public Subgraph getSubgraphRoot()
Description copied from interface: GraphEnumeration
Get the root of this enumeration.

Specified by:
getSubgraphRoot in interface GraphEnumeration
Returns:
the root subgraph for this enumeration

getEnumerationTypes

public int getEnumerationTypes()
Description copied from interface: GraphEnumeration
Get the types of elements possibly contained in this enumeration.

Specified by:
getEnumerationTypes in interface GraphEnumeration
Returns:
an indication of the types of elements in this enumeration
See Also:
GrappaConstants.NODE, GrappaConstants.EDGE, GrappaConstants.SUBGRAPH