Packagecom.yworks.io.graphml.writer
Classpublic class AbstractSerializer
InheritanceAbstractSerializer Inheritance Object
Implements ISerializer
Subclasses AbstractArrowSerializer, AbstractEdgeStyleSerializer, AbstractTemplateStyleSerializer, BevelNodeStyleSerializer, BitmapNodeStyleSerializer, CSSLabelStyleSerializer, DelegatingStyleSerializer, FillSerializer, FontSerializer, GeneralPathNodeStyleSerializer, GeneralPathSerializer, ImageIconSerializer, ImageNodeStyleSerializer, ImageSerializer, NodeStyleLabelStyleAdapterSerializer, NodeViewStateSerializer, ObjectSerializer, ShapeNodeStyleSerializer, SimpleLabelStyleSerializer, SimplePortStyleSerializer, SWFNodeStyleSerializer, TagOwnerUserTagProviderSerializer, TextLayoutFormatSerializer

Stub implementation of ISerializer



Public Properties
 PropertyDefined By
  elementName : String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object.
AbstractSerializer
  xmlNamespace : Namespace
[read-only] returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined By
  
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object.
AbstractSerializer
  
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.
AbstractSerializer
Property Detail
elementNameproperty
elementName:String  [read-only]

The element name of the toplevel XmlElement for the serialized representation of this object.


Implementation
    public function get elementName():String
xmlNamespaceproperty 
xmlNamespace:Namespace  [read-only]

returns the yworks namespace


Implementation
    public function get xmlNamespace():Namespace
Method Detail
canHandle()method
public function canHandle(context:GraphMLWriteContext, subject:Object):Boolean

Return whether this serializer can handle a specific object.

Parameters

context:GraphMLWriteContext — The write context.
 
subject:Object — The object which is tested

Returns
Booleantrue if the serializer can handle the subject
serialize()method 
public function serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Serialize the given style to a IXmlWriter.

Parameters

context:GraphMLWriteContext — The current write context
 
subject:Object — The actual object
 
writer:IXmlWriter — An IXmlWriter instance where the output is written

serializeContent()method 
protected 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.