public class JavaLocalizerFactory extends LocalizerFactory implements Serializable
| Constructor and Description |
|---|
JavaLocalizerFactory(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
JavaLocalizerFactory |
copy()
Copy the state of this factory to create a new LocalizerFactory
|
Numberer |
getNumberer(String language,
String country)
Get the numberer for a given language
|
void |
setLanguageProperties(String lang,
Properties properties)
Set properties for a particular language.
|
void |
setLocalizationClass(String language,
String className)
Set the name of the Localization class to be used for a particular language
|
public JavaLocalizerFactory(Configuration config)
public void setLanguageProperties(String lang, Properties properties)
setLanguageProperties in class LocalizerFactorylang - the languageproperties - properties of this languagepublic void setLocalizationClass(String language, String className)
language - the language code, in ISO format, for example "fr" or "fr-CA"className - the name of the localization class. This must be a class that implements
the interface Numberer; however, no error is reported if
the class cannot be loaded or does not implement this interface; the system simply
falls back to using the default localization class.public Numberer getNumberer(String language, String country)
getNumberer in class LocalizerFactorylanguage - the language code (for example "de" or "en-GB"country - the country, as used in format-date(). This is not the country associated
with the language, but the one associated with the date to be formatted. It is primarily
used to determine a civil time zone name.public JavaLocalizerFactory copy()
copy in class LocalizerFactoryCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.