com.yworks.yfiles.server.graphml.folding
Class PortDeserializer

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

public class PortDeserializer
extends AbstractDeserializer

Deserializer for port data in PortViewStates or port entities of EdgeViewStates in a folded graph structure.


Constructor Summary
PortDeserializer()
           
 
Method Summary
 java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode, GraphMLParseContext context)
           
 java.lang.String getElementName(GraphMLParseContext context)
          The local name that the node must satisfy if it should be deserialized.
static IPortLocationModelParameter getNotSetLocationModelParameterInstance()
          The location model parameter instance that is set for a port if no parameter can be deserialized.
 java.lang.String getXmlNamespaceURI(GraphMLParseContext context)
          The namespace URI that the node must satisfy if it should be deserialized.
 
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

PortDeserializer

public PortDeserializer()
Method Detail

getNotSetLocationModelParameterInstance

public static IPortLocationModelParameter getNotSetLocationModelParameterInstance()
The location model parameter instance that is set for a port if no parameter can be deserialized.

Returns:
The location model parameter instance that is set for a port if no parameter can be deserialized.

deserializeNode

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

getElementName

public java.lang.String getElementName(GraphMLParseContext context)
The local name that the node must satisfy if it should be deserialized. This method is called by AbstractDeserializer.canHandle(y.io.graphml.input.DeserializationEvent).

Specified by:
getElementName in class AbstractDeserializer
Parameters:
context - The parse context.
Returns:
'Port'

getXmlNamespaceURI

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

Overrides:
getXmlNamespaceURI in class AbstractDeserializer
Parameters:
context -
Returns:
'http://www.yworks.com/xml/yfiles.net/1.0/forms'


Copyright © 2000-2013 yWorks GmbH. All rights reserved