Search this API

y.io.graphml
Class GraphMLHandler.StringDataProviderOutputHandler

java.lang.Object
  extended by y.io.graphml.output.AbstractOutputHandler
      extended by y.io.graphml.output.AbstractDataProviderOutputHandler
          extended by y.io.graphml.GraphMLHandler.StringDataProviderOutputHandler
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider
Enclosing class:
GraphMLHandler

public static class GraphMLHandler.StringDataProviderOutputHandler
extends AbstractDataProviderOutputHandler

Simple implementation of AbstractDataProviderOutputHandler that can write string values.

 

Constructor Summary
GraphMLHandler.StringDataProviderOutputHandler(java.lang.String name, KeyScope scope)
           
 
Method Summary
 void setDefaultValue(java.lang.Object value)
          Sets the default value.
protected  void writeValueCore(GraphMLWriteContext context, java.lang.Object data)
          Core write that performs the actual writing of the data.
 
Methods inherited from class y.io.graphml.output.AbstractDataProviderOutputHandler
getDataProvider, getValue, setDataProvider
 
Methods inherited from class y.io.graphml.output.AbstractOutputHandler
addNameToKeyDefinition, addScopeToKeyDefinition, addTypeToKeyDefinition, addUriToKeyDefinition, getDataTagAttributes, getDefaultValue, getKeyDefinitionAttributes, getPrecedence, getScope, getValidScopes, hasDefaultValueAssigned, isDefaultValue, isValidScope, isWriteKeyDefault, onQueryOutputHandler, 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

GraphMLHandler.StringDataProviderOutputHandler

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

setDefaultValue

public void setDefaultValue(java.lang.Object value)
Description copied from class: AbstractOutputHandler
Sets the default value.

Setting this value also sets the AbstractOutputHandler.hasDefaultValueAssigned() property.

Overrides:
setDefaultValue in class AbstractOutputHandler
Parameters:
value - The default value of the attribute.
See Also:
AbstractOutputHandler.getDefaultValue()

writeValueCore

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

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