Package com.ilib
Class IlibLocale
- java.lang.Object
- 
- com.ilib.IlibLocale
 
- 
 public class IlibLocale extends java.lang.ObjectIlibLocale
- 
- 
Constructor SummaryConstructors Constructor Description IlibLocale(java.lang.String spec)IlibLocale(java.lang.String language, java.lang.String region, java.lang.String script, java.lang.String variant)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleanequals(java.lang.String spec)java.util.LocalegetJavaLocale()Return the equivalent Java locale for this ilib locale.java.lang.StringgetLanguage()java.lang.StringgetRegion()java.lang.StringgetScript()java.lang.StringgetSpec()java.lang.StringgetVariant()booleanisCompatibleWith(IlibLocale other)Return whether or not the current locale is compatible with the given locale.protected booleanisLanguageCode(java.lang.String str)booleanisPseudo()protected booleanisRegionCode(java.lang.String str)protected booleanisScriptCode(java.lang.String str)java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
isLanguageCodeprotected boolean isLanguageCode(java.lang.String str) 
 - 
isRegionCodeprotected boolean isRegionCode(java.lang.String str) 
 - 
isScriptCodeprotected boolean isScriptCode(java.lang.String str) 
 - 
getSpecpublic java.lang.String getSpec() - Returns:
- the locale specifier
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getLanguagepublic java.lang.String getLanguage() 
 - 
getRegionpublic java.lang.String getRegion() 
 - 
getScriptpublic java.lang.String getScript() 
 - 
getVariantpublic java.lang.String getVariant() 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.String spec) - Parameters:
- spec-
- Returns:
- whether this locale represents the same locale as the given spec
 
 - 
isCompatibleWithpublic boolean isCompatibleWith(IlibLocale other) Return whether or not the current locale is compatible with the given locale. A locale is compatible with another locale if the other locale is one of its ancestors. That is, if the current locale inherits from the given locale eventually, then they are compatible.- Parameters:
- other- the locale to check against
- Returns:
- true if the the current locale is compatible with the other locale
 
 - 
isPseudopublic boolean isPseudo() - Returns:
- true if this is the pseudolocalization locale
 
 - 
getJavaLocalepublic java.util.Locale getJavaLocale() Return the equivalent Java locale for this ilib locale.- Returns:
- the equivalent Java locale
 
 
- 
 
-