Packagecom.yworks.io.graphml.realizer
Classpublic class WriteNodeRealizerHandler
InheritanceWriteNodeRealizerHandler Inheritance AbstractOutputHandler Inheritance Object

Output handler that delegates serialization to INodeRealizerSerializer instances. This implementation first uses the ILookup interface to look up an IRealizerSerializer instance for each node. If no instance is found in the lookup, the RealizerSerializerManager is queried.



Public Methods
 MethodDefined By
 Inherited
This implementation does nothing.
AbstractOutputHandler
  
[override] This implementation returns false
WriteNodeRealizerHandler
 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.
WriteNodeRealizerHandler
  
[override] This method has to be overridden by subclass implementations.
WriteNodeRealizerHandler
  
[override] Write the element content of the key tag for this graphml attribute
WriteNodeRealizerHandler
Protected Methods
 MethodDefined By
  
Get an IRealizerSerializer instance for the given node.
WriteNodeRealizerHandler
  
writeNode(node:INode, writer:IXmlWriter, context:GraphMLWriteContext):void
Serialize the given node.
WriteNodeRealizerHandler
Method Detail
getRealizerSerializer()method
protected function getRealizerSerializer(node:INode, context:GraphMLWriteContext):INodeRealizerSerializer

Get an IRealizerSerializer instance for the given node.

Parameters

node:INode — The current node instance
 
context:GraphMLWriteContext — The current write context

Returns
INodeRealizerSerializer — An IRealizerSerializer instance or null.
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.

printKeyOutput()method 
override 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.

writeNode()method 
protected function writeNode(node:INode, writer:IXmlWriter, context:GraphMLWriteContext):void

Serialize the given node.

Parameters

node:INode
 
writer:IXmlWriter
 
context:GraphMLWriteContext