|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.output.AbstractSerializer y.io.graphml.output.TypeBasedSerializer com.yworks.yfiles.server.graphml.flexio.serializer.AbstractSerializer
Abstract subclass of TypeBasedSerializer
that writes the element tags for its subclasses
and delegates to AbstractSerializer.serializeItem(Object, y.io.graphml.output.XmlWriter, y.io.graphml.output.GraphMLWriteContext)
for the core serialization.
Constructor Summary | |
AbstractSerializer()
|
Method Summary | |
abstract java.lang.String |
getElementName(GraphMLWriteContext context)
The local name of the serialized element node. |
java.lang.String |
getNamespace(GraphMLWriteContext context)
The namespace of the serialized element node. |
void |
onHandleSerialization(SerializationEvent event)
This implementation checks if TypeBasedSerializer.canHandle(y.io.graphml.output.SerializationEvent) returns true
for the supplied event argument, in which case it:
writes the outer xml element with name getElementName(y.io.graphml.output.GraphMLWriteContext) and
namespace getNamespace(y.io.graphml.output.GraphMLWriteContext) ,
calls AbstractSerializer.serializeItem(Object, y.io.graphml.output.XmlWriter , y.io.graphml.output.GraphMLWriteContext) ,
and sets SerializationEvent.setHandled(boolean) to true . |
Methods inherited from class y.io.graphml.output.TypeBasedSerializer |
canHandle, getSerializationType |
Methods inherited from class y.io.graphml.output.AbstractSerializer |
serializeItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractSerializer()
Method Detail |
public void onHandleSerialization(SerializationEvent event) throws GraphMLWriteException
TypeBasedSerializer.canHandle(y.io.graphml.output.SerializationEvent)
returns true
for the supplied event argument, in which case it:
getElementName(y.io.graphml.output.GraphMLWriteContext)
and
namespace getNamespace(y.io.graphml.output.GraphMLWriteContext)
,AbstractSerializer.serializeItem(Object, y.io.graphml.output.XmlWriter , y.io.graphml.output.GraphMLWriteContext)
, SerializationEvent.setHandled(boolean)
to true
.TypeBasedSerializer.canHandle(y.io.graphml.output.SerializationEvent)
returns false
, no action is performed.
event
- The event to handle
GraphMLWriteException
- if something went wrong in the serialization process.public abstract java.lang.String getElementName(GraphMLWriteContext context)
context
- The write context.
public java.lang.String getNamespace(GraphMLWriteContext context)
context
- The write context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |