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

java.lang.Object
  extended byy.io.graphml.output.AbstractSerializer
      extended bycom.yworks.yfiles.server.graphml.flexio.serializer.ArraySerializer
All Implemented Interfaces:
java.util.EventListener, SerializationHandler

public class ArraySerializer
extends AbstractSerializer

This serializer can be used to serialize an array of any component class type. There has to be a serializer registered that can handle the entries of the array. Furthermore the package of the component class has either to be 'java.lang' or to be mapped to an symbolic package name in the SymbolicPackageNameRegistry.

See Also:
SymbolicPackageNameRegistry

Constructor Summary
ArraySerializer()
           
 
Method Summary
 boolean canHandle(SerializationEvent e)
           
 void serializeItem(java.lang.Object item, XmlWriter writer, GraphMLWriteContext context)
           
 
Methods inherited from class y.io.graphml.output.AbstractSerializer
onHandleSerialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySerializer

public ArraySerializer()
Method Detail

serializeItem

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

canHandle

public boolean canHandle(SerializationEvent e)


Copyright © 2000-2013 yWorks GmbH. All rights reserved