| Package | vegas.ioc.io |
| Class | public class XMLResource |
| Inheritance | XMLResource ObjectResource SimpleValueObject Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | cache : Boolean
The cache flag of this resource (default is true). | ObjectResource | |
![]() | data : *
The data object of this resource. | ObjectResource | |
| DEFAULT_PATH : String [static]
The root path of all xml files. | XMLResource | ||
| definition : Object
Indicates the definition object to initialize the ObjectDefinition of the current assembly. | XMLResource | ||
![]() | enabled : Boolean
A enabled flag of this resource. | ObjectResource | |
![]() | id : *
Indicates the id of this ValueObject. | SimpleValueObject | |
![]() | owner : *
The owner reference of this resource. | ObjectResource | |
| path : String
The optional root path of the xml file. | XMLResource | ||
![]() | resource : String
The resource value. | ObjectResource | |
| singleton : Boolean
Indicates if the object definition of this resource must be a singleton. | XMLResource | ||
![]() | type : String
The type of the resource. | ObjectResource | |
![]() | verbose : Boolean
Indicates the verbose mode of the resource. | ObjectResource | |
| Method | Defined By | ||
|---|---|---|---|
XMLResource(init:Object = null)
Creates a new XMLResource instance. | XMLResource | ||
[override]
Creates a new ActionURLLoader object with the resource. | XMLResource | ||
![]() | equals(o:*):Boolean
Compares the specified object with this object for equality. | SimpleValueObject | |
![]() | formatToString(className:String = null, ... args):String
A utility function for implementing the toString() method. | SimpleValueObject | |
initialize(... args):void [override]
The optional method invoked when the resource is loading. | XMLResource | ||
register(type:String = xml):void [static]
Registers the resource in the ObjectResourceBuilder. | XMLResource | ||
![]() | toObject():Object
Returns the Object representation of this object. | SimpleValueObject | |
![]() | toSource(indent:int = 0):String
Returns the source code string representation of the object. | SimpleValueObject | |
![]() | toString():String [override]
Returns the String representation of this object. | ObjectResource | |
| DEFAULT_PATH | property |
public static var DEFAULT_PATH:StringThe root path of all xml files.
| definition | property |
public var definition:ObjectIndicates the definition object to initialize the ObjectDefinition of the current assembly. Use this attribute only if the 'id' of the assembly resource is not 'null' or 'undefined'.
| path | property |
public var path:StringThe optional root path of the xml file.
| singleton | property |
public var singleton:BooleanIndicates if the object definition of this resource must be a singleton.
| XMLResource | () | Constructor |
public function XMLResource(init:Object = null)Creates a new XMLResource instance.
Parametersinit:Object (default = null) — A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.
|
| create | () | method |
override public function create():CoreActionLoaderCreates a new ActionURLLoader object with the resource.
ReturnsCoreActionLoader |
| initialize | () | method |
override public function initialize(... args):voidThe optional method invoked when the resource is loading.
Parameters
... args |
Error — if the resource can be initialize.
|
| register | () | method |
public static function register(type:String = xml):voidRegisters the resource in the ObjectResourceBuilder.
Parameters
type:String (default = xml) |