Class LangText


  • public class LangText
    extends java.lang.Object
    This class is LangText class. Language Text consists of the 639-1/3 language code and text value. Example

          "title" : [
              {
              "lang":"eng",
              "value":"Kids Movies"
              }
           ]
    
     
    Example

          "description" : [
              {
              "lang":"eng",
              "value":"Kids Movies"
              }
          ],
    
    • Constructor Summary

      Constructors 
      Constructor Description
      LangText​(java.lang.String lang, java.lang.String value)
      Language Text consists of the 639-1/3 language code and text value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLang()
      Gets the ISO 639-1/3 language code.
      java.lang.String getValue()
      Gets the text value associated with the ISO 639-1/3 language code.
      • Methods inherited from class java.lang.Object

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

      • LangText

        public LangText​(java.lang.String lang,
                        java.lang.String value)
        Language Text consists of the 639-1/3 language code and text value.
    • Method Detail

      • getLang

        public java.lang.String getLang()
        Gets the ISO 639-1/3 language code.

        If not specified or available, defaults to language code defined by the airline.
        Returns:
        ISO 639-1/3 language code.
      • getValue

        public java.lang.String getValue()
        Gets the text value associated with the ISO 639-1/3 language code.

        Example: lang: eng value: Comedy
        Returns:
        Text value associated with the language code.