public abstract class WebFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static WebFactory |
webFactory
Single instance of the factory that is used to process web sources
|
Constructor and Description |
---|
WebFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
codeToLanguage(java.lang.String languageCode,
boolean threeChar)
Convert the language code into a full language description.
|
java.util.ArrayList<java.lang.String> |
getAllLanguages()
Get the different types of language that freedicts can process.
|
java.util.ArrayList<java.lang.String> |
getDefaultLanguage()
Get the default language that definitions can be declared in.
|
static WebFactory |
getInstance()
Get the created instance of the web factory.
|
java.lang.String |
getUri(java.lang.String dictionaryType)
Get the dictionary uri depending on the dictionary type.
|
java.lang.String |
languageToCode(java.lang.String languageName,
boolean threeChar)
Convert the language into a standard language code.
|
static void |
setWebFactory(WebFactory thisWebFactory)
Set the instance of the web factory to be used.
|
protected static WebFactory webFactory
public static WebFactory getInstance()
public static void setWebFactory(WebFactory thisWebFactory)
thisWebFactory
- the web factory that is retrieved.public java.lang.String getUri(java.lang.String dictionaryType)
dictionaryType
- the dictionary type.public java.util.ArrayList<java.lang.String> getDefaultLanguage()
public java.util.ArrayList<java.lang.String> getAllLanguages()
public java.lang.String codeToLanguage(java.lang.String languageCode, boolean threeChar)
languageCode
- the code to convert.threeChar
- true if return the three char version.public java.lang.String languageToCode(java.lang.String languageName, boolean threeChar)
languageName
- the language description to convert.threeChar
- true if return the three char version.