y.io.gml
Interface ParserFactory

All Known Implementing Classes:
DefaultHierarchicParserFactory, DefaultParserFactory

public interface ParserFactory

This is the interface which will be used by GMLIOHandler to query an appropriate Parser.


Method Summary
 GMLTokenizer.Callback createEdgeParser(Graph2D graph, GMLTokenizer.Callback graphParser)
          return a parser which is capable of parsing the graph.edge scope and putting the result into a graph
 GMLTokenizer.Callback createGMLParser(Graph2D graph)
          return a parser which is capable of parsing a gml stream and putting the result into a graph
 GMLTokenizer.Callback createGraphParser(Graph2D graph, GMLTokenizer.Callback gmlParser)
          return a parser which is capable of parsing the graph scope and putting the result into a graph
 GMLTokenizer.Callback createNodeParser(Graph2D graph, GMLTokenizer.Callback graphParser)
          return a parser which is capable of parsing the graph.node scope and putting the result into a graph
 

Method Detail

createGMLParser

public GMLTokenizer.Callback createGMLParser(Graph2D graph)
return a parser which is capable of parsing a gml stream and putting the result into a graph

Parameters:
graph - the graph which will be modified by this parser
Returns:
a parser

createGraphParser

public GMLTokenizer.Callback createGraphParser(Graph2D graph,
                                               GMLTokenizer.Callback gmlParser)
return a parser which is capable of parsing the graph scope and putting the result into a graph

Parameters:
graph - the graph which will be modified by this parser
Returns:
a parser

createNodeParser

public GMLTokenizer.Callback createNodeParser(Graph2D graph,
                                              GMLTokenizer.Callback graphParser)
return a parser which is capable of parsing the graph.node scope and putting the result into a graph

Parameters:
graph - the graph which will be modified by this parser
Returns:
a parser

createEdgeParser

public GMLTokenizer.Callback createEdgeParser(Graph2D graph,
                                              GMLTokenizer.Callback graphParser)
return a parser which is capable of parsing the graph.edge scope and putting the result into a graph

Parameters:
graph - the graph which will be modified by this parser
Returns:
a parser

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003