Packagecom.yworks.io.graphml.writer
Classpublic class AbstractOutputHandler
InheritanceAbstractOutputHandler Inheritance Object
Implements IOutputHandler
Subclasses EdgeStyleOutputHandler, LabelOutputHandler, NodeInsetsOutputHandler, NodeStyleOutputHandler, ObjectMapperAttributeOutputHandler, PortLocationModelOutputHandler, PortStyleOutputHandler, WriteEdgeLayoutHandler, WriteEdgeRealizerHandler, WriteNodeLayoutHandler, WriteNodeRealizerHandler, WritePortLayoutHandler

Abstract base class for classes that write output into GraphML data elements.



Public Methods
 MethodDefined By
  
This implementation does nothing.
AbstractOutputHandler
  
This implementation returns false
AbstractOutputHandler
  
This implementation does nothing.
AbstractOutputHandler
  
Forwards to printItemDataOutput, passing the current item contained in the context.
AbstractOutputHandler
  
printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):void
Writes the data out using the given writer.
AbstractOutputHandler
  
This method has to be overridden by subclass implementations.
AbstractOutputHandler
  
Write the element content of the key tag for this graphml attribute
AbstractOutputHandler
Method Detail
getKeyAttributes()method
public function getKeyAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

This implementation does nothing.

Parameters

context:GraphMLWriteContext
 
writer:IXmlWriter

isDefaultData()method 
public function isDefaultData(context:GraphMLWriteContext):Boolean

This implementation returns false

Parameters

context:GraphMLWriteContext

Returns
Boolean
printDataAttributes()method 
public function printDataAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

This implementation does nothing. Write the XML attributes of a data tag

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.

printDataOutput()method 
public function printDataOutput(context:GraphMLWriteContext, writer:IXmlWriter):void

Forwards to printItemDataOutput, passing the current item contained in the context. Write the element content of a data tag

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.

printItemDataOutput()method 
public function printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):void

Writes the data out using the given writer. This method has to be overridden by subclass implementations.

Parameters

context:GraphMLWriteContext — The current write context.
 
graph:IGraph — The current graph in the context.
 
item:Object — The current item (graph/node/edge) in the context.
 
writer:IXmlWriter — The writer to write to.

printKeyAttributes()method 
public function printKeyAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

This method has to be overridden by subclass implementations. Write the XML attributes of the key tag for this graphml attribute

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.

printKeyOutput()method 
public function printKeyOutput(context:GraphMLWriteContext, writer:IXmlWriter):void

Write the element content of the key tag for this graphml attribute

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.