Packagecom.yworks.io.graphml.reader.deserializer
Classpublic class StrokeDeserializer
InheritanceStrokeDeserializer Inheritance AbstractDeserializer Inheritance Object

Deserializer implementation that deserializes IStroke instances.

A shared instance can be retrieved with instance.

Note: Currently, only the Stroke implementation is supported.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The local tag name that this Deserializer can claim to handle
StrokeDeserializer
  instance : StrokeDeserializer
[static] [read-only]
StrokeDeserializer
  xmlNamespace : Namespace
[override] [read-only] The XmlNamespace that this Deserializer can claim to handle.
StrokeDeserializer
Public Methods
 MethodDefined By
 Inherited
canHandle(context:GraphMLParseContext, element:XML):Boolean
Returns whether a deserializer can handle a specific xml element.
AbstractDeserializer
  
deserialize(context:GraphMLParseContext, element:XML):Object
[override] Create a new instance from the xml element
StrokeDeserializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

The local tag name that this Deserializer can claim to handle


Implementation
    public function get elementName():String
instanceproperty 
instance:StrokeDeserializer  [read-only]


Implementation
    public static function get instance():StrokeDeserializer
xmlNamespaceproperty 
xmlNamespace:Namespace  [read-only] [override]

The XmlNamespace that this Deserializer can claim to handle.

This method needs to be overridden by subclass implementations.


Implementation
    public function get xmlNamespace():Namespace
Method Detail
deserialize()method
override public function deserialize(context:GraphMLParseContext, element:XML):Object

Create a new instance from the xml element

Parameters

context:GraphMLParseContext — The current parse context
 
element:XML — The current xml element

Returns
Object — A new instance