Class Lexicon
Extends
BaseBajaObj.
Lexicon is a map of name/value pairs for a specific locale.
Defined in: sys.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| <inner> |
Lexicon()
|
| Method Attributes | Method Name and Description |
|---|---|
|
get(obj)
Return a value from the Lexicon for a given key.
|
|
|
Return the Lexicon's module name.
|
- Methods borrowed from class BaseBajaObj:
- equals, valueOf
Method Detail
{String}
get(obj)
Return a value from the Lexicon for a given key.
The argument for this method can be either a String key or an Object Literal.
- Parameters:
- {Object|String} obj
- the Object Literal that contains the method's arguments or a String key.
- {String} obj.key
- the key to look up.
- {String} obj.def
- the default value to return if the key can't be found. By default this is null.
- {Array|String} obj.args
- arguments used for String formatting.
- Returns:
- {String} the value for the Lexicon or return def if can't be found.
- See:
- baja.lex
{String}
getModuleName()
Return the Lexicon's module name.
- Returns:
- {String}