y.io.graphml
Class GraphMLHandler.IntDataAcceptorInputHandler
java.lang.Object
y.io.graphml.input.AbstractInputHandler
y.io.graphml.input.AbstractDataAcceptorInputHandler
y.io.graphml.GraphMLHandler.IntDataAcceptorInputHandler
- All Implemented Interfaces:
- InputHandler
- Enclosing class:
- GraphMLHandler
public static class GraphMLHandler.IntDataAcceptorInputHandler
- extends AbstractDataAcceptorInputHandler
Simple implementation of AbstractDataAcceptorInputHandler
that can read
int values.
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 |
GraphMLHandler.IntDataAcceptorInputHandler
public GraphMLHandler.IntDataAcceptorInputHandler()
parseDataCore
protected Object parseDataCore(GraphMLParseContext context,
Node node)
throws GraphMLParseException
- Description copied from class:
AbstractInputHandler
- Abstract method callback that actually parses the data.
- Specified by:
parseDataCore
in class AbstractInputHandler
- Throws:
GraphMLParseException
- 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.
setValue
protected void setValue(GraphMLParseContext context,
Object key,
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.