Packagecom.yworks.io.graphml.reader
Classpublic class AutoMapperInputHandlerProvider
InheritanceAutoMapperInputHandlerProvider Inheritance Object
Implements IInputHandlerProvider

An input handler provider that dynamically adds attribute input handlers if the fallback provider doesn't return any input handlers for a given key.



Public Properties
 PropertyDefined By
  fallbackProvider : IInputHandlerProvider
[read-only] The fallback provider that has been passed upon initialization.
AutoMapperInputHandlerProvider
Public Methods
 MethodDefined By
  
Creates a new instance that uses the provided fallback provider.
AutoMapperInputHandlerProvider
  
getHandlersForKey(context:GraphMLParseContext, keyDefinition:XML, scope:String):Iterable
This implementation will first delegate to the fallback provider passed upon intialization.
AutoMapperInputHandlerProvider
Protected Methods
 MethodDefined By
  
createAttributeInputHandler(scope:String, name:String, type:String):IInputHandler
Create an input handler for an unhandled data attribute.
AutoMapperInputHandlerProvider
Property Detail
fallbackProviderproperty
fallbackProvider:IInputHandlerProvider  [read-only]

The fallback provider that has been passed upon initialization.


Implementation
    public function get fallbackProvider():IInputHandlerProvider
Constructor Detail
AutoMapperInputHandlerProvider()Constructor
public function AutoMapperInputHandlerProvider(fallbackProvider:IInputHandlerProvider)

Creates a new instance that uses the provided fallback provider.

Parameters
fallbackProvider:IInputHandlerProvider — The input handler provider that will be asked first to provide input handlers for a given key.
Method Detail
createAttributeInputHandler()method
protected function createAttributeInputHandler(scope:String, name:String, type:String):IInputHandler

Create an input handler for an unhandled data attribute.

Parameters

scope:String — The attribute's scope. One of
  • GraphMLConstants.SCOPE_NODE
  • GraphMLConstants.SCOPE_EDGE
  • GraphMLConstants.SCOPE_GRAPH
  • GraphMLConstants.SCOPE_PORT
  • GraphMLConstants.SCOPE_ALL
 
name:String — The attribute name
 
type:String — The value type of the attribute. One of
  • GraphMLConstants.TYPE_STRING
  • GraphMLConstants.TYPE_INT
  • GraphMLConstants.TYPE_LONG
  • GraphMLConstants.TYPE_FLOAT
  • GraphMLConstants.TYPE_DOUBLE
  • GraphMLConstants.TYPE_BOOLEAN
  • GraphMLConstants.TYPE_COMPLEX

Returns
IInputHandler

See also

getHandlersForKey()method 
public function getHandlersForKey(context:GraphMLParseContext, keyDefinition:XML, scope:String):Iterable

This implementation will first delegate to the fallback provider passed upon intialization. If the fallback provider doesn't return any input handler for the given parameters, attribute input handlers will be created.

Parameters

context:GraphMLParseContext
 
keyDefinition:XML
 
scope:String

Returns
Iterable