Packageorg.servebox.toolbox.globalization
Classpublic class GlobalizationDictionary
InheritanceGlobalizationDictionary Inheritance AbstractModel Inheritance flash.events.EventDispatcher

GlobalizationDictionary is a Singleton implementation handle method for loading and storing translation schema



Public Properties
 PropertyDefined by
  url : String
[read-only] Retruns the dictionnary URI.
GlobalizationDictionary
Protected Properties
 PropertyDefined by
  logger : ILogger
[static] The class logger.
GlobalizationDictionary
Public Methods
 MethodDefined by
  
Creates a new GlobalizationDictionary.
GlobalizationDictionary
  
addSchema(language:String, description:String):TranslationSchema
Adds a translation schema.
GlobalizationDictionary
  
[static] Return the GlobalizationDictionary instance.
GlobalizationDictionary
  
getSchema(language:String):TranslationSchema
Returns the translation schema.
GlobalizationDictionary
  
load(url:String):void
GlobalizationDictionary
 Inherited
Notifies all observers that the model has changed.
AbstractModel
  
parse(xml:XML):void
GlobalizationDictionary
 Inherited
registerObserver(o:IObserver, notificationFilters:Array = null):void
Refisters an observer to the model.
AbstractModel
 Inherited
Unregisters an observer from the model.
AbstractModel
Property detail
loggerproperty
protected static var logger:ILogger

The class logger.

urlproperty 
url:String  [read-only]

Retruns the dictionnary URI.

Implementation
    public function get url():String
Constructor detail
GlobalizationDictionary()constructor
public function GlobalizationDictionary()

Creates a new GlobalizationDictionary.

Method detail
addSchema()method
public function addSchema(language:String, description:String):TranslationSchema

Adds a translation schema. Each schema is related to a language.

Parameters
language:String
 
description:String

Returns
TranslationSchema
getInstance()method 
public static function getInstance():GlobalizationDictionary

Return the GlobalizationDictionary instance.

Returns
GlobalizationDictionary
getSchema()method 
public function getSchema(language:String):TranslationSchema

Returns the translation schema.

Parameters
language:String

Returns
TranslationSchema
load()method 
public function load(url:String):voidParameters
url:String
parse()method 
public function parse(xml:XML):voidParameters
xml:XML