Packagecom.yworks.io.graphml.reader.deserializer
Classpublic class AbstractEdgeStyleDeserializer
InheritanceAbstractEdgeStyleDeserializer Inheritance AbstractDeserializer Inheritance Object
Subclasses PolylineEdgeStyleDeserializer

Abstract implementation of IDeserializer for IEdgeStyle instances.

This class already provides stubs for the handling of source and target arrows.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The local tag name that this Deserializer can claim to handle
AbstractEdgeStyleDeserializer
  xmlNamespace : Namespace
[override] [read-only] The XmlNamespace that this Deserializer can claim to handle.
AbstractEdgeStyleDeserializer
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] Deserialize the data content of element.
AbstractEdgeStyleDeserializer
Protected Methods
 MethodDefined By
  
Deserialize an arrow element.
AbstractEdgeStyleDeserializer
  
Deserialize the style specific data content of element.
AbstractEdgeStyleDeserializer
  
setArrow(style:IEdgeStyle, arrow:IArrow, atSoure:Boolean):void
Set the arrow arrow to style.
AbstractEdgeStyleDeserializer
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
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

Deserialize the data content of element.

This method forwards the actual processing to deserializeStyle

Parameters

context:GraphMLParseContext — The current parse context
 
element:XML — The current XML object that represents the edge style

Returns
Object — A new instance of IEdgeStyle
deserializeArrow()method 
protected function deserializeArrow(context:GraphMLParseContext, style:IEdgeStyle, element:XML):IArrow

Deserialize an arrow element.

Parameters

context:GraphMLParseContext — The current parse context.
 
style:IEdgeStyle — The edge style.
 
element:XML — The arrow element.

Returns
IArrow — A new arrow instance or null, if no IDeserializer was found for the arrow element.
deserializeStyle()method 
protected function deserializeStyle(context:GraphMLParseContext, element:XML):IEdgeStyle

Deserialize the style specific data content of element.

Parameters

context:GraphMLParseContext — The current parse context
 
element:XML — The current XML object that represents the edge style

Returns
IEdgeStyle — A new instance of IEdgeStyle
setArrow()method 
protected function setArrow(style:IEdgeStyle, arrow:IArrow, atSoure:Boolean):void

Set the arrow arrow to style.

Parameters

style:IEdgeStyle — The edge style where the arrow should be set
 
arrow:IArrow — The arrow itself
 
atSoure:Boolean — Whether to set the source arrow (true) or target arrow.