Package | com.yworks.io.graphml.reader |
Class | public class MapperAttributeFactory |
Inheritance | MapperAttributeFactory Object |
Implements | IAttributeFactory |
IAttributeFactory
implementation that stores parsed attributes in an IMapper
instance.
Property | Defined By | ||
---|---|---|---|
name : String [read-only]
Returns the name of the attribute this factory handles. | MapperAttributeFactory |
Method | Defined 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 |
name | property |
name:String
[read-only] Returns the name of the attribute this factory handles.
public function get name():String
MapperAttributeFactory | () | Constructor |
public function MapperAttributeFactory(name:String, mapper:IMapper, scopeType:String)
Creates An instance that will store attribute values in the given mapper instance.
Parametersname: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
|
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
|