|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basistech.util.TextDomain
public class TextDomain
Collection of linguistic properties of a text which are independent of its message; this currently includes script, language, and transliteration scheme. Any text is in a domain (with zero or more components under specified). Instances of this class are immutable.
Constructor Summary | |
---|---|
TextDomain(int script,
int language,
TransliterationScheme scheme)
Deprecated. Use the one with enum args |
|
TextDomain(ISO15924 script,
LanguageCode language,
TransliterationScheme scheme)
Create a TextDomain object. |
|
TextDomain(LanguageCode language)
Create a TextDomain object for the "native" domain of the language (see LanguageCode.getDefaulatScript()) |
Method Summary | |
---|---|
int |
compareTo(TextDomain o)
|
boolean |
equals(Object o)
Determine if the contents of this TextDomain object are equal those in the given object. |
LanguageCode |
getLanguage()
Get the language of this domain. |
ISO15924 |
getScript()
Get the script of this domain. |
TransliterationScheme |
getTransliterationScheme()
Get the transliteration scheme of this domain. |
int |
hashCode()
Returns the hash code for this TextDomain. |
String |
toString()
Retrieve a string representation of the TextDomain. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextDomain(ISO15924 script, LanguageCode language, TransliterationScheme scheme)
script
- the ISO 15924 numeric script idlanguage
- the ISO 639 numeric langauge idscheme
- the TransliterationSchemepublic TextDomain(LanguageCode language)
language
- the ISO 639 numeric langauge idpublic TextDomain(int script, int language, TransliterationScheme scheme)
script
- the ISO 15924 numeric script idlanguage
- the ISO 639 numeric langauge idscheme
- the TransliterationSchemeMethod Detail |
---|
public boolean equals(Object o)
equals
in class Object
o
- object to compare
public int hashCode()
hashCode
in class Object
public ISO15924 getScript()
public LanguageCode getLanguage()
public TransliterationScheme getTransliterationScheme()
public String toString()
toString
in class Object
public int compareTo(TextDomain o)
compareTo
in interface Comparable<TextDomain>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |