|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.framework.AbstractFactory
org.extex.language.impl.BaseLanguageManager
public class BaseLanguageManager
This class manages the HyphenationTables. 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. |
| Fields inherited from class org.extex.framework.AbstractFactory |
|---|
CLASS_ATTRIBUTE, DEFAULT_ATTRIBUTE, SELECT_ATTRIBUTE |
| 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<java.lang.String,Language> |
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 org.extex.framework.AbstractFactory |
|---|
configure, configure, createInstance, createInstance, createInstance, createInstance, createInstanceForConfiguration, createInstanceForConfiguration, createInstanceForConfiguration, enableLogging, enableLogging, getConfiguration, getLogger, getResourceFinder, reconnect, selectConfiguration, setResourceFinder |
| 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)
Language for a given name.
If there is no language present with the given name then a new one is created or loaded.
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 LanguageManagername - the name for which the language is requested
LanguageManager.getLanguage(java.lang.String)protected Localizer getLocalizer()
protected java.util.Map<java.lang.String,Language> 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 | |||||||||