|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pelzer.util.l10n.localizers.Localizer
public abstract class Localizer
Wrapper for language or territory.
| Field Summary | |
|---|---|
protected int |
id
The underlying id for an instance in persistent storage. |
protected static String |
WILDCARD_IDENTIFIER
|
| Constructor Summary | |
|---|---|
Localizer(String identifier,
String description)
Identifier is the unique id that the ISO (or other standards body) has assigned this localizer, description is the english description, native description is the locale-specific description, or null if it's not available or the same. |
|
Localizer(String identifier,
String description,
String nativeDescription)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Localizer localizer)
|
boolean |
equals(Object obj)
|
String |
getDescription()
Human-readable description of the identifier. |
String |
getIdentifier()
A shorted code, usually very short based on various ISO codes for language, territory or script. |
String |
getNativeDescription()
|
int |
hashCode()
|
boolean |
isWildCard()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String WILDCARD_IDENTIFIER
protected int id
| Constructor Detail |
|---|
public Localizer(String identifier,
String description)
public Localizer(String identifier,
String description,
String nativeDescription)
| Method Detail |
|---|
public boolean isWildCard()
public String getIdentifier()
public String getDescription()
public String getNativeDescription()
public int compareTo(Localizer localizer)
compareTo in interface Comparable<Localizer>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||