Main Page | Packages | Class Tree | Index | Help

xp.util

class Locale

Object
  |
  +--xp.util.Locale


class Locale
extends Object



Field Summary

public static
defaultLocale: Locale
The current default Locale

Method Summary

public static
addLocale ( l: Locale ): Void
Adds a locale to the current application

public
getAmPmStrings ( ): Array


public
getCountry ( ): String
Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.

public
getCurrencySymbols ( ): Array


public
getDateTimePatterns ( ): Array
time-full,long,medium,short//date-full,long,medium,short

public static
getDefault ( ): Locale
Gets the current value of the default locale

public static
getInstance ( locale: String ): Locale
Gets the Locale object for the given locale

public
getLanguage ( ): String
Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.

public
getLocale ( ): String


public
getMonths ( ): Array


public
getName ( ): String
Getter for the programmatic name of the entire locale, with the language, country and variant separated by -.

public
getNumberElements ( ): Array


public
getNumberPatterns ( ): Array


public
getShortMonths ( ): Array


public
getShortWeekdays ( ): Array


public
getWeekdays ( ): Array


public static
setDefault ( aLocale: Locale ): Void
Sets the default locale

public
toString ( ): String
Getter for the programmatic name of the entire locale, with the language, country and variant separated by underbars.



Field Documentation

defaultLocale

public static var defaultLocale: Locale
The current default Locale


Method Documentation

addLocale

public static function addLocale(l: Locale): Void
Adds a locale to the current application

Parameters:
l
- a Locale object

getAmPmStrings

public function getAmPmStrings(): Array

getCountry

public function getCountry(): String
Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.

getCurrencySymbols

public function getCurrencySymbols(): Array

getDateTimePatterns

public function getDateTimePatterns(): Array
time-full,long,medium,short//date-full,long,medium,short

getDefault

public static function getDefault(): Locale
Gets the current value of the default locale

Returns:
the default locale

getInstance

public static function getInstance(locale: String): Locale
Gets the Locale object for the given locale

Parameters:
locale
- the id or name of a locale (id=en_US, name=en-US)
Returns:
the Locale for the given locale

getLanguage

public function getLanguage(): String
Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.

getLocale

public function getLocale(): String

getMonths

public function getMonths(): Array

getName

public function getName(): String
Getter for the programmatic name of the entire locale, with the language, country and variant separated by -.

getNumberElements

public function getNumberElements(): Array

getNumberPatterns

public function getNumberPatterns(): Array

getShortMonths

public function getShortMonths(): Array

getShortWeekdays

public function getShortWeekdays(): Array

getWeekdays

public function getWeekdays(): Array

setDefault

public static function setDefault(aLocale: Locale): Void
Sets the default locale

Parameters:
aLocale
- the new default locale

toString

public function toString(): String
Getter for the programmatic name of the entire locale, with the language, country and variant separated by underbars.


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc