| Package | com.yworks.io.graphml.reader.deserializer |
| Class | public class FillDeserializer |
| Inheritance | FillDeserializer AbstractDeserializer Object |
IFill instances.
A shared instance can be retrieved using instance.
Note: Currently, only SolidColor and LinearGradient fills are supported.
| Property | Defined By | ||
|---|---|---|---|
| elementName : String [override] [read-only]
The local tag name that this Deserializer can claim to handle
| FillDeserializer | ||
| instance : FillDeserializer [static] [read-only]
The shared instance of this deserializer. | FillDeserializer | ||
| xmlNamespace : Namespace [override] [read-only]
The XmlNamespace that this Deserializer can claim to handle. | FillDeserializer | ||
| Method | Defined By | ||
|---|---|---|---|
canHandle(context:GraphMLParseContext, element:XML):Boolean [override]
Returns whether a deserializer can handle a specific xml element. | FillDeserializer | ||
deserialize(context:GraphMLParseContext, element:XML):Object [override]
Create a new instance from the
xml element
| FillDeserializer | ||
| elementName | property |
elementName:String [read-only] [override] The local tag name that this Deserializer can claim to handle
public function get elementName():String| instance | property |
instance:FillDeserializer [read-only] The shared instance of this deserializer.
public static function get instance():FillDeserializer| 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| canHandle | () | method |
override public function canHandle(context:GraphMLParseContext, element:XML):BooleanReturns whether a deserializer can handle a specific xml element. This implementation returns true, if
elementNamexmlNamespacerefid attribute.Parameters
context:GraphMLParseContext — The current parse context
| |
element:XML — The xml element being parsed.
|
Boolean — Whether this deserializer will be able to parse the given xml element.
|
| deserialize | () | method |
override public function deserialize(context:GraphMLParseContext, element:XML):ObjectCreate a new instance from the xml element
Parameters
context:GraphMLParseContext — The current parse context
| |
element:XML — The current xml element
|
Object — A new instance
|