Search this API

y.io.graphml.input
Class AbstractDataAcceptorInputHandler

java.lang.Object
  extended by y.io.graphml.input.AbstractInputHandler
      extended by y.io.graphml.input.AbstractDataAcceptorInputHandler
All Implemented Interfaces:
InputHandler
Direct Known Subclasses:
ComplexDataAcceptorInputHandler, GraphMLHandler.BoolDataAcceptorInputHandler, GraphMLHandler.DoubleDataAcceptorInputHandler, GraphMLHandler.FloatDataAcceptorInputHandler, GraphMLHandler.IntDataAcceptorInputHandler, GraphMLHandler.LongDataAcceptorInputHandler, GraphMLHandler.StringDataAcceptorInputHandler

public abstract class AbstractDataAcceptorInputHandler
extends AbstractInputHandler

An abstract DataAcceptor-based implementation of InputHandler.

 
Your browser does not support SVG content.

Constructor Summary
protected AbstractDataAcceptorInputHandler()
          Initializes a new instance of the AbstractDataAcceptorInputHandler class.
protected AbstractDataAcceptorInputHandler(ParsePrecedence precedence)
          Initializes a new instance of the AbstractDataAcceptorInputHandler class.
 
Method Summary
 DataAcceptor getDataAcceptor()
          Gets the DataAcceptor to use for storing the data.
 void setDataAcceptor(DataAcceptor value)
          Sets the DataAcceptor to use for storing the data.
protected  void setValue(GraphMLParseContext context, java.lang.Object key, java.lang.Object data)
          This method uses the getDataAcceptor() to associate the data with the key.
 
Methods inherited from class y.io.graphml.input.AbstractInputHandler
applyDefault, getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, parseDataCore, 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

AbstractDataAcceptorInputHandler

protected AbstractDataAcceptorInputHandler()
Initializes a new instance of the AbstractDataAcceptorInputHandler class.

InputHandler.getPrecedence() has an initial value of ParsePrecedence.DEFAULT.


AbstractDataAcceptorInputHandler

protected AbstractDataAcceptorInputHandler(ParsePrecedence precedence)
Initializes a new instance of the AbstractDataAcceptorInputHandler class.

InputHandler.getPrecedence() gets the initial value of precedence

Parameters:
precedence - The precedence to assign to the AbstractInputHandler.getPrecedence().
Method Detail

getDataAcceptor

public DataAcceptor getDataAcceptor()
Gets the DataAcceptor to use for storing the data.

Returns:
The DataAcceptor.
See Also:
setDataAcceptor(y.base.DataAcceptor)

setDataAcceptor

public void setDataAcceptor(DataAcceptor value)
Sets the DataAcceptor to use for storing the data.

Parameters:
value - The DataAcceptor.
See Also:
getDataAcceptor()

setValue

protected void setValue(GraphMLParseContext context,
                        java.lang.Object key,
                        java.lang.Object data)
This method uses the getDataAcceptor() to associate the data with the key.

Specified by:
setValue in class AbstractInputHandler
Parameters:
context - The context.
key - The key.
data - The data.

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