Access keys

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.
Events broadcast to listeners:
onParsing = function (sender_xml:XmlLoad) {}
onParseError = function (sender_xml:XmlLoad, errorStatus:Number) {}
onParsed = function (sender_xml:XmlLoad) {}

Summary

Constructor
Instance properties
Instance properties inherited from RetryableLoad
Instance properties inherited from Load
Instance properties inherited from EventDispatcher
Instance properties 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

destroy

function destroy (
) : Void

getXml

function getXml (
Returns:
Returns the CoreXml object XmlLoad class is wrapping and loading.

hasLoaded

function hasLoaded (
) : Boolean

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.