name.angoca.db2sa.core.syntax.graph
Class GraphConstructor

Package class diagram package GraphConstructor
java.lang.Object
  extended by name.angoca.db2sa.core.syntax.graph.GraphConstructor

public final class GraphConstructor
extends Object

This class builds the graph from the content of the files.
Based on a tutorial that can be found in http://www.totheriver.com/learn/xml/xmltutorial.html
TODO hacer algunos tests para comprobar la estructura del grafo creado. TODO Arreglar jerarquia de excepciones y agrupar. Control Version

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Method Summary
static StartingToken build(InputSource content)
          Builds the graph from the content that was read from the grammar source (a file for example).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public static StartingToken build(InputSource content)
                           throws InvalidGraphException
Builds the graph from the content that was read from the grammar source (a file for example).

Parameters:
content - Data from the grammar file.
Returns:
Starting node of the graph.
Throws:
InvalidGraphException - When the StartingNode or EndingNode are not well defined.


Andres Gomez Casanova (AngocA) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.