|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.ft.Language
public final class Language
This class contains language tokens which are valid for the xml:lang attribute. As specified by W3C, the values of the attribute are language identifiers as defined by IETF BCP 47, Tags for the Identification of Languages.
Method Summary | |
---|---|
int |
compareTo(Language o)
|
static Language |
def()
Returns the user language as default language, or English, if the user language cannot be assigned. |
boolean |
equals(java.lang.Object o)
|
static Language |
get(Prop prop)
Returns an instance for the current language property, or English as default language. |
static Language |
get(java.lang.String lang)
Returns an instance for the specified language code, or null . |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Language get(java.lang.String lang)
null
.
lang
- name or code of language
public static Language get(Prop prop)
prop
- properties
public static Language def()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Language o)
compareTo
in interface java.lang.Comparable<Language>
public 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 |