|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.regain.util.io.MultiLocalizer
public class MultiLocalizer
Holds localizers for multiple locales.
Nested Class Summary | |
---|---|
private static class |
MultiLocalizer.BaseLocalizerFactory
A factory that creates localizers for a specific base. |
private static class |
MultiLocalizer.ClassLocalizerFactory
A factory that creates localizers for a specific class. |
private static interface |
MultiLocalizer.LocalizerFactory
A factory to use for creating a localizer for a specific locale. |
Field Summary | |
---|---|
private MultiLocalizer.LocalizerFactory |
mFactory
The factory to use for creating a localizer for a specific locale. |
private HashMap<Locale,Localizer> |
mLocalizerHash
Holds for a locale (Locale) a localizer (Localizer) |
Constructor Summary | |
---|---|
MultiLocalizer(Class<?> clazz)
Creates a new instance of MultiLocalizer. |
|
MultiLocalizer(URL baseurl,
String basename)
Creates a new instance of MultiLocalizer. |
Method Summary | |
---|---|
Localizer |
getLocalizer(Locale locale)
Gets the localizer for a specific locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private MultiLocalizer.LocalizerFactory mFactory
private HashMap<Locale,Localizer> mLocalizerHash
Constructor Detail |
---|
public MultiLocalizer(Class<?> clazz)
clazz
- The class to create the MultiLocalizer for.public MultiLocalizer(URL baseurl, String basename)
baseurl
- The URL to load the resource bundle from.basename
- The basename of the resource bundle to load.Method Detail |
---|
public Localizer getLocalizer(Locale locale)
locale
- The locale to get the localizer for.
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |