Packagecom.yworks.io.graphml.reader
Classpublic class MapperAttributeFactory
InheritanceMapperAttributeFactory 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.
MapperAttributeFactory
Public Methods
 MethodDefined By
  
MapperAttributeFactory(name:String, mapper:IMapper, scopeType:String)
Creates An instance that will store attribute values in the given mapper instance.
MapperAttributeFactory
  
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.
MapperAttributeFactory
  
defineAttribute(name:String, scopeType:String):void
Defines this factory's attribute's name and scope.
MapperAttributeFactory
Property Detail
nameproperty
name:String  [read-only]

Returns the name of the attribute this factory handles.


Implementation
    public function get name():String
Constructor Detail
MapperAttributeFactory()Constructor
public function MapperAttributeFactory(name:String, mapper:IMapper, scopeType:String)

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

Parameters
name:String — The name of the attribute this factory handles.
 
mapper:IMapper — The data acceptor that is associated with this factory.
 
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