Search this API

y.io.graphml
Class GraphMLHandler.DoubleDataProviderOutputHandler

java.lang.Object
  extended by y.io.graphml.output.AbstractOutputHandler
      extended by y.io.graphml.output.AbstractDataProviderOutputHandler
          extended by y.io.graphml.GraphMLHandler.DoubleDataProviderOutputHandler
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider
Enclosing class:
GraphMLHandler

public static class GraphMLHandler.DoubleDataProviderOutputHandler
extends AbstractDataProviderOutputHandler

Simple implementation of AbstractDataProviderOutputHandler that can write double values.

 

Constructor Summary
GraphMLHandler.DoubleDataProviderOutputHandler(java.lang.String name, KeyScope scope)
           
 
Method Summary
protected  java.lang.Object getValue(GraphMLWriteContext context, java.lang.Object key)
          Core parse 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.AbstractDataProviderOutputHandler
getDataProvider, setDataProvider
 
Methods inherited from class y.io.graphml.output.AbstractOutputHandler
addNameToKeyDefinition, addScopeToKeyDefinition, addTypeToKeyDefinition, addUriToKeyDefinition, getDataTagAttributes, getDefaultValue, getKeyDefinitionAttributes, 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

GraphMLHandler.DoubleDataProviderOutputHandler

public GraphMLHandler.DoubleDataProviderOutputHandler(java.lang.String name,
                                                      KeyScope scope)
Method Detail

getValue

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

This implementation calls DataProvider.get(Object) to retrieve the value from the AbstractDataProviderOutputHandler.getDataProvider().

Overrides:
getValue in class AbstractDataProviderOutputHandler
Parameters:
context - The context.
key - The key.
Returns:
The data that is associated with the key

writeValueCore

protected void writeValueCore(GraphMLWriteContext context,
                              java.lang.Object data)
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.

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