com.yworks.yfiles.server.graphml.flexio.deserializer
Class PrimitivesDeserializer

java.lang.Object
  extended byy.io.graphml.input.AbstractDeserializer
      extended bycom.yworks.yfiles.server.graphml.flexio.deserializer.PrimitivesDeserializer
All Implemented Interfaces:
DeserializationHandler, java.util.EventListener

public class PrimitivesDeserializer
extends AbstractDeserializer

This deserializer deserializes xml nodes representing Integer, Long, Double, Float, String, Boolean and null values.

A xml node that should be deserialized has to use the namespace Constants.YWORKS_EXT_PRIMITIVES_NS_URI.
The node name has to match one of the class names mentioned above or Null. An ITypeConverter for this class type is used to deserialize the value. The following shows some examples of possibly deserialized nodes:

See Also:
Constants.YWORKS_EXT_PRIMITIVES_NS_URI

Constructor Summary
PrimitivesDeserializer()
           
 
Method Summary
 boolean canHandle(DeserializationEvent e)
           
 java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode, GraphMLParseContext context)
           
 
Methods inherited from class y.io.graphml.input.AbstractDeserializer
onHandleDeserialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitivesDeserializer

public PrimitivesDeserializer()
Method Detail

deserializeNode

public java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode,
                                        GraphMLParseContext context)
                                 throws GraphMLParseException
Throws:
GraphMLParseException

canHandle

public boolean canHandle(DeserializationEvent e)


Copyright © 2000-2013 yWorks GmbH. All rights reserved