Packageorg.servebox.toolbox.globalization
Classpublic class TranslationSchema

Define the structure of a translation file



Public Properties
 PropertyDefined by
  description : String
[read-only] Returns the description associated with the schema.
TranslationSchema
  language : String
[read-only] Returns the language associated with the schema.
TranslationSchema
Public Methods
 MethodDefined by
  
TranslationSchema(lang:String, description:String)
Creates a new TranslationSchema object.
TranslationSchema
  
addLabel(key:String, value:String):void
Adds a label to the collection.
TranslationSchema
  
getLabel(key:String):String
Returns a label
TranslationSchema
  
getLabels():Object
Returns the whole labels container object.
TranslationSchema
  
reset():void
Resets the label list.
TranslationSchema
Property detail
descriptionproperty
description:String  [read-only]

Returns the description associated with the schema.

Implementation
    public function get description():String
languageproperty 
language:String  [read-only]

Returns the language associated with the schema.

Implementation
    public function get language():String
Constructor detail
TranslationSchema()constructor
public function TranslationSchema(lang:String, description:String)

Creates a new TranslationSchema object. The lang parameter is mandatory.

Parameters
lang:String
 
description:String
Method detail
addLabel()method
public function addLabel(key:String, value:String):void

Adds a label to the collection.

Parameters
key:String
 
value:String
getLabel()method 
public function getLabel(key:String):String

Returns a label

Parameters
key:String — The key of label to obtain.

Returns
String
getLabels()method 
public function getLabels():Object

Returns the whole labels container object.

Returns
Object
reset()method 
public function reset():void

Resets the label list.