Enum Language
java.lang.Object
java.lang.Enum<Language>
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.external.Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
,java.lang.constant.Constable
Universal language enum for all background knowledge data sets.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Language
inferLanguageChar2
(String language) Infer the correct enum instance given a char 2 language String.Assumed ISO 609-1 codes (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).Transform the language to the char3 format that dbnary is using.Transform the language to the char2 format that dbnary is using.static Language
Returns the enum constant of this type with the specified name.static Language[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ARABIC
-
CHINESE
-
CZECH
-
DUTCH
-
ENGLISH
-
FRENCH
-
GERMAN
-
ITALIAN
-
PORTUGUESE
-
RUSSIAN
-
SPANISH
-
UNKNOWN
-
-
Field Details
-
LOGGER
private static org.slf4j.Logger LOGGER
-
-
Constructor Details
-
Language
private Language()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toSparqlChar2
Assumed ISO 609-1 codes (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).- Returns:
- Character two representation of the language.
-
toWiktionaryChar3
Transform the language to the char3 format that dbnary is using.- Returns:
- The char3 language.
-
toWiktionaryLanguageTag
Transform the language to the char2 format that dbnary is using.- Returns:
- The char2 language.
-
inferLanguageChar2
Infer the correct enum instance given a char 2 language String.- Parameters:
language
- Language String.- Returns:
- Enum instance.
-