de.dante.extex.language.impl
Interface LanguageCreator

All Known Implementing Classes:
LoadingLanguageManager

public interface LanguageCreator

This interface describes the features of an object which is able to provide a language instance either by loading it from an external source or by creating a new one.

Version:
$Revision: 1.3 $
Author:
Gerd Neugebauer

Method Summary
 Language createLanguageInstance(java.lang.String index)
          Create a new instance for the given index if required.
 Language loadLanguageInstance(java.lang.String index)
          Load or create a new instance for the given index if required.
 

Method Detail

createLanguageInstance

public Language createLanguageInstance(java.lang.String index)
                                throws HyphenationException
Create a new instance for the given index if required.

Parameters:
index - the symbolic name of the language
Returns:
the new instance
Throws:
HyphenationException - in case of an error

loadLanguageInstance

public Language loadLanguageInstance(java.lang.String index)
                              throws HyphenationException
Load or create a new instance for the given index if required.

Parameters:
index - the symbolic name of the language
Returns:
the new instance
Throws:
HyphenationException - in case of an error