Packagecom.yworks.io.graphml.writer
Classpublic class AutoMapperOutputHandlerProvider
InheritanceAutoMapperOutputHandlerProvider Inheritance Object
Implements IOutputHandlerProvider

An output handler provider that automatically adds output handler instances for IRoundtripMapper instances registered with the graph's mapper registry.

See also

com.yworks.support.IRoundtripMapper
com.yworks.io.graphml.GraphMLIOHandler.outputHandlerProvider


Public Properties
 PropertyDefined By
  defaultProvider : IOutputHandlerProvider
[read-only] Returns the default provider that has been passed upon initialization.
AutoMapperOutputHandlerProvider
Public Methods
 MethodDefined By
  
Creates a new instance that wraps the given provider.
AutoMapperOutputHandlerProvider
  
Adds output handlers for IRoundtripMapper instances registered with the graph's mapperRegistry, if the mapper's scope property matches the passed scope and the mapper's autoSerialize property is true.
AutoMapperOutputHandlerProvider
Protected Methods
 MethodDefined By
  
Create an output handler for the provided mapper.
AutoMapperOutputHandlerProvider
Property Detail
defaultProviderproperty
defaultProvider:IOutputHandlerProvider  [read-only]

Returns the default provider that has been passed upon initialization.


Implementation
    public function get defaultProvider():IOutputHandlerProvider
Constructor Detail
AutoMapperOutputHandlerProvider()Constructor
public function AutoMapperOutputHandlerProvider(defaultProvider:IOutputHandlerProvider)

Creates a new instance that wraps the given provider.

Parameters
defaultProvider:IOutputHandlerProvider
Method Detail
createAttributeOutputHandler()method
protected function createAttributeOutputHandler(mapper:IRoundtripMapper):IOutputHandler

Create an output handler for the provided mapper.

Parameters

mapper:IRoundtripMapper

Returns
IOutputHandler
getHandlersForScope()method 
public function getHandlersForScope(context:GraphMLWriteContext, scope:String):Iterable

Adds output handlers for IRoundtripMapper instances registered with the graph's mapperRegistry, if the mapper's scope property matches the passed scope and the mapper's autoSerialize property is true.

Parameters

context:GraphMLWriteContext — The current write context.
 
scope:String — The current scope. One of
  • GraphMLConstants.SCOPE_NODE
  • GraphMLConstants.SCOPE_EDGE
  • GraphMLConstants.SCOPE_GRAPH
  • GraphMLConstants.SCOPE_PORT
  • GraphMLConstants.SCOPE_ALL

Returns
Iterable — An Iterable containg the output handlers returned by the wrapped provider and the output handlers that were created by this implementation.