Packagecom.yworks.io.binary
Classpublic class ObjectSerializer
InheritanceObjectSerializer Inheritance AbstractSerializer Inheritance Object

A serialized that will simply put any objects that have to be serialized using the AMF format into the List passed upon initialization.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] returns "AMFObject".
ObjectSerializer
 InheritedxmlNamespace : Namespace
[read-only] returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined By
  
Create a new instance that will put any Objects that are to be serialized using the AMF format into the provided list.
ObjectSerializer
  
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
[override] Returns true, unless subject is null.
ObjectSerializer
 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
[override] Puts the given subject into the List that was passed upon initialization, unless it is already contained in the List.
ObjectSerializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

returns "AMFObject".


Implementation
    public function get elementName():String
Constructor Detail
ObjectSerializer()Constructor
public function ObjectSerializer(objectList:List)

Create a new instance that will put any Objects that are to be serialized using the AMF format into the provided list.

Parameters
objectList:List
Method Detail
canHandle()method
override public function canHandle(context:GraphMLWriteContext, subject:Object):Boolean

Returns true, unless subject is null.

Parameters

context:GraphMLWriteContext
 
subject:Object

Returns
Boolean
serializeContent()method 
override protected function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Puts the given subject into the List that was passed upon initialization, unless it is already contained in the List. Writes the corresponding list index as an attribute.

Parameters

context:GraphMLWriteContext
 
subject:Object
 
writer:IXmlWriter