Search this API

y.io.graphml.input
Class NameBasedDeserializer

java.lang.Object
  extended by y.io.graphml.input.AbstractDeserializer
      extended by y.io.graphml.input.NameBasedDeserializer
All Implemented Interfaces:
java.util.EventListener, DeserializationHandler

public abstract class NameBasedDeserializer
extends AbstractDeserializer

Convenience base class for implementations of AbstractDeserializer that uses the fully qualified name of the source node for the predicate.

 
Your browser does not support SVG content.

Constructor Summary
NameBasedDeserializer()
           
 
Method Summary
 boolean canHandle(DeserializationEvent e)
          Returns true if DeserializationEvent.getXmlNode() satisfies the properties of this class.
abstract  java.lang.String getNamespaceURI(GraphMLParseContext context)
          The namespace URI that the node must satisfy if it should be deserialized.
abstract  java.lang.String getNodeName(GraphMLParseContext context)
          The local name that the node must satisfy if it should be deserialized.
 boolean handleElementsOnly(GraphMLParseContext context)
          Returns true if this deserializer should handle only XML elements.
 
Methods inherited from class y.io.graphml.input.AbstractDeserializer
deserializeNode, onHandleDeserialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameBasedDeserializer

public NameBasedDeserializer()
Method Detail

getNamespaceURI

public abstract java.lang.String getNamespaceURI(GraphMLParseContext context)
The namespace URI that the node must satisfy if it should be deserialized.


getNodeName

public abstract java.lang.String getNodeName(GraphMLParseContext context)
The local name that the node must satisfy if it should be deserialized.


handleElementsOnly

public boolean handleElementsOnly(GraphMLParseContext context)
Returns true if this deserializer should handle only XML elements. This implementation always returns true.

Parameters:
context - The current parse context.
Returns:
true if this deserializer should handle only XML elements.

canHandle

public boolean canHandle(DeserializationEvent e)
Returns true if DeserializationEvent.getXmlNode() satisfies the properties of this class.

Specified by:
canHandle in class AbstractDeserializer
Parameters:
e - The event data.
Returns:
true iff the node should be parsed.

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