Package | com.yworks.io.graphml.reader |
Class | public class MapperAttributeInputHandler |
Inheritance | MapperAttributeInputHandler AttributeInputHandler Object |
AttributeInputHandler
which uses a MapperAttributeFactory
for storing attribute values.
Method | Defined 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 | ||
acceptKey(keyElement:XML, scopeType:String):Boolean
Whether this data handler can parse a data section with the given key and scope type. | AttributeInputHandler | ||
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 | ||
parseData(context:GraphMLParseContext, defaultValue:Boolean, dataElement:XML):void
This method is invoked each time a data element with matching key
is processed. | AttributeInputHandler | ||
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 |
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.
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
|