Packagecom.yworks.io.graphml.writer
Interfacepublic interface ISerializer
ImplementorsAbstractSerializer

Common interface for all classes that can serialize an object

It is advised that implementors use abstract implementation classes like AbstractSerializer instead as base classes.



Public Properties
 PropertyDefined by
  elementName : String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object
ISerializer
  xmlNamespace : Namespace
[read-only] The XmlNamespace that should be used for this serializer
ISerializer
Public Methods
 MethodDefined by
  
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object
ISerializer
  
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter
ISerializer
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]

The XmlNamespace that should be used for this serializer

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

See also