Search this API

y.io.graphml.input
Interface DeserializationHandler

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AbstractDeserializer, AbstractEdgeLayoutSerializer, AbstractNodeLayoutSerializer, AutoRotationSliderEdgeLabelModel.Handler, EdgeLabelDeserializer, EdgeLabelDeserializer.PreferredPlacementDescriptorDeserializer, EdgeLabelDeserializer.RotatedDiscreteEdgeLabelModelDeserializer, EdgeLabelDeserializer.RotatedSliderEdgeLabelModelDeserializer, EdgeLabelDeserializer.SmartEdgeLabelModelDeserializer, NameBasedDeserializer, NodeLabelDeserializer, NodeLabelDeserializer.SmartNodeLabelModelDeserializer, NodeScaledPortLocationModel.Handler, PortLabelModel.Handler, TableStyle.SimpleStyleDeserializer

public interface DeserializationHandler
extends java.util.EventListener

Event listener interface for DeserializationEvents.

Implementing this interface allows to perform custom deserialization code for the data contained in DeserializationEvent.getXmlNode().

Implementations can be registered with GraphMLHandler.addDeserializationHandler(DeserializationHandler) or GraphMLParser.addDeserializationHandler(DeserializationHandler) or directly for a specific attribute with ComplexDataAcceptorInputHandler.setDeserializer(DeserializationHandler). Calls to GraphMLParseContext.deserialize(GraphMLParseContext,org.w3c.dom.Node,Class) ultimately raise a DeserializationEvent, which can be handled be registered implementations of this interface.

 

Method Summary
 void onHandleDeserialization(DeserializationEvent event)
          Callback method to handle the deserialization of the data contained in event.
 

Method Detail

onHandleDeserialization

void onHandleDeserialization(DeserializationEvent event)
                             throws GraphMLParseException
Callback method to handle the deserialization of the data contained in event.

If this callback could deserialize the data in event, it should assign the deserialization result to the event's DeserializationEvent.setResult(Object) property.

Parameters:
event - Event that contains all data that is needed for deserialization.
Throws:
GraphMLParseException

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.