Packagech.capi.core
Classpublic class ApplicationFileParser

Parser of ApplicationFile objects. The XMLSchema and a XML validator can be found here.

See also

ApplicationFile
ApplicationMassLoader


Public Properties
 PropertyDefined by
  applicationContext : ApplicationContext
Defines the ApplicationContext.
ApplicationFileParser
  loadableFileFactory : LoadableFileFactory
Defines the LoadableFileFactory to use to create the ILoadableFile objects.
ApplicationFileParser
Public Methods
 MethodDefined by
  
ApplicationFileParser(loadableFileFactory:LoadableFileFactory = null, context:ApplicationContext = null)
Creates a new ApplicationFileParser object.
ApplicationFileParser
  
parse(node:XMLNode):void
Parse the specified XMLNode.
ApplicationFileParser
  
parseDependencies(node:XMLNode):void
Parses the ApplicationFile dependencies of the specified XMLNode.
ApplicationFileParser
  
parseFiles(node:XMLNode):void
Parses the ApplicationFile of the specified XMLNode.
ApplicationFileParser
Protected Methods
 MethodDefined by
  
Creates a ApplicationFile from the XMLNode.
ApplicationFileParser
  
createLoadableFile(url:String, type:String = null):ILoadableFile
Creates a ILoadableFile object.
ApplicationFileParser
  
Initialize the ILoadableFile.
ApplicationFileParser
Property detail
applicationContextproperty
applicationContext:ApplicationContext  [read-write]

Defines the ApplicationContext.

Implementation
    public function get applicationContext():ApplicationContext
    public function set applicationContext(value:ApplicationContext):void
loadableFileFactoryproperty 
loadableFileFactory:LoadableFileFactory  [read-write]

Defines the LoadableFileFactory to use to create the ILoadableFile objects.

Implementation
    public function get loadableFileFactory():LoadableFileFactory
    public function set loadableFileFactory(value:LoadableFileFactory):void
Constructor detail
ApplicationFileParser()constructor
public function ApplicationFileParser(loadableFileFactory:LoadableFileFactory = null, context:ApplicationContext = null)

Creates a new ApplicationFileParser object.

Parameters
loadableFileFactory:LoadableFileFactory (default = null) — The LoadableFileFactory.
 
context:ApplicationContext (default = null) — The ApplicationContext. If not defined, then the global ApplicationContext will be used.
Method detail
createApplicationFile()method
protected function createApplicationFile(node:XMLNode):ApplicationFile

Creates a ApplicationFile from the XMLNode.

Parameters
node:XMLNode — The XMLNode to parse.

Returns
ApplicationFile — The created ApplicationFile.
createLoadableFile()method 
protected function createLoadableFile(url:String, type:String = null):ILoadableFile

Creates a ILoadableFile object.

Parameters
url:String — The url.
 
type:String (default = null) — The type issued from the LoadableFileFactory constants.

Returns
ILoadableFile — The ILoadableFile created.
initializeLoadableFile()method 
protected function initializeLoadableFile(file:ILoadableFile):void

Initialize the ILoadableFile. This method initialize the virtualBytesTotal, useCache and netState values if they are defined into the properties map of the ILoadableFile.

Parameters
file:ILoadableFile — The ILoadableFile to initialize.
parse()method 
public function parse(node:XMLNode):void

Parse the specified XMLNode.

Parameters
node:XMLNode — The XMLNode to parse.
parseDependencies()method 
public function parseDependencies(node:XMLNode):void

Parses the ApplicationFile dependencies of the specified XMLNode.

Parameters
node:XMLNode — The XMLNode.
parseFiles()method 
public function parseFiles(node:XMLNode):void

Parses the ApplicationFile of the specified XMLNode.

Parameters
node:XMLNode — The XMLNode.