com.yworks.yfiles.server.graphml.flexio.serializer
Class CollectionSerializer
java.lang.Object
y.io.graphml.output.AbstractSerializer
y.io.graphml.output.TypeBasedSerializer
com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
com.yworks.yfiles.server.graphml.flexio.serializer.CollectionSerializer
- All Implemented Interfaces:
- java.util.EventListener, SerializationHandler
- public class CollectionSerializer
- extends AbstractSerializer
Serializer for Collection
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionSerializer
public CollectionSerializer()
getInstance
public static CollectionSerializer getInstance()
getElementName
public java.lang.String getElementName(GraphMLWriteContext context)
- Returns 'Collection'.
- Specified by:
getElementName
in class AbstractSerializer
- Parameters:
context
- The write context.
- Returns:
- 'Collection'
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:
- Collection.class.
serializeItem
public void serializeItem(java.lang.Object item,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
- Actually perform the serialization for the given arguments.
This method is called from
AbstractSerializer.onHandleSerialization(y.io.graphml.output.SerializationEvent)
if TypeBasedSerializer.canHandle(y.io.graphml.output.SerializationEvent)
returns true
.
- Parameters:
item
- The item to serialize.writer
- The writer for the output.context
- The current write context.
- Throws:
GraphMLWriteException
Copyright © 2000-2013 yWorks GmbH. All
rights reserved