Packagecom.yworks.io.graphml.writer.serializer
Classpublic class AbstractEdgeStyleSerializer
InheritanceAbstractEdgeStyleSerializer Inheritance AbstractSerializer
SubclassesPolylineEdgeStyleSerializer

Abstract base class that should be used for all actual serializers for IEdgeStyles

This class provides hooks for serialization of style content and arrow handling



Public Properties
 PropertyDefined by
 InheritedelementName : String
The element name of the toplevel XmlElement for the serialized representation of this object
AbstractSerializer
 InheritedxmlNamespace : Namespace
returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined by
 Inherited
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object
AbstractSerializer
 Inherited
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter
AbstractSerializer
Protected Methods
 MethodDefined by
  
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Write the content of the graphml element that corresponds to the serialization of subject.
AbstractEdgeStyleSerializer
  
writeStyle(context:GraphMLWriteContext, style:IEdgeStyle, writer:IXmlWriter):void
Serialize the style itself (without arrows).
AbstractEdgeStyleSerializer
Method detail
serializeContent()method
protected override function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Write the content of the graphml element that corresponds to the serialization of subject.

Parameters
context:GraphMLWriteContext — The current write context.
 
subject:Object — The current object to be serialized.
 
writer:IXmlWriter — The xml writer.
writeStyle()method 
protected function writeStyle(context:GraphMLWriteContext, style:IEdgeStyle, writer:IXmlWriter):void

Serialize the style itself (without arrows).

This is the only method that implementors need to implement or override.

Parameters
context:GraphMLWriteContext — The current write context
 
style:IEdgeStyle — The actual Edge style
 
writer:IXmlWriter — The current output writer