|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.spec.LocaleSpec
public class LocaleSpec
Represents a Locale tag. Generally compatible with java.util.Locale, but with some extra localization data from the spec. Named "LocaleSpec" so as to not conflict with java.util.Locale No localization. No user pref substitution.
| Constructor Summary | |
|---|---|
LocaleSpec(Element element,
Uri specUrl)
|
|
| Method Summary | |
|---|---|
String |
getCountry()
Locale@country |
String |
getLanguage()
Locale@lang |
String |
getLanguageDirection()
Locale@language_direction |
Locale |
getLocale()
|
MessageBundle |
getMessageBundle()
Locale/msg |
Uri |
getMessages()
Locale@messages |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleSpec(Element element,
Uri specUrl)
throws SpecParserException
specUrl - The url that the spec is loaded from. messages is assumed
to be relative to this path.
SpecParserException - If language_direction is not valid| Method Detail |
|---|
public Locale getLocale()
public String getLanguage()
public String getCountry()
public String getLanguageDirection()
public Uri getMessages()
public MessageBundle getMessageBundle()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||