|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.input.AbstractDeserializer
public abstract class AbstractDeserializer
Convenience base class for implementations of DeserializationEvent
![]() |
![]() |
| Constructor Summary | |
|---|---|
AbstractDeserializer()
|
|
| Method Summary | |
|---|---|
abstract boolean |
canHandle(DeserializationEvent e)
Predicate member method to determine whether this instance should react to a given DeserializationEvent. |
abstract java.lang.Object |
deserializeNode(org.w3c.dom.Node xmlNode,
GraphMLParseContext context)
Actually perform the deserialization for the given arguments. |
void |
onHandleDeserialization(DeserializationEvent event)
Listen to a serialization event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDeserializer()
| Method Detail |
|---|
public void onHandleDeserialization(DeserializationEvent event)
throws GraphMLParseException
canHandle(DeserializationEvent) returns true
for the supplied event argument, in which case it calls deserializeNode(Node,GraphMLParseContext) and
sets DeserializationEvent.setResult(Object).
canHandle(DeserializationEvent) returns false, no action is performed.
onHandleDeserialization in interface DeserializationHandlerevent - The event to handle
GraphMLParseException - if something went wrong in the serialization process.
public abstract java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode,
GraphMLParseContext context)
throws GraphMLParseException
onHandleDeserialization(DeserializationEvent) if canHandle(DeserializationEvent)
returns true.
xmlNode - The xml Node to parse.context - The current parse context.
xmlNode.
GraphMLParseExceptionpublic abstract boolean canHandle(DeserializationEvent e)
DeserializationEvent.
e - The event data.
true iff this instance should handle the event.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||