Packagecom.yworks.io.graphml.reader
Interfacepublic interface IAttributeFactory
Implementors MapperAttributeFactory, MapperRegistryAttributeFactory

Interface for storing parsed attribute values in the graph.



Public Methods
 MethodDefined By
  
createAttribute(context:GraphMLParseContext, name:String, value:*):void
This method is called when an attribute value is encountered.
IAttributeFactory
  
defineAttribute(name:String, scopeType:String):void
This method is called when an attribute definition is encountered.
IAttributeFactory
Method Detail
createAttribute()method
public function createAttribute(context:GraphMLParseContext, name:String, value:*):void

This method is called when an attribute value is encountered.

Parameters

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

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

This method is called when an attribute definition is encountered.

Parameters

name:String — The attribute name
 
scopeType:String — The attribute scope: One of
  • GraphMLConstants.SCOPE_NODE
  • GraphMLConstants.SCOPE_EDGE
  • GraphMLConstants.SCOPE_PORT