au.edu.swin.synergy.plugin.dialect
Class BLocale
java.lang.Object
|
+--au.edu.swin.synergy.plugin.dialect.BLocale
- public class BLocale
- extends Object
This version of Locale simply allows us to
the toString() method to return the display name
rather than the codes.
- Author:
- Tristan Austin
Constructor Summary |
BLocale(String language,
String country,
String variant)
Creates a BLocale object as per the java.util.Locale
constructor. |
Method Summary |
Locale |
getLocale()
Gets the locale this object represents |
String |
toString()
This will use the display name as the
value to show the user. |
BLocale
public BLocale(String language,
String country,
String variant)
- Creates a BLocale object as per the java.util.Locale
constructor.
- Parameters:
language
- The language of the localecountry
- The country of the localevariant
- Any variant required- See Also:
Locale
toString
public String toString()
- This will use the display name as the
value to show the user.
- Returns:
- The display name for the user
- Overrides:
- toString in class Object
getLocale
public Locale getLocale()
- Gets the locale this object represents
- Returns:
- The actual locale object