Search this API

y.io.graphml
Class GraphMLHandler.FloatDataAcceptorInputHandler

java.lang.Object
  extended by y.io.graphml.input.AbstractInputHandler
      extended by y.io.graphml.input.AbstractDataAcceptorInputHandler
          extended by y.io.graphml.GraphMLHandler.FloatDataAcceptorInputHandler
All Implemented Interfaces:
InputHandler
Enclosing class:
GraphMLHandler

public static class GraphMLHandler.FloatDataAcceptorInputHandler
extends AbstractDataAcceptorInputHandler

Simple implementation of AbstractDataAcceptorInputHandler that can read float values.

 
Your browser does not support SVG content.

Constructor Summary
GraphMLHandler.FloatDataAcceptorInputHandler()
           
 
Method Summary
protected  java.lang.Object parseDataCore(GraphMLParseContext context, org.w3c.dom.Node node)
          Abstract method callback that actually parses the data.
protected  void setValue(GraphMLParseContext context, java.lang.Object key, java.lang.Object data)
          This method uses the AbstractDataAcceptorInputHandler.getDataAcceptor() to associate the data with the key.
 
Methods inherited from class y.io.graphml.input.AbstractDataAcceptorInputHandler
getDataAcceptor, setDataAcceptor
 
Methods inherited from class y.io.graphml.input.AbstractInputHandler
applyDefault, 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
 

Constructor Detail

GraphMLHandler.FloatDataAcceptorInputHandler

public GraphMLHandler.FloatDataAcceptorInputHandler()
Method Detail

parseDataCore

protected java.lang.Object parseDataCore(GraphMLParseContext context,
                                         org.w3c.dom.Node node)
                                  throws GraphMLParseException
Description copied from class: AbstractInputHandler
Abstract method callback that actually parses the data.

Specified by:
parseDataCore in class AbstractInputHandler
Parameters:
context - The context.
node - The node that contains the data. This is either the GraphML data element or the default element.
Returns:
The parsed data.
Throws:
GraphMLParseException

setValue

protected void setValue(GraphMLParseContext context,
                        java.lang.Object key,
                        java.lang.Object data)
Description copied from class: AbstractDataAcceptorInputHandler
This method uses the AbstractDataAcceptorInputHandler.getDataAcceptor() to associate the data with the key.

Overrides:
setValue in class AbstractDataAcceptorInputHandler
Parameters:
context - The context.
key - The key.
data - The data.

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