Search this API

y.io.graphml.input
Interface ParseEventListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ParseEventListenerAdapter

public interface ParseEventListener
extends java.util.EventListener

Event listener for the ParseEvent.

This interface defines the available event callbacks for ParseEvents. Implement this class if you want to be notified of specific steps in the parse process (e.g. when a node element is about to be parsed, or when parsing the document has just been finished.

Implementations of this interface are usually registered on instances of ParseEventHandler which are provided by GraphMLParseContext or GraphMLParser.

See Also:
ParseEvent, GraphMLParser, ParseEventHandler
 

Method Summary
 void onDataParsed(ParseEvent event)
          Occurs after a data element has been fully parsed.
 void onDataParsing(ParseEvent event)
          Occurs when a data element is about to be parsed.
 void onDocumentParsed(ParseEvent event)
          Occurs when the document has been parsed.
 void onDocumentParsing(ParseEvent event)
          Occurs when the document is about to be parsed.
 void onEdgeParsed(ParseEvent event)
          Occurs after a edge element has been fully parsed.
 void onEdgeParsing(ParseEvent event)
          Occurs when an edge element is about to be parsed.
 void onGraphMLParsed(ParseEvent event)
          Occurs after the graphml element has been fully parsed.
 void onGraphMLParsing(ParseEvent event)
          Occurs when the graphml element is about to be parsed.
 void onGraphParsed(ParseEvent event)
          Occurs after a graph element has been fully parsed.
 void onGraphParsing(ParseEvent event)
          Occurs when a graph element is about to be parsed.
 void onKeyParsed(ParseEvent event)
          Occurs after a key element has been fully parsed.
 void onKeyParsing(ParseEvent event)
          Occurs when a key element is about to be parsed.
 void onNodeParsed(ParseEvent event)
          Occurs after a node element has been fully parsed.
 void onNodeParsing(ParseEvent event)
          Occurs when a node element is about to be parsed.
 void onPortParsed(ParseEvent event)
          Occurs after a port element has been fully parsed.
 void onPortParsing(ParseEvent event)
          Occurs when a port element is about to be parsed.
 

Method Detail

onDocumentParsing

void onDocumentParsing(ParseEvent event)
                       throws GraphMLParseException
Occurs when the document is about to be parsed.

This callback is triggered when the document element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onDocumentParsed

void onDocumentParsed(ParseEvent event)
                      throws GraphMLParseException
Occurs when the document has been parsed.

This callback is triggered when the document has been fully parsed.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onNodeParsing

void onNodeParsing(ParseEvent event)
                   throws GraphMLParseException
Occurs when a node element is about to be parsed.

This callback is triggered when a GraphML 'node' element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onNodeParsed

void onNodeParsed(ParseEvent event)
                  throws GraphMLParseException
Occurs after a node element has been fully parsed.

This callback is triggered when a GraphML 'node' closing tag has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onEdgeParsing

void onEdgeParsing(ParseEvent event)
                   throws GraphMLParseException
Occurs when an edge element is about to be parsed.

This callback is triggered when a GraphML 'edge' element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onEdgeParsed

void onEdgeParsed(ParseEvent event)
                  throws GraphMLParseException
Occurs after a edge element has been fully parsed.

This callback is triggered when a GraphML 'edge' closing tag has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onPortParsing

void onPortParsing(ParseEvent event)
                   throws GraphMLParseException
Occurs when a port element is about to be parsed.

This callback is triggered when a GraphML 'port' element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onPortParsed

void onPortParsed(ParseEvent event)
                  throws GraphMLParseException
Occurs after a port element has been fully parsed.

This callback is triggered when a GraphML 'port' closing tag has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onGraphParsing

void onGraphParsing(ParseEvent event)
                    throws GraphMLParseException
Occurs when a graph element is about to be parsed.

This callback is triggered when a GraphML 'graph' element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onGraphParsed

void onGraphParsed(ParseEvent event)
                   throws GraphMLParseException
Occurs after a graph element has been fully parsed.

This callback is triggered when a GraphML 'graph' closing tag has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onGraphMLParsing

void onGraphMLParsing(ParseEvent event)
                      throws GraphMLParseException
Occurs when the graphml element is about to be parsed.

This callback is triggered when a GraphML 'graphml' root-element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onGraphMLParsed

void onGraphMLParsed(ParseEvent event)
                     throws GraphMLParseException
Occurs after the graphml element has been fully parsed.

This callback is triggered when a GraphML 'graphml' closing tag has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onDataParsing

void onDataParsing(ParseEvent event)
                   throws GraphMLParseException
Occurs when a data element is about to be parsed.

This callback is triggered when a GraphML 'data' element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onDataParsed

void onDataParsed(ParseEvent event)
                  throws GraphMLParseException
Occurs after a data element has been fully parsed.

This callback is triggered when a GraphML 'data' element has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onKeyParsing

void onKeyParsing(ParseEvent event)
                  throws GraphMLParseException
Occurs when a key element is about to be parsed.

This callback is triggered when a GraphML 'key' element has been encountered.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

onKeyParsed

void onKeyParsed(ParseEvent event)
                 throws GraphMLParseException
Occurs after a key element has been fully parsed.

This callback is triggered when a GraphML 'key' element has been handled.

Parameters:
event - The data of the event
Throws:
GraphMLParseException

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