XmlLoad
| Kind of class: | class |
|---|---|
| Inherits from: | BytesLoad < RetryableLoad < Load < EventDispatcher < CoreObject |
| Version: | 12/20/06 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.load.data.xml.XmlLoad |
| File last modified: | Wednesday, 24 January 2007, 21:45:39 |
Eases the chore of loading XML.
This class is designed to be extended is and is not as useful unpaired.See also:
Events broadcast to listeners:
onParsing = function (sender_xml:XmlLoad) {} onParseError = function (sender_xml:XmlLoad, errorStatus:Number) {} onParsed = function (sender_xml:XmlLoad) {} Summary
Constructor
Class properties
Class properties inherited from BytesLoad
Class properties inherited from RetryableLoad
Class properties inherited from Load
Instance properties
Instance properties inherited from BytesLoad
Instance properties inherited from RetryableLoad
Instance properties inherited from Load
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject
Instance methods
Instance methods inherited from BytesLoad
Instance methods inherited from RetryableLoad
Instance methods inherited from Load
Instance methods inherited from EventDispatcher
Instance methods inherited from CoreObject
Constructor
XmlLoad
function XmlLoad (
xmlPath:String)
Class properties
EVENT_PARSE_ERROR
static EVENT_PARSE_ERROR:String = 'onParseError'
(read,write)
EVENT_PARSED
static EVENT_PARSED:String = 'onParsed'
(read,write)
EVENT_PARSING
static EVENT_PARSING:String = 'onParsing'
(read,write)
Instance methods
getXml
function getXml (
) : CoreXml
Returns:
Returns the CoreXml object XmlLoad class is wrapping and loading.
parse
function parse (
) : Void
This function needs to be overwritten by a subclass.
Usage note:
After the subclass file is done parsing call
private function $parsed() in order to broadcast the 'onParsed' event to listeners.