com.yworks.yfiles.server.graphml.flexio.serializer
Class AbstractTemplateStyleSerializer

java.lang.Object
  extended byy.io.graphml.output.AbstractSerializer
      extended byy.io.graphml.output.TypeBasedSerializer
          extended bycom.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
              extended bycom.yworks.yfiles.server.graphml.flexio.serializer.AbstractTemplateStyleSerializer
All Implemented Interfaces:
java.util.EventListener, SerializationHandler
Direct Known Subclasses:
TemplateLabelStyleSerializer, TemplateNodeStyleSerializer

public abstract class AbstractTemplateStyleSerializer
extends AbstractSerializer

Abstract base class for serializers which handle TemplateStyle subclasses.

Subclasses have to override the methods TypeBasedSerializer.getSerializationType(y.io.graphml.output.GraphMLWriteContext) and AbstractSerializer.getElementName(y.io.graphml.output.GraphMLWriteContext).


Constructor Summary
AbstractTemplateStyleSerializer()
           
 
Method Summary
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
          Writes the below element.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
getElementName, getNamespace, onHandleSerialization
 
Methods inherited from class y.io.graphml.output.TypeBasedSerializer
canHandle, getSerializationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTemplateStyleSerializer

public AbstractTemplateStyleSerializer()
Method Detail

serializeItem

public void serializeItem(java.lang.Object item,
                          XmlWriter writer,
                          GraphMLWriteContext context)
                   throws GraphMLWriteException
Writes the below element. The element name (here: TemplateStyle) is the String which is returned by AbstractSerializer.getElementName(y.io.graphml.output.GraphMLWriteContext). <y:TemplateStyle templateClass=".." (userTagProvider="..") dataPropertyName="" contextPropertyName="" hideSelectionPaintable=""> (<y:TagProvider> .. </y:TagProvider>) <y:StyleTag> .. </y:StyleTag> </y:TemplateStyle>

Parameters:
item - The object to serialize
writer - The writer to write to.
context - The write context.
Throws:
GraphMLWriteException


Copyright © 2000-2013 yWorks GmbH. All rights reserved