Packagevegas.ioc.io
Classpublic class LocaleResource
InheritanceLocaleResource Inheritance ObjectResource Inheritance SimpleValueObject Inheritance Object

This resource object contains all information about a localization file to load in the application.



Public Properties
 PropertyDefined By
 Inheritedcache : Boolean
The cache flag of this resource (default is true).
ObjectResource
 Inheriteddata : *
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
 Inheritedenabled : Boolean
A enabled flag of this resource.
ObjectResource
 Inheritedid : *
Indicates the id of this ValueObject.
SimpleValueObject
  loader : *
The loader reference use to load the locale resource.
LocaleResource
 Inheritedowner : *
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
 Inheritedresource : String
The resource value.
ObjectResource
  suffix : String
The suffix of the full localization file name.
LocaleResource
 Inheritedtype : String
The type of the resource.
ObjectResource
 Inheritedverbose : Boolean
Indicates the verbose mode of the resource.
ObjectResource
Public Methods
 MethodDefined By
  
LocaleResource(init:Object = null)
Creates a new LocaleResource instance.
LocaleResource
  
[override] Creates a new CoreActionLoader object with the resource.
LocaleResource
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
SimpleValueObject
 Inherited
formatToString(className:String = null, ... args):String
A utility function for implementing the toString() method.
SimpleValueObject
 Inherited
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
 Inherited
toObject():Object
Returns the Object representation of this object.
SimpleValueObject
 Inherited
toSource(indent:int = 0):String
Returns the source code string representation of the object.
SimpleValueObject
 Inherited
toString():String
[override] Returns the String representation of this object.
ObjectResource
Property Detail
DEFAULT_LOADERproperty
public static var DEFAULT_LOADER:Class

The default ILocalizationLoader class use in all LocaleResource to create a new resource process.

loaderproperty 
public var loader:*

The loader reference use to load the locale resource.

pathproperty 
public var path:String

The optional path of the external locale file to load.

prefixproperty 
public var prefix:String

The prefix of the full localization file name.

suffixproperty 
public var suffix:String

The suffix of the full localization file name.

Constructor Detail
LocaleResource()Constructor
public function LocaleResource(init:Object = null)

Creates a new LocaleResource instance.

Parameters
init:Object (default = null) — A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.
Method Detail
create()method
override public function create():CoreActionLoader

Creates a new CoreActionLoader object with the resource.

Returns
CoreActionLoader
register()method 
public static function register(type:String = i18n):void

Registers the resource in the ObjectResourceBuilder.

Parameters

type:String (default = i18n)