Search this API
Class GraphMLHandler.FloatDataProviderOutputHandler

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

public static class GraphMLHandler.FloatDataProviderOutputHandler
extends AbstractDataProviderOutputHandler

Simple implementation of AbstractDataProviderOutputHandler that can write float values.


Constructor Summary
GraphMLHandler.FloatDataProviderOutputHandler(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
getDataProvider, setDataProvider
Methods inherited from class
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


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


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().

getValue in class AbstractDataProviderOutputHandler
context - The context.
key - The key.
The data that is associated with the key


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
context - The context.
data - The data.

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