Abstract base implementation of the IOutputHandler interface.
Implements
- I
Members
Show:
Constructors
Initializes a new instance of the OutputHandlerBase<TKey, TData> class using the provided scope, name, and type for the key definition.
Initializes a new instance of the OutputHandlerBase<TKey, TData> class using the provided scope, name, and type for the key definition.
Properties
Gets the XML attributes that should be added to the data element.
Gets the XML attributes that should be added to the data element.
readonly
Implements
IOutputHandler.dataTagAttributesfinal
Property Value
true if a default value has been assigned, false otherwise.Gets the XML attributes that should be added to the key definition in the GraphML key element.
Gets the XML attributes that should be added to the key definition in the GraphML key element.
readonly
Implements
IOutputHandler.keyDefinitionAttributesGets or sets the write precedence for the handler.
Gets or sets the write precedence for the handler.
Methods
Obtains the data for the given key.
Obtains the data for the given key.
protectedabstract
Parameters
- context: IWriteContext
- The context.
- key: TKey
- The key.
Return Value
- TData
- The data that is associated with the key.
See Also
Developer's Guide
Overridden in
MapperOutputHandler.getValueDetermines whether in the current context, the value is the default value and therefore no data element needs to be written.
Determines whether in the current context, the value is the default value and therefore no data element needs to be written.
This implementation will return
false if no default has been set. Otherwise it will use getValue and compare the result with the defaultValue to determine whether they are equal and therefore no data needs to be written.Parameters
- context: IWriteContext
- The context.
Return Value
- boolean
trueif for the current context the default value applies and therefore no data element needs to be written.
Implements
IOutputHandler.isDefaultValuefinal
Parameters
- name: string
- The name of the key element.
Sets the scope for the key definition.
Sets the scope for the key definition.
Sets the key type for the key definition.
Sets the key type for the key definition.
By default, no URI is set.
final
Parameters
- uri: string
- The URI of the key element.
Writes the contents of the key definition.
Writes the contents of the key definition.
Depending on whether writeKeyDefault is enabled and defaultExists is
true, this method will write the GraphML 'default' element and use writeValueCore to serialize the defaultValue.Parameters
- context: IWriteContext
- The context.
Implements
IOutputHandler.writeKeyDefinitionContentActually writes the value for the current context.
Actually writes the value for the current context.
This method will use getValue to obtain the data and delegate to writeValueCore to perform the actual serialization.
final
Parameters
- context: IWriteContext
- The context.
Implements
IOutputHandler.writeValuePerforms the actual writing of the data.
Performs the actual writing of the data.
protectedabstract
Parameters
- context: IWriteContext
- The context.
- data: TData
- The data.
See Also
Developer's Guide