org.graffiti.plugins.ios.gml.gmlReader.transform
Class GmlToGraffiti

java.lang.Object
  extended by org.graffiti.plugins.ios.gml.gmlReader.transform.GmlToGraffiti

public class GmlToGraffiti
extends Object

Transforms a graph represented in the GML format into the representation used within graffiti.

Author:
ruediger

Constructor Summary
GmlToGraffiti(Gml gml, Graph graph)
          Constructs a new GmlToGraffiti.
 
Method Summary
 boolean hasParseErrors()
          Returns true if there were no errors detected during the parsing phase, false otherwise.
 Graph transform()
          Runs the transformation from Gml to Graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmlToGraffiti

public GmlToGraffiti(Gml gml,
                     Graph graph)
              throws GmlToGraffitiException
Constructs a new GmlToGraffiti.

Parameters:
gml - the GML graph to be transformed into a graffiti graph.
graph - the graph into which to add the GML declarations.
Throws:
GmlToGraffitiException - if the transformation fails.
Method Detail

hasParseErrors

public boolean hasParseErrors()
Returns true if there were no errors detected during the parsing phase, false otherwise.

Returns:
true if there were no errors detected during the parsing phase, false otherwise.

transform

public Graph transform()
                throws GmlToGraffitiException
Runs the transformation from Gml to Graph. The Gml instance is subsequently transformed into an instance of type Graph. The created graph will then be returned.

Returns:
the created graph.
Throws:
GmlToGraffitiException - if a fatal error is detected during the transformation.


Generated at 2012-05-30 11:01:25 PM CEST