Packagecom.yworks.io.graphml.reader.deserializer
Classpublic class DelegatingStyleDeserializer
InheritanceDelegatingStyleDeserializer Inheritance AbstractDeserializer Inheritance Object
Subclasses FilterNodeStyleDeserializer

An abstract deserializer which faciliates the creation of deserializers for IDelegatingStyle instances.

Subclasses have to override the deserializeStyle() method and the elementName property.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] Subclasses have to override this.
DelegatingStyleDeserializer
  xmlNamespace : Namespace
[override] [read-only] The XmlNamespace that this Deserializer can claim to handle.
DelegatingStyleDeserializer
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] Deserializes the wrapped style which is expected in the <y:Wrapped> child element of the current element and calls deserializeStyle().
DelegatingStyleDeserializer
Protected Methods
 MethodDefined By
  
deserializeStyle(context:GraphMLParseContext, element:XML, wrapped:IVisualStyle):Object
Creates the style instance and deserializes the style's properties.
DelegatingStyleDeserializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

Subclasses have to override this. The local tag name that this Deserializer can claim to handle


Implementation
    public function get elementName():String
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

Deserializes the wrapped style which is expected in the <y:Wrapped> child element of the current element and calls deserializeStyle(). 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
deserializeStyle()method 
protected function deserializeStyle(context:GraphMLParseContext, element:XML, wrapped:IVisualStyle):Object

Creates the style instance and deserializes the style's properties.

Subclasses have to implement this method to return an instance of the style which is deserialized.

Parameters

context:GraphMLParseContext — The parse context.
 
element:XML — The XML element to deserialize.
 
wrapped:IVisualStyle — The style to wrap in the deserialized IDelegatingStyle instance.

Returns
Object — The deserialized style.