com.yworks.yfiles.server.graphml.flexio
Interface ISerializer

All Known Implementing Classes:
AbstractSerializer

public interface ISerializer

Common interface for all classes that can serialize an object

It is advised that implementors use abstract implementation classes like AbstractSerializer instead as base classes.


Method Summary
 boolean canHandle(GraphMLWriteContext context, Object subject)
          Return whether this serializer can handle the given object
 void serialize(GraphMLWriteContext context, Object subject, XmlWriter writer)
          Serialize the given object to a XmlWriter.
 

Method Detail

serialize

public void serialize(GraphMLWriteContext context,
                      Object subject,
                      XmlWriter writer)
Serialize the given object to a XmlWriter.

Parameters:
context - The current write context
subject - The object to be serialized
writer - The writer instance for writing the xml data.

canHandle

public boolean canHandle(GraphMLWriteContext context,
                         Object subject)
Return whether this serializer can handle the given object

Parameters:
context - The current wirte context
subject - The object to be serialized
Returns:
true if the serializer can serilaize the object


Copyright © 2000-2007 yWorks GmbH. All rights reserved