y.io.graphml
Class GraphMLHandler.BooleanDataProviderOutputHandler
java.lang.Object
y.io.graphml.output.AbstractOutputHandler
y.io.graphml.output.AbstractDataProviderOutputHandler
y.io.graphml.GraphMLHandler.BooleanDataProviderOutputHandler
- All Implemented Interfaces:
- EventListener, OutputHandler, OutputHandlerProvider
- Enclosing class:
- GraphMLHandler
public static class GraphMLHandler.BooleanDataProviderOutputHandler
- extends AbstractDataProviderOutputHandler
Simple implementation of AbstractDataProviderOutputHandler that can write
boolean values.
-
-
| 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 |
GraphMLHandler.BooleanDataProviderOutputHandler
public GraphMLHandler.BooleanDataProviderOutputHandler(String name,
KeyScope scope)
getValue
protected Object getValue(GraphMLWriteContext context,
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,
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.