Packagecom.asterisq.graph.parsers
Classpublic class GraphParser
InheritanceGraphParser Inheritance flash.events.EventDispatcher
ImplementsIGraphParser
SubclassesAsyncGraphParser, DefaultGraphParser

Base class for parsing a graph from raw data.



Public Methods
 MethodDefined by
  
Creates a new graph parser.
GraphParser
  
fromXML(graphParserElem:XML):IGraphParser
[static] Creates an IGraphParser instance and initializes it with the given XML data.
GraphParser
  
parse(graph:IGraph, data:*):void
Parses the given data and updates the given graph.
GraphParser
Protected Methods
 MethodDefined by
  
loadValuesFromXML(graphParserElem:XML):void
Load values from the given XML element into this GraphParser.
GraphParser
Constructor detail
GraphParser()constructor
public function GraphParser()

Creates a new graph parser.

Method detail
fromXML()method
public static function fromXML(graphParserElem:XML):IGraphParser

Creates an IGraphParser instance and initializes it with the given XML data. The particular IGraphParser that is loaded depends on the value of the class_name attribute.

Parameters
graphParserElem:XML

Returns
IGraphParser
loadValuesFromXML()method 
protected function loadValuesFromXML(graphParserElem:XML):void

Load values from the given XML element into this GraphParser.

Parameters
graphParserElem:XML
parse()method 
public function parse(graph:IGraph, data:*):void

Parses the given data and updates the given graph.

Parameters
graph:IGraph
 
data:*