y.io.graphml.graph2d
Class NodePortUserDataReader
java.lang.Object
y.io.graphml.input.AbstractInputHandler
y.io.graphml.graph2d.AbstractReadNodePortHandler
y.io.graphml.graph2d.NodePortUserDataReader
- All Implemented Interfaces:
- InputHandler
public class NodePortUserDataReader
- extends AbstractReadNodePortHandler
Input handler that reads NodePort
user or business data.
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 |
NodePortUserDataReader
public NodePortUserDataReader()
getKey
public String getKey()
- Returns "portuserdata".
- Specified by:
getKey
in class AbstractReadNodePortHandler
- Returns:
- "portuserdata".
readPort
public void readPort(NodePort port,
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
- Throws:
GraphMLParseException
- if the port data could not be deserialized.- Parameters:
port
- the port instance whose data has to be deserialized.node
- XML node providing the data to deserialize.context
- miscellaneous context information.
getObjectStringConverter
protected ObjectStringConverter getObjectStringConverter()