name.angoca.db2sa.core.syntax.graph
Class GraphConstructor
java.lang.Object
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
- 0.0.1 Class creation.
- 0.0.2 Recommendations from PMD.
- 0.0.3 Organized.
- 0.0.4 License token.
- 0.0.5 License token reserved.
- 0.0.6 Ending token after create table.
- 0.1.0 Use of XML to create the graph.
- 0.1.1 Help Token.
- 0.1.2 Messages, exceptions and format.
- 0.1.3 Starting and ending token as constants.
- 0.1.4 Variable names and final.
- 1.0.0 Moved to version 1.
- 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 |
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) 
This work is licensed under a Creative Commons Attribution 3.0 Unported License.