Packagecom.yworks.io.graphml.reader.deserializer
Classpublic class CSSLabelStyleDeserializer
InheritanceCSSLabelStyleDeserializer Inheritance AbstractDeserializer Inheritance Object

A deserializer that deserializes ISimpleLabelStyle instances.

A shared instance can be retrieved using instance.

This Deserializer can handle the following XML:

	 <y:CSSLabelStyle styleName="...">
	   <y:StyleSheet url="...">style { property: value; }</y:StyleSheet>
	 </y:CSSLabelStyle>
	 



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The local tag name that this Deserializer can claim to handle
CSSLabelStyleDeserializer
  instance : CSSLabelStyleDeserializer
[static] [read-only] The shared instance of this deserializer.
CSSLabelStyleDeserializer
  xmlNamespace : Namespace
[override] [read-only] The XmlNamespace that this Deserializer can claim to handle
CSSLabelStyleDeserializer
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
CSSLabelStyleDeserializer
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:CSSLabelStyleDeserializer  [read-only]

The shared instance of this deserializer.


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

The XmlNamespace that this Deserializer can claim to handle


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