public final class ISO639_3
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ISO639_3.LanguageCode
A class which represents a language code.
|
Constructor and Description |
---|
ISO639_3()
Constructs a new ISO639_3 and loads the list of languages from the .tab file in the classpath.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,ISO639_3.LanguageCode> |
getLanguages()
Gets a list of all languages.
|
java.util.Hashtable<java.lang.String,ISO639_3.LanguageCode> |
getLanguagesByScopeAndType(ISO639_3.LanguageCode.Scope scope,
ISO639_3.LanguageCode.Type type)
Gets a filtered list of languages.
|
ISO639_3.LanguageCode |
getMultilingualCode() |
static void |
main(java.lang.String[] args) |
public ISO639_3()
java.lang.RuntimeException
- If the .tab file is not present in the classpath or if parsing fails.public final java.util.Map<java.lang.String,ISO639_3.LanguageCode> getLanguages()
public final java.util.Hashtable<java.lang.String,ISO639_3.LanguageCode> getLanguagesByScopeAndType(ISO639_3.LanguageCode.Scope scope, ISO639_3.LanguageCode.Type type)
scope
- Must not be null.type
- Must not be null.Hashtable
of language codes with the given scope and type. The key in the returned list is the ID
of the language code, which is the 3-letter code of ISO639-3. The given Hashtable is free for modification.public final ISO639_3.LanguageCode getMultilingualCode()
public static void main(java.lang.String[] args)