|
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 Object |
deserializeNode(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 DeserializationHandlerGraphMLParseException - if something went wrong in the serialization process.event - The event to handle
public abstract Object deserializeNode(Node xmlNode,
GraphMLParseContext context)
throws GraphMLParseException
onHandleDeserialization(DeserializationEvent) if canHandle(DeserializationEvent)
returns true.
GraphMLParseExceptionxmlNode - The xml Node to parse.context - The current parse context.
xmlNode.public abstract boolean canHandle(DeserializationEvent e)
DeserializationEvent.
e - The event data.
true iff this instance should handle the event.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||