Class Language


  • public class Language
    extends ContentDiscoveryData
    This class is Language model class. Language displays all the languages that the content has been translated to.

    • Language code – displays based on the ISO 639-3 language code. Example: eng (English) or aus (Australia)

    • Region – displays based on ISO 3166-1 alpha -2. Example: the region designator for the United States is US, United Kingdom is GB and Australia is AU.

    • Script - displays based on ISO 15924-1. The script is the name of the writing system. Each script or set of graphic characters is given both a four letter code and a numeric code. Example: the script for Greek is Grek 200 and Japanese is Jpan 413.
    • Constructor Summary

      Constructors 
      Constructor Description
      Language​(JSONObject json, java.lang.String lang, java.lang.String defaultLang)
      ISO 639-3 language code
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()
      Gets the ISO 639-3 language code.
      java.lang.Boolean getIsDefault()
      Return true if this is the default language
      java.lang.String getName()
      Gets the name of the localized language.
      java.lang.String getRegion()
      Gets the ISO 3166-1 alpha -2 region code.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Language

        public Language​(JSONObject json,
                        java.lang.String lang,
                        java.lang.String defaultLang)
        ISO 639-3 language code
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Gets the ISO 639-3 language code. Example: eng (English) or aus (Australia).
      • getRegion

        public java.lang.String getRegion()
        Gets the ISO 3166-1 alpha -2 region code. Example: United States is US, United Kingdom is GB and Australia is AU.
      • getName

        public java.lang.String getName()
        Gets the name of the localized language. Example: Espanol and English
      • getIsDefault

        public java.lang.Boolean getIsDefault()
        Return true if this is the default language
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object