|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.input.AbstractDeserializer com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer com.yworks.yfiles.server.graphml.flexio.deserializer.ArrayDeserializer
A deserializer implementation that deserializes Array
objects. The component class of the array is
determined by the 'Type' attribute of the xml node whose value is supposed to have the format
{symbolicNSPrefix}:{className}, e.g. arrTypePrefix:MyClass.
A namespace using this symbolic namespace prefix has to exist whose namespace uri can be mapped to the package name of the component class by use of the SymbolicPackageNameRegistry.
Each child element is tried to be deserialized via the context. The deserialized value (or null
if no deserializer could be found) is added to the returned Array
IllegalArgumentException
is thrown.
SymbolicPackageNameRegistry
Constructor Summary | |
ArrayDeserializer()
|
Method Summary | |
java.lang.Object |
deserializeNode(org.w3c.dom.Node xmlNode,
GraphMLParseContext context)
|
java.lang.String |
getElementName(GraphMLParseContext context)
Returns 'Array'. |
java.lang.String |
getXmlNamespaceURI(GraphMLParseContext context)
Returns Constants.YWORKS_EXT_ARRAY_NS_URI . |
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer |
canHandle, onHandleDeserialization |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArrayDeserializer()
Method Detail |
public java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode, GraphMLParseContext context) throws GraphMLParseException
GraphMLParseException
public java.lang.String getElementName(GraphMLParseContext context)
getElementName
in class AbstractDeserializer
context
- The parse context.
public java.lang.String getXmlNamespaceURI(GraphMLParseContext context)
Constants.YWORKS_EXT_ARRAY_NS_URI
.
getXmlNamespaceURI
in class AbstractDeserializer
context
- The parse context.
Constants.YWORKS_EXT_ARRAY_NS_URI
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |