Package | com.yworks.io.graphml.writer.serializer |
Class | public class AbstractTemplateStyleSerializer |
Inheritance | AbstractTemplateStyleSerializer AbstractSerializer Object |
Subclasses | TemplateLabelStyleSerializer, TemplateNodeStyleSerializer |
ITemplateStyle
implementors.
Subclasses have to override the methods canHandle()
and get elementName
.
Property | Defined By | ||
---|---|---|---|
elementName : String [read-only]
The element name of the toplevel XmlElement for the serialized representation of this object. | AbstractSerializer | ||
instance : AbstractTemplateStyleSerializer [static] [read-only]
The shared instance. | AbstractTemplateStyleSerializer | ||
xmlNamespace : Namespace [read-only]
returns the yworks namespace
| AbstractSerializer |
Method | Defined By | ||
---|---|---|---|
[override]
Writes the below element. | AbstractTemplateStyleSerializer |
instance | property |
instance:AbstractTemplateStyleSerializer
[read-only] The shared instance.
public static function get instance():AbstractTemplateStyleSerializer
serializeContent | () | method |
override protected function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Writes the below element. The element name (here: TemplateStyle) is the
String which is returned from the elementName
property.
<y:TemplateStyle
templateClass=".."
(userTagProvider="..")
dataPropertyName=""
contextPropertyName=""
hideSelectionPaintable="">
(<y:TagProvider>
..
</y:TagProvider>)
<y:StyleTag>
..
</y:StyleTag>
</y:TemplateStyle>
Parameters
context:GraphMLWriteContext — The write context.
| |
subject:Object — The object to serialize.
| |
writer:IXmlWriter — The writer to write to.
|