Packagecom.yworks.io.graphml.reader
Classpublic class MapperAttributeInputHandler
InheritanceMapperAttributeInputHandler Inheritance AttributeInputHandler Inheritance Object

An AttributeInputHandler which uses a MapperAttributeFactory for storing attribute values.



Public Properties
 PropertyDefined By
 InheritedattributeName : String
[read-only] The attribute name
AttributeInputHandler
 InheritedcontentType : String
[read-only] The content type of the attribute.
AttributeInputHandler
Protected Properties
 PropertyDefined By
 Inherited_attributeFactory : IAttributeFactory
The IAttributeFactory to store parsed values in.
AttributeInputHandler
 Inherited_attributeName : String
The attribute name
AttributeInputHandler
 Inherited_contentType : String
AttributeInputHandler
Public Methods
 MethodDefined By
  
MapperAttributeInputHandler(mapper:IMapper, name:String, scopeType:String, contentType:String)
Creates a new instance, using a new MapperAttributeFactory with the given mapper, name and scope.
MapperAttributeInputHandler
 Inherited
acceptKey(keyElement:XML, scopeType:String):Boolean
Whether this data handler can parse a data section with the given key and scope type.
AttributeInputHandler
 Inherited
applyDefault(context:GraphMLParseContext, defaultElement:XML, value:Object):void
This method is invoked when no data tag is defined, and the default value should be applied.
AttributeInputHandler
 Inherited
parseData(context:GraphMLParseContext, defaultValue:Boolean, dataElement:XML):void
This method is invoked each time a data element with matching key is processed.
AttributeInputHandler
 Inherited
parseDefaultData(context:GraphMLParseContext, keyElement:XML):Object
This method is invoked when the default value of the key element for a data tag is parsed.
AttributeInputHandler
Constructor Detail
MapperAttributeInputHandler()Constructor
public function MapperAttributeInputHandler(mapper:IMapper, name:String, scopeType:String, contentType:String)

Creates a new instance, using a new MapperAttributeFactory with the given mapper, name and scope.

Parameters
mapper:IMapper — The data acceptor to be associated with this input handler
 
name:String — The name of the attribute this input handler handles.
 
scopeType:String — The scope of the attribute
 
contentType:String (default = NaN) — The type of the attribute