com.yworks.yfiles.server.graphml.flexio.binary
Class ObjectSerializer

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.binary.ObjectSerializer
All Implemented Interfaces:
java.util.EventListener, SerializationHandler

public class ObjectSerializer
extends AbstractSerializer


Constructor Summary
ObjectSerializer(java.util.List objectList)
           
 
Method Summary
 boolean canHandle(SerializationEvent serializationEvent)
           
 java.lang.String getElementName(GraphMLWriteContext context)
          Returns the local name that shall be used for the serialized element node.
protected  java.lang.Class getSerializationType(GraphMLWriteContext context)
          Gets the type for which this instance should handle serialization.
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
           
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
getNamespace, onHandleSerialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSerializer

public ObjectSerializer(java.util.List objectList)
Method Detail

getElementName

public java.lang.String getElementName(GraphMLWriteContext context)
Returns the local name that shall be used for the serialized element node.

Specified by:
getElementName in class AbstractSerializer
Parameters:
context - The write context.
Returns:
"AMFObject"

serializeItem

public void serializeItem(java.lang.Object item,
                          XmlWriter writer,
                          GraphMLWriteContext context)
                   throws GraphMLWriteException
Throws:
GraphMLWriteException

canHandle

public boolean canHandle(SerializationEvent serializationEvent)

getSerializationType

protected java.lang.Class getSerializationType(GraphMLWriteContext context)
Gets the type for which this instance should handle serialization.

Parameters:
context - The current write context.
Returns:
Object.class


Copyright © 2000-2013 yWorks GmbH. All rights reserved