Packagecom.yworks.io.graphml.writer.serializer
Classpublic class ArraySerializer
InheritanceArraySerializer Inheritance Object
Implements ISerializer

A serializer that serializes Array objects. The entries of the array are written as XML children of an Array node ordered by their indices.



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

The shared instance of this serializer


Implementation
    public static function get instance():ArraySerializer
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 subject is of type Array
serialize()method 
public function serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Parameters

context:GraphMLWriteContext
 
subject:Object
 
writer:IXmlWriter