Packagecom.yworks.io.graphml.writer.serializer
Classpublic class ShapeNodeStyleSerializer
InheritanceShapeNodeStyleSerializer Inheritance AbstractSerializer Inheritance Object

An ISerializer implementation that serializes ShapeNodeStyles. Note that this serializer will try to convert ShapeNodeShape constants that are only known by yFiles Java to ShapeNodeShape constants that are known by yFiles.NET.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only]
ShapeNodeStyleSerializer
  instance : ShapeNodeStyleSerializer
[static] [read-only] The shared instance of this serializer
ShapeNodeStyleSerializer
 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.
ShapeNodeStyleSerializer
 Inherited
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter.
AbstractSerializer
Protected Methods
 MethodDefined By
  
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
[override] Write the content of the graphml element that corresponds to the serialization of subject.
ShapeNodeStyleSerializer
Public Constants
 ConstantDefined By
  SHAPE_TAG : String = Shape
[static] The shape tag's element name
ShapeNodeStyleSerializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]


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

The shared instance of this serializer


Implementation
    public static function get instance():ShapeNodeStyleSerializer
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
serializeContent()method 
override protected function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Write the content of the graphml element that corresponds to the serialization of subject.

Parameters

context:GraphMLWriteContext — The current write context.
 
subject:Object — The current object to be serialized.
 
writer:IXmlWriter — The xml writer.

Constant Detail
SHAPE_TAGConstant
public static const SHAPE_TAG:String = Shape

The shape tag's element name