|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.olafpanz.translationtable.LocaleDef
final class LocaleDef
Defines a locale for the TranslationDocument
| Field Summary | |
|---|---|
private boolean |
isMaster
Marks the master locale of current table |
private java.util.Locale |
locale
The locale of this definition |
private java.util.Locale |
templateLocale
Use translation from this locale, if no value exists. |
| Constructor Summary | |
|---|---|
LocaleDef(java.util.Locale locale,
java.util.Locale templateLocale,
boolean isMaster)
Create new locale definition |
|
| Method Summary | |
|---|---|
private int |
cmp(java.lang.String s0,
java.lang.String s1)
Compare 2 strings allowing null. |
int |
compareTo(LocaleDef def)
|
java.util.Locale |
getLocale()
|
java.util.Locale |
getTemplateLocale()
|
boolean |
isDefault()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.util.Locale locale
private final java.util.Locale templateLocale
private final boolean isMaster
| Constructor Detail |
|---|
public LocaleDef(java.util.Locale locale,
java.util.Locale templateLocale,
boolean isMaster)
locale - The locale of this definitiontemplateLocale - Use translation from this locale, if no value exists.isMaster - Marks the master locale of current table| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.util.Locale getLocale()
public java.util.Locale getTemplateLocale()
public boolean isDefault()
public int compareTo(LocaleDef def)
compareTo in interface java.lang.Comparable<LocaleDef>Comparable.compareTo(java.lang.Object)
private final int cmp(java.lang.String s0,
java.lang.String s1)
s0 - First strings1 - Second string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||