Search this API

y.io.graphml.graph2d
Class WriteNodeRealizerHandler

java.lang.Object
  extended by y.io.graphml.output.AbstractOutputHandler
      extended by y.io.graphml.graph2d.WriteNodeRealizerHandler
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider

public class WriteNodeRealizerHandler
extends AbstractOutputHandler

Output handler for NodeRealizer data attributes in GraphML.

 

Constructor Summary
WriteNodeRealizerHandler()
           
 
Method Summary
 java.util.Collection getKeyDefinitionAttributes()
          Returns all XML attributes of the key element.
protected  java.lang.Object getValue(GraphMLWriteContext context, java.lang.Object key)
          Callback method that obtains the data for the given key.
protected  void writeValueCore(GraphMLWriteContext context, java.lang.Object data)
          Core write that performs the actual writing of the data.
 
Methods inherited from class y.io.graphml.output.AbstractOutputHandler
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

WriteNodeRealizerHandler

public WriteNodeRealizerHandler()
Method Detail

getKeyDefinitionAttributes

public java.util.Collection getKeyDefinitionAttributes()
Description copied from class: AbstractOutputHandler
Returns all XML attributes of the key element.

Specified by:
getKeyDefinitionAttributes in interface OutputHandler
Overrides:
getKeyDefinitionAttributes in class AbstractOutputHandler
Returns:
All attributes of the key element.
See Also:
AbstractOutputHandler.addNameToKeyDefinition(String), AbstractOutputHandler.addScopeToKeyDefinition(y.io.graphml.KeyScope), AbstractOutputHandler.addTypeToKeyDefinition(y.io.graphml.KeyType), AbstractOutputHandler.addUriToKeyDefinition(String)

writeValueCore

protected void writeValueCore(GraphMLWriteContext context,
                              java.lang.Object data)
                       throws GraphMLWriteException
Description copied from class: AbstractOutputHandler
Core write that performs the actual writing of the data.

Specified by:
writeValueCore in class AbstractOutputHandler
Parameters:
context - The context.
data - The data.
Throws:
GraphMLWriteException

getValue

protected java.lang.Object getValue(GraphMLWriteContext context,
                                    java.lang.Object key)
Description copied from class: AbstractOutputHandler
Callback method that obtains the data for the given key.

Specified by:
getValue in class AbstractOutputHandler
Parameters:
context - The context.
key - The key.
Returns:
The data that is associated with the key.

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