att.grappa
Class Subgraph.Enumerator
java.lang.Object
   att.grappa.Subgraph.Enumerator
att.grappa.Subgraph.Enumerator
- All Implemented Interfaces: 
- GraphEnumeration, java.util.Enumeration
- Enclosing class:
- Subgraph
-  class Subgraph.Enumerator 
- extends java.lang.Object- implements GraphEnumeration
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
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
Subgraph.Enumerator
Subgraph.Enumerator(int t)
hasMoreElements
public boolean hasMoreElements()
- 
- Specified by:
- hasMoreElementsin interface- java.util.Enumeration
 
- 
 
nextElement
public java.lang.Object nextElement()
- 
- Specified by:
- nextElementin 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:
- nextGraphElementin 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:
- getSubgraphRootin 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:
- getEnumerationTypesin interface- GraphEnumeration
 
- 
- Returns:
- an indication of the types of elements in this enumeration
- See Also:
- GrappaConstants.NODE,- GrappaConstants.EDGE,- GrappaConstants.SUBGRAPH