|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.request.Locale
public class Locale
defines a locale for the pulse system.
| Constructor Summary | |
|---|---|
protected |
Locale()
used by JAXB. |
|
Locale(java.lang.String l,
java.lang.String c,
java.lang.String v,
boolean d)
creates a new Locale. |
| Method Summary | |
|---|---|
void |
addAlias(Locale alias)
adds an alias for the locale. |
boolean |
equals(java.lang.Object o)
checks if a given Object is equal to this
Locale. |
java.util.Collection<Locale> |
getAliases()
|
java.lang.String |
getCountry()
|
java.lang.String |
getLanguage()
|
java.lang.String |
getVariant()
|
int |
hashCode()
returns a hash code for the instance. |
boolean |
isDefault()
|
boolean |
isDefaultLanguage()
returns the preference value of the Locale. |
boolean |
isInactive()
returns whether the Locale is inactive. |
void |
setCountry(java.lang.String c)
|
void |
setDefault(boolean d)
sets the default-flag of the locale. |
void |
setDefaultLanguage(boolean b)
sets the default language flag. |
void |
setInactive(boolean b)
marks or unmarks a Locale as inactive. |
void |
setLanguage(java.lang.String l)
|
void |
setVariant(java.lang.String v)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Locale()
public Locale(java.lang.String l,
java.lang.String c,
java.lang.String v,
boolean d)
l - the languagec - the country, or nullv - the variant, or nulld - flag, indicating whether the locale is the default locale| Method Detail |
|---|
public final java.util.Collection<Locale> getAliases()
public final void addAlias(Locale alias)
alias - the alias to add.public final java.lang.String getCountry()
public final void setCountry(java.lang.String c)
c - the country to set.public final java.lang.String getLanguage()
public final void setLanguage(java.lang.String l)
l - The language to set.public final java.lang.String getVariant()
public final void setVariant(java.lang.String v)
v - The variant to set.public final boolean isDefault()
true, if the locale is the default locale.public final void setDefault(boolean d)
d - true, if the locale shall be the default localepublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
Object is equal to this
Locale.
An Object is equal to this Locale, if it is an
instance of Locale with the same values for country,
language and variant.
equals in class java.lang.Objecto - the object to check
true, if the given object is an instance of
Locale with the same values for country, language
and variant.public final void setInactive(boolean b)
Locale as inactive.
b - the flag to setpublic final boolean isInactive()
Locale is inactive.
Locale is inactivepublic final boolean isDefaultLanguage()
Locale.
true, if the locale is marked to be a default
languagepublic final void setDefaultLanguage(boolean b)
b - the default language flag to setpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||