Packagecom.yworks.io.graphml.writer.serializer
Classpublic class TemplateNodeStyleSerializer
InheritanceTemplateNodeStyleSerializer Inheritance AbstractTemplateStyleSerializer Inheritance AbstractSerializer Inheritance Object

A serializer which can handle TemplateNodeStyle. Delegates most of the work to the AbstractTemplateStyleSerializer.

This serializer writes the following element:

	 <y:TemplateNodeStyle 
     		templateClass=".." 
     		(userTagProvider="..") 
     		dataPropertyName="" 
     		contextPropertyName=""
     		hideSelectionPaintable="">  
     
      	(<y:TagProvider>
     			..
     		</y:TagProvider>)
     	
     		<y:StyleTag>
     			..
     		</y:StyleTag>
     
     </y:TemplateStyle>
     



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The element name of the toplevel XmlElement for the serialized representation of this object.
TemplateNodeStyleSerializer
  instance : TemplateNodeStyleSerializer
[static] [read-only] The shared instance.
TemplateNodeStyleSerializer
 InheritedxmlNamespace : Namespace
[read-only] returns the yworks namespace
AbstractSerializer
Public Methods
 MethodDefined By
  
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
[override] Return whether this serializer can handle a specific object.
TemplateNodeStyleSerializer
 Inherited
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter.
AbstractSerializer
Protected Methods
 MethodDefined By
 Inherited
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
[override] Writes the below element.
AbstractTemplateStyleSerializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

The element name of the toplevel XmlElement for the serialized representation of this object.


Implementation
    public function get elementName():String
instanceproperty 
instance:TemplateNodeStyleSerializer  [read-only]

The shared instance.


Implementation
    public static function get instance():TemplateNodeStyleSerializer
Method Detail
canHandle()method
override public function canHandle(context:GraphMLWriteContext, subject:Object):Boolean

Return whether this serializer can handle a specific object.

Parameters

context:GraphMLWriteContext — The write context.
 
subject:Object — The object which is tested

Returns
Booleantrue if the serializer can handle the subject