|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WriteEventListener
Event listener for the WriteEvent.
This interface defines the available event callbacks for WriteEvents.
Implement this class if you want to be notified of specific steps in the write process (e.g. when a node element is about
to be written, or when writing the document has just been finished.
Implementations of this interface are usually registered on instances of WriteEventHandler
which are provided by GraphMLWriteContext or GraphMLWriter.
WriteEvent,
GraphMLWriter,
WriteEventHandler
| 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. |
| Method Detail |
|---|
void onDocumentWriting(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeStartDocument() has been called.
GraphMLWriteException
void onDocumentWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndDocument() will be called.
GraphMLWriteException
void onNodeWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onNodeWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'node' element
will be called.
This can be used to append more custom elements to the node element.
event - The event containing all necessary data
GraphMLWriteException
void onEdgeWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onEdgeWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'edge' element
will be called.
This can be used to append more custom elements to the edge element.
event - The event containing all necessary data
GraphMLWriteException
void onPortWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onPortWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'port' element
will be called.
This can be used to append more custom elements to the port element.
event - The event containing all necessary data
GraphMLWriteException
void onGraphWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onGraphWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'graph' element
will be called.
This can be used to append more custom elements to the graph element.
event - The event containing all necessary data
GraphMLWriteException
void onGraphMLWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onGraphMLWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'graphml' element
will be called.
This can be used to append more custom elements to the graphml element.
event - The event containing all necessary data
GraphMLWriteException
void onDataWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onDataWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'data' element
will be called.
This can be used to append more custom elements to the data element.
event - The event containing all necessary data
GraphMLWriteException
void onKeyWriting(WriteEvent event)
throws GraphMLWriteException
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
event - The event containing all necessary data
GraphMLWriteExceptionXmlWriter.writeAttribute(GraphMLXmlAttribute),
XmlWriter.writeAttribute(String, boolean),
XmlWriter.writeAttribute(String, double),
XmlWriter.writeAttribute(String, long),
XmlWriter.writeAttribute(String, String),
XmlWriter.writeAttribute(String, String, String, String)
void onKeyWritten(WriteEvent event)
throws GraphMLWriteException
XmlWriter.writeEndElement() for the GraphML 'key' element
will be called.
This can be used to append more custom elements to the key element.
event - The event containing all necessary data
GraphMLWriteException
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||