Package com.luciad.format.gdf
Class TLcdGDFLanguage
java.lang.Object
com.luciad.format.gdf.TLcdGDFLanguage
Represents a language, with its MARC Language Code and a textual description.
The list of available languages is based on the MARC Language Code list,
as described in the GDF 4 specification.
- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns the textual description of this language.static TLcdGDFLanguage
getLanguage
(int aIndex) Returns the language at the given index.static TLcdGDFLanguage
getLanguage
(String aMarcCode) Returns the language with the given MARC Language Code.static int
Returns the number of languages that are available.Returns the MARC Language Code of this language.toString()
Returns the textual description of this language.
-
Method Details
-
getLanguageCount
public static int getLanguageCount()Returns the number of languages that are available.- Returns:
- the number of languages that are available.
-
getLanguage
Returns the language at the given index.- Parameters:
aIndex
- the index of the language to be returned.- Returns:
- the language at the given index.
- Throws:
IndexOutOfBoundsException
-
getLanguage
Returns the language with the given MARC Language Code.- Parameters:
aMarcCode
- the MARC Language Code of the language to be returned.- Returns:
- the language with the given MARC Language code.
- Throws:
IllegalArgumentException
- if no language exists for the given MARC Language Code.
-
getMarcLanguageCode
Returns the MARC Language Code of this language.- Returns:
- the MARC Language Code of this language.
-
getDescription
Returns the textual description of this language.- Returns:
- the textual description of this language.
-
toString
Returns the textual description of this language.
-