|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializationHandler
Event listener interface for SerializationEvent
s.
Implementing this interface allows to perform custom serialization code for the data contained in
SerializationEvent.getItem()
.
Implementations can be registered with GraphMLHandler.addSerializationHandler(y.io.graphml.output.SerializationHandler)
or GraphMLWriter.addSerializationHandler(y.io.graphml.output.SerializationHandler)
or directly
for a specific attribute with ComplexDataProviderOutputHandler.setSerializer(SerializationHandler)
.
Calls to GraphMLWriteContext.serialize(Object)
ultimately raise a SerializationEvent
,
which can be handled be registered implementations of this interface.
Method Summary | |
---|---|
void |
onHandleSerialization(SerializationEvent event)
Callback method to handle the serialization of the data contained in event . |
Method Detail |
---|
void onHandleSerialization(SerializationEvent event) throws GraphMLWriteException
event
.
If this callback could serialize the data in event
, it should set the SerializationEvent.setHandled(boolean)
property to true
to prevent further serialization code from processing this data.
event
- Event that contains all data that is needed for serialization.
GraphMLWriteException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |