cwi.GraphXML
Class StructureIterator

java.lang.Object
  extended bycwi.GraphXML.StructureIterator

public class StructureIterator
extends java.lang.Object

Structure iterator class. This class is initialized for a full XMLGraph document and allows the user to iterate step by step through graph and edit specifications.

Instances of this class are generated by the Abstract Parser.

Author:
Ivan Herman
See Also:
AbstractParser

Constructor Summary
(package private) StructureIterator(InterpretDocument int_a, org.w3c.dom.Node[] graphs_a, org.w3c.dom.Node[][] edits_a)
           
 
Method Summary
 void close()
           
protected  void finalize()
          This method overrides the inherited method from class Object.
 int getNumberOfEdits()
          Return number of edit block definitions
 int getNumberOfGraphs()
          Return number of graph definitions
 boolean hasNextEditBlock()
          Is there more edit block definitions to interpret?
 boolean hasNextGraph()
          Is there more graph definitions to interpret?
 void interpretNextEditBlock()
          Interpret next edit block.
 void interpretNextGraph()
          Interpret next graph.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructureIterator

StructureIterator(InterpretDocument int_a,
                  org.w3c.dom.Node[] graphs_a,
                  org.w3c.dom.Node[][] edits_a)
Method Detail

getNumberOfGraphs

public int getNumberOfGraphs()
Return number of graph definitions

Returns:
number of graph definitions

getNumberOfEdits

public int getNumberOfEdits()
Return number of edit block definitions

Returns:
number of edit block definitions

hasNextGraph

public boolean hasNextGraph()
Is there more graph definitions to interpret?


hasNextEditBlock

public boolean hasNextEditBlock()
Is there more edit block definitions to interpret?


interpretNextGraph

public void interpretNextGraph()
Interpret next graph. If there are no more graphs left, the method is void.


interpretNextEditBlock

public void interpretNextEditBlock()
Interpret next edit block. If there are no more edit blocks left, the method is void.


close

public void close()

finalize

protected void finalize()
                 throws java.lang.Throwable
This method overrides the inherited method from class Object. The method invokes the closeXMLGraph on the semantic routine level.

Throws:
java.lang.Throwable
See Also:
GraphSemantics

toString

public java.lang.String toString()