Search this API

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.

 
Your browser does not support SVG content.

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

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

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

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

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-2022,
yWorks GmbH.
All rights reserved.