Package | com.yworks.io.graphml.reader.deserializer |
Class | public class DelegatingStyleDeserializer |
Inheritance | DelegatingStyleDeserializer AbstractDeserializer Object |
Subclasses | FilterNodeStyleDeserializer |
IDelegatingStyle
instances.
Subclasses have to override the deserializeStyle()
method and
the elementName
property.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
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 |
Method | Defined By | ||
---|---|---|---|
Creates the style instance and deserializes the style's properties. | DelegatingStyleDeserializer |
elementName | property |
elementName:String
[read-only] [override] Subclasses have to override this. The local tag name that this Deserializer can claim to handle
public function get elementName():String
xmlNamespace | property |
xmlNamespace:Namespace
[read-only] [override] The XmlNamespace that this Deserializer can claim to handle.
This method needs to be overridden by subclass implementations.
public function get xmlNamespace():Namespace
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
|
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.
|
Object — The deserialized style.
|