|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.i18n.server.GwtLocaleImpl
public class GwtLocaleImpl
Class representing GWT locales and conversion to/from other formats. These locales correspond to BCP47.
Field Summary |
---|
Fields inherited from interface com.google.gwt.i18n.shared.GwtLocale |
---|
DEFAULT_LOCALE |
Method Summary | |
---|---|
int |
compareTo(GwtLocale o)
The default comparison is a lexical ordering. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<GwtLocale> |
getAliases()
Return the list of aliases for this locale. |
java.lang.String |
getAsString()
Return the locale as a fixed-format string suitable for use in searching for localized resources. |
GwtLocale |
getCanonicalForm()
Returns this locale in canonical form. |
java.util.List<GwtLocale> |
getCompleteSearchList()
Return the complete list of locales to search for the current locale. |
java.util.List<GwtLocale> |
getInheritanceChain()
Return a list of locales to search for, in order of preference. |
java.lang.String |
getLanguage()
|
java.lang.String |
getLanguageNotNull()
|
java.lang.String |
getRegion()
|
java.lang.String |
getRegionNotNull()
|
java.lang.String |
getScript()
|
java.lang.String |
getScriptNotNull()
|
java.lang.String |
getVariant()
|
java.lang.String |
getVariantNotNull()
|
int |
hashCode()
|
boolean |
inheritsFrom(GwtLocale parent)
Return true if this locale inherits from the specified locale. |
boolean |
isDefault()
|
java.lang.String |
toString()
|
boolean |
usesSameScript(GwtLocale other)
Checks if this locale uses the same script as another locale, taking into account default scripts. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int compareTo(GwtLocale o)
GwtLocale
compareTo
in interface GwtLocale
compareTo
in interface java.lang.Comparable<GwtLocale>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.List<GwtLocale> getAliases()
GwtLocale
getAliases
in interface GwtLocale
public java.lang.String getAsString()
GwtLocale
getAsString
in interface GwtLocale
public GwtLocale getCanonicalForm()
getCanonicalForm
in interface GwtLocale
public java.util.List<GwtLocale> getCompleteSearchList()
GwtLocale
getCompleteSearchList
in interface GwtLocale
public java.util.List<GwtLocale> getInheritanceChain()
getAliases()
to expand those.
getInheritanceChain
in interface GwtLocale
public java.lang.String getLanguage()
getLanguage
in interface GwtLocale
public java.lang.String getLanguageNotNull()
getLanguageNotNull
in interface GwtLocale
public java.lang.String getRegion()
getRegion
in interface GwtLocale
public java.lang.String getRegionNotNull()
getRegionNotNull
in interface GwtLocale
public java.lang.String getScript()
getScript
in interface GwtLocale
public java.lang.String getScriptNotNull()
getScriptNotNull
in interface GwtLocale
public java.lang.String getVariant()
getVariant
in interface GwtLocale
public java.lang.String getVariantNotNull()
getVariantNotNull
in interface GwtLocale
public int hashCode()
hashCode
in class java.lang.Object
public boolean inheritsFrom(GwtLocale parent)
inheritsFrom
in interface GwtLocale
parent
- locale to test against
public boolean isDefault()
isDefault
in interface GwtLocale
public java.lang.String toString()
toString
in interface GwtLocale
toString
in class java.lang.Object
public boolean usesSameScript(GwtLocale other)
usesSameScript
in interface GwtLocale
other
-
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |