| Package | org.servebox.toolbox.globalization |
| Class | public class TranslationSchema |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| description | property |
description:String [read-only]Returns the description associated with the schema.
Implementation public function get description():String
| language | property |
language:String [read-only]Returns the language associated with the schema.
Implementation public function get language():String
| TranslationSchema | () | constructor |
public function TranslationSchema(lang:String, description:String)Creates a new TranslationSchema object. The lang parameter is mandatory.
Parameterslang:String |
|
description:String |
| addLabel | () | method |
public function addLabel(key:String, value:String):voidAdds a label to the collection.
Parameterskey:String |
|
value:String |
| getLabel | () | method |
public function getLabel(key:String):StringReturns a label
Parameterskey:String — The key of label to obtain.
|
String |
| getLabels | () | method |
public function getLabels():ObjectReturns the whole labels container object.
ReturnsObject |
| reset | () | method |
public function reset():voidResets the label list.