com.yworks.yfiles.server.graphml.flexio.deserializer
Class PrimitivesDeserializer
java.lang.Object
y.io.graphml.input.AbstractDeserializer
com.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:
- <String>Hello World</String> is matched to the String 'Hello World'.
- <Integer>100</Integer> is parsed to an Integer with the value 100.
- <Null/> is matched to
null
- See Also:
Constants.YWORKS_EXT_PRIMITIVES_NS_URI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimitivesDeserializer
public PrimitivesDeserializer()
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