|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.util.framework.AbstractFactory
de.dante.extex.language.impl.BaseLanguageManager
This class manages the HyphenationTable
s. It is a container
which can be asked to provide an appropriate instance. This instance is
either taken from existing instances or a new instance is created.
AbstractFactory
.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
BaseLanguageManager()
Creates a new object. |
Method Summary | |
protected Language |
createLanguage(java.lang.String name)
Create a new language and put it into the table. |
Language |
getLanguage(java.lang.String name)
Return the Language for a given name. |
protected Localizer |
getLocalizer()
Getter for a localizer |
protected java.util.Map |
getTables()
Getter for the tables. |
protected java.lang.Object |
readResolve()
Restore the internal state when the instance is loaded from file. |
Methods inherited from class de.dante.util.framework.AbstractFactory |
configure, configure, createInstance, createInstance, createInstance, createInstanceForConfiguration, createInstanceForConfiguration, createInstanceForConfiguration, enableLogging, enableLogging, getConfiguration, getLogger, reconnect, selectConfiguration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public BaseLanguageManager()
Method Detail |
protected Language createLanguage(java.lang.String name) throws ConfigurationException
name
- the name of the language
ConfigurationException
- in case of a configuration errorpublic Language getLanguage(java.lang.String name) throws ConfigurationException
Language
for a given name.
If there is no language present with the given name then a new one is created.
The index in String
. This implementation does not have this restriction.
The name can be any string.
The proposal is to use a natural number for backward compatibility and ISO language codes otherwise.
getLanguage
in interface LanguageManager
name
- the name for which the language is requested
ConfigurationException
- in case of an error in the configurationLanguageManager.getLanguage(
java.lang.String)
protected Localizer getLocalizer()
protected java.util.Map getTables()
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
- in case of an error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |