Packagecom.yworks.io.graphml.writer
Classpublic class ObjectMapperAttributeOutputHandler
InheritanceObjectMapperAttributeOutputHandler Inheritance AbstractOutputHandler Inheritance Object

Output handler for writing complex mapper data using a provided ISerializer instance.



Public Methods
 MethodDefined By
  
ObjectMapperAttributeOutputHandler(tag:Object, serializer:ISerializer = null)
Create a new instance that will retrieve the complex mapper data from the graph using the provided mapper tag and serialize the data using the provided serializer instance.
ObjectMapperAttributeOutputHandler
 Inherited
This implementation does nothing.
AbstractOutputHandler
  
[override] This implementation returns false
ObjectMapperAttributeOutputHandler
 Inherited
This implementation does nothing.
AbstractOutputHandler
 Inherited
Forwards to printItemDataOutput, passing the current item contained in the context.
AbstractOutputHandler
  
printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):void
[override] Writes the data out using the given writer.
ObjectMapperAttributeOutputHandler
  
[override] This method has to be overridden by subclass implementations.
ObjectMapperAttributeOutputHandler
 Inherited
Write the element content of the key tag for this graphml attribute
AbstractOutputHandler
Constructor Detail
ObjectMapperAttributeOutputHandler()Constructor
public function ObjectMapperAttributeOutputHandler(tag:Object, serializer:ISerializer = null)

Create a new instance that will retrieve the complex mapper data from the graph using the provided mapper tag and serialize the data using the provided serializer instance.

Parameters
tag:Object — The tag that will be used to retrieve the mapper instance from the graph's mapperRegistry
 
serializer:ISerializer (default = null) — The serializer instance that will be used for writing the data.
Method Detail
isDefaultData()method
override public function isDefaultData(context:GraphMLWriteContext):Boolean

This implementation returns false

Parameters

context:GraphMLWriteContext

Returns
Boolean
printItemDataOutput()method 
override 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 
override 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.