Search this API

y.io.graphml.output
Class WriteEventListenerAdapter

java.lang.Object
  extended by y.io.graphml.output.WriteEventListenerAdapter
All Implemented Interfaces:
java.util.EventListener, WriteEventListener

public class WriteEventListenerAdapter
extends java.lang.Object
implements WriteEventListener

Stub implementation class for interface WriteEventListener that implements all methods with no-op implementations.

 
Your browser does not support SVG content.

Constructor Summary
WriteEventListenerAdapter()
           
 
Method Summary
 void onDataWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'data' element has been called.
 void onDataWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'data' element will be called.
 void onDocumentWriting(WriteEvent event)
          Occurs just after the XmlWriter.writeStartDocument() has been called.
 void onDocumentWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndDocument() will be called.
 void onEdgeWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'edge' element has been called.
 void onEdgeWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'edge' element will be called.
 void onGraphMLWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'graphml' element has been called.
 void onGraphMLWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'graphml' element will be called.
 void onGraphWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'graph' element has been called.
 void onGraphWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'graph' element will be called.
 void onKeyWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'key' element has been called.
 void onKeyWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'key' element will be called.
 void onNodeWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphML 'node' element has been called.
 void onNodeWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'node' element will be called.
 void onPortWriting(WriteEvent event)
          Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'port' element has been called.
 void onPortWritten(WriteEvent event)
          Occurs just before the XmlWriter.writeEndElement() for the GraphML 'port' element will be called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteEventListenerAdapter

public WriteEventListenerAdapter()
Method Detail

onDocumentWriting

public void onDocumentWriting(WriteEvent event)
                       throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just after the XmlWriter.writeStartDocument() has been called.

Specified by:
onDocumentWriting in interface WriteEventListener
Throws:
GraphMLWriteException

onDocumentWritten

public void onDocumentWritten(WriteEvent event)
                       throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndDocument() will be called.

Specified by:
onDocumentWritten in interface WriteEventListener
Throws:
GraphMLWriteException

onNodeWriting

public void onNodeWriting(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphML 'node' element has been called.

At that state, callees can use XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onNodeWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onNodeWritten

public void onNodeWritten(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'node' element will be called.

This can be used to append more custom elements to the node element.

Specified by:
onNodeWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

onEdgeWriting

public void onEdgeWriting(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'edge' element has been called.

At that state, callees can use one of XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onEdgeWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onEdgeWritten

public void onEdgeWritten(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'edge' element will be called.

This can be used to append more custom elements to the edge element.

Specified by:
onEdgeWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

onPortWriting

public void onPortWriting(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'port' element has been called.

At that state, callees can use one of XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onPortWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onPortWritten

public void onPortWritten(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'port' element will be called.

This can be used to append more custom elements to the port element.

Specified by:
onPortWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

onGraphWriting

public void onGraphWriting(WriteEvent event)
                    throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'graph' element has been called.

At that state, callees can use one of XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onGraphWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onGraphWritten

public void onGraphWritten(WriteEvent event)
                    throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'graph' element will be called.

This can be used to append more custom elements to the graph element.

Specified by:
onGraphWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

onGraphMLWriting

public void onGraphMLWriting(WriteEvent event)
                      throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'graphml' element has been called.

At that state, callees can use one of XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onGraphMLWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onGraphMLWritten

public void onGraphMLWritten(WriteEvent event)
                      throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'graphml' element will be called.

This can be used to append more custom elements to the graphml element.

Specified by:
onGraphMLWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

onDataWriting

public void onDataWriting(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'data' element has been called.

At that state, callees can use one of XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onDataWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onDataWritten

public void onDataWritten(WriteEvent event)
                   throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'data' element will be called.

This can be used to append more custom elements to the data element.

Specified by:
onDataWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

onKeyWriting

public void onKeyWriting(WriteEvent event)
                  throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs right after the XmlWriter.writeStartElement(String,String,String) method for writing a GraphMl 'key' element has been called.

At that state, callees can use one of XmlWriter's writeAttribute methods to add custom attributes to the XML element or write a first custom inner element

Specified by:
onKeyWriting in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException
See Also:
XmlWriter.writeAttribute(GraphMLXmlAttribute), XmlWriter.writeAttribute(String, boolean), XmlWriter.writeAttribute(String, double), XmlWriter.writeAttribute(String, long), XmlWriter.writeAttribute(String, String), XmlWriter.writeAttribute(String, String, String, String)

onKeyWritten

public void onKeyWritten(WriteEvent event)
                  throws GraphMLWriteException
Description copied from interface: WriteEventListener
Occurs just before the XmlWriter.writeEndElement() for the GraphML 'key' element will be called.

This can be used to append more custom elements to the key element.

Specified by:
onKeyWritten in interface WriteEventListener
Parameters:
event - The event containing all necessary data
Throws:
GraphMLWriteException

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