Class TLcdGDFLanguage

java.lang.Object
com.luciad.format.gdf.TLcdGDFLanguage

public class TLcdGDFLanguage extends Object
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 Details

    • getLanguageCount

      public static int getLanguageCount()
      Returns the number of languages that are available.
      Returns:
      the number of languages that are available.
    • getLanguage

      public static TLcdGDFLanguage getLanguage(int aIndex)
      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

      public static TLcdGDFLanguage getLanguage(String aMarcCode)
      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

      public String getMarcLanguageCode()
      Returns the MARC Language Code of this language.
      Returns:
      the MARC Language Code of this language.
    • getDescription

      public String getDescription()
      Returns the textual description of this language.
      Returns:
      the textual description of this language.
    • toString

      public String toString()
      Returns the textual description of this language.
      Overrides:
      toString in class Object
      Returns:
      the textual description of this language.