Search this API

y.io.graphml.graph2d
Class NodePortUserDataReader

java.lang.Object
  extended by y.io.graphml.input.AbstractInputHandler
      extended by y.io.graphml.graph2d.AbstractReadNodePortHandler
          extended by y.io.graphml.graph2d.NodePortUserDataReader
All Implemented Interfaces:
InputHandler

public class NodePortUserDataReader
extends AbstractReadNodePortHandler

Input handler that reads NodePort user or business data.

 

Constructor Summary
NodePortUserDataReader()
           
 
Method Summary
 java.lang.String getKey()
          Returns "portuserdata".
protected  ObjectStringConverter getObjectStringConverter()
           
 void readPort(NodePort port, org.w3c.dom.Node node, GraphMLParseContext context)
          Deserializes port data for the specified port from the given XML node.
 
Methods inherited from class y.io.graphml.graph2d.AbstractReadNodePortHandler
acceptKey, applyDefault, parseDataCore, setValue
 
Methods inherited from class y.io.graphml.input.AbstractInputHandler
getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, setDefaultExists, setDefaultValue, setParseDefaultValue, setPrecedence, setValidScopes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePortUserDataReader

public NodePortUserDataReader()
Method Detail

getKey

public java.lang.String getKey()
Returns "portuserdata".

Specified by:
getKey in class AbstractReadNodePortHandler
Returns:
"portuserdata".

readPort

public void readPort(NodePort port,
                     org.w3c.dom.Node node,
                     GraphMLParseContext context)
              throws GraphMLParseException
Description copied from class: AbstractReadNodePortHandler
Deserializes port data for the specified port from the given XML node.

Specified by:
readPort in class AbstractReadNodePortHandler
Parameters:
port - the port instance whose data has to be deserialized.
node - XML node providing the data to deserialize.
context - miscellaneous context information.
Throws:
GraphMLParseException - if the port data could not be deserialized.

getObjectStringConverter

protected ObjectStringConverter getObjectStringConverter()

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