| Package | vegas.ioc.io |
| Class | public class LocaleResource |
| Inheritance | LocaleResource 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_LOADER : Class [static]
The default ILocalizationLoader class use in all LocaleResource to create a new resource process. | LocaleResource | ||
![]() | enabled : Boolean
A enabled flag of this resource. | ObjectResource | |
![]() | id : *
Indicates the id of this ValueObject. | SimpleValueObject | |
| loader : *
The loader reference use to load the locale resource. | LocaleResource | ||
![]() | owner : *
The owner reference of this resource. | ObjectResource | |
| path : String
The optional path of the external locale file to load. | LocaleResource | ||
| prefix : String
The prefix of the full localization file name. | LocaleResource | ||
![]() | resource : String
The resource value. | ObjectResource | |
| suffix : String
The suffix of the full localization file name. | LocaleResource | ||
![]() | type : String
The type of the resource. | ObjectResource | |
![]() | verbose : Boolean
Indicates the verbose mode of the resource. | ObjectResource | |
| Method | Defined By | ||
|---|---|---|---|
LocaleResource(init:Object = null)
Creates a new LocaleResource instance. | LocaleResource | ||
[override]
Creates a new CoreActionLoader object with the resource. | LocaleResource | ||
![]() | 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
The optional method invoked when the resource is loading. | ObjectResource | |
register(type:String = i18n):void [static]
Registers the resource in the ObjectResourceBuilder. | LocaleResource | ||
![]() | 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_LOADER | property |
public static var DEFAULT_LOADER:ClassThe default ILocalizationLoader class use in all LocaleResource to create a new resource process.
| loader | property |
public var loader:*The loader reference use to load the locale resource.
| path | property |
public var path:StringThe optional path of the external locale file to load.
| prefix | property |
public var prefix:StringThe prefix of the full localization file name.
| suffix | property |
public var suffix:StringThe suffix of the full localization file name.
| LocaleResource | () | Constructor |
public function LocaleResource(init:Object = null)Creates a new LocaleResource 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 CoreActionLoader object with the resource.
ReturnsCoreActionLoader |
| register | () | method |
public static function register(type:String = i18n):voidRegisters the resource in the ObjectResourceBuilder.
Parameters
type:String (default = i18n) |