Search this API
Class NodePortUserDataWriter

  extended by
      extended by
          extended by
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider

public class NodePortUserDataWriter
extends AbstractWriteNodePortHandler

Output handler that writes NodePort user or business data.


Constructor Summary
Method Summary
protected  java.lang.String getKey()
          Returns "portuserdata".
protected  ObjectStringConverter getObjectStringConverter()
protected  void writePort(NodePort port, XmlWriter writer, GraphMLWriteContext context)
          Serializes port data to the specified writer.
Methods inherited from class
getKeyDefinitionAttributes, getValue, writeValueCore
Methods inherited from class
addNameToKeyDefinition, addScopeToKeyDefinition, addTypeToKeyDefinition, addUriToKeyDefinition, getDataTagAttributes, getDefaultValue, getPrecedence, getScope, getValidScopes, hasDefaultValueAssigned, isDefaultValue, isValidScope, isWriteKeyDefault, onQueryOutputHandler, setDefaultValue, setDefaultValueAssigned, setPrecedence, setScope, setValidScopes, setWriteKeyDefault, writeKeyDefinitionContent, writeValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public NodePortUserDataWriter()
Method Detail


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

Specified by:
getKey in class AbstractWriteNodePortHandler


protected void writePort(NodePort port,
                         XmlWriter writer,
                         GraphMLWriteContext context)
                  throws GraphMLWriteException
Description copied from class: AbstractWriteNodePortHandler
Serializes port data to the specified writer.

Specified by:
writePort in class AbstractWriteNodePortHandler
port - the port instance whose data has to be serialized.
writer - the writer used for writing the port data.
context - miscellaneous context information.
GraphMLWriteException - if the port data could not be serialized.


protected ObjectStringConverter getObjectStringConverter()

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