Packagecom.yworks.io.graphml.reader
Classpublic class MapperRegistryAttributeFactory
InheritanceMapperRegistryAttributeFactory Inheritance Object
Implements IAttributeFactory

An IAttributeFactory implementation that stores parsed attributes in an IMapper instance.



Public Properties
 PropertyDefined By
  name : String
[read-only] Returns the name of the attribute this factory handles.
MapperRegistryAttributeFactory
Public Methods
 MethodDefined By
  
MapperRegistryAttributeFactory(name:String, tag:Object, scopeType:String)
Creates An instance that will store attribute values in the given mapper instance.
MapperRegistryAttributeFactory
  
createAttribute(context:GraphMLParseContext, name:String, value:*):void
Creates a new Attribute with the given name and value and maps it to the topmost object of the context.
MapperRegistryAttributeFactory
  
defineAttribute(name:String, scopeType:String):void
Defines this factory's attribute's name and scope.
MapperRegistryAttributeFactory
Property Detail
nameproperty
name:String  [read-only]

Returns the name of the attribute this factory handles.


Implementation
    public function get name():String
Constructor Detail
MapperRegistryAttributeFactory()Constructor
public function MapperRegistryAttributeFactory(name:String, tag:Object, scopeType:String)

Creates An instance that will store attribute values in the given mapper instance.

Parameters
name:String — The name of the attribute.
 
tag:Object — The tag, the mapper is registered with
 
scopeType:String — The scope of the attribute
Method Detail
createAttribute()method
public function createAttribute(context:GraphMLParseContext, name:String, value:*):void

Creates a new Attribute with the given name and value and maps it to the topmost object of the context.

Parameters

context:GraphMLParseContext — The parse context.
 
name:String — The name of the attribute.
 
value:* — The value of the attribute.

defineAttribute()method 
public function defineAttribute(name:String, scopeType:String):void

Defines this factory's attribute's name and scope.

Parameters

name:String — The attribute's name.
 
scopeType:String — The attribute's scope