Class Language
- java.lang.Object
-
- aero.panasonic.inflight.services.contentdiscovery.v1.data.ContentDiscoveryData
-
- aero.panasonic.inflight.services.contentdiscovery.v1.data.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class aero.panasonic.inflight.services.contentdiscovery.v1.data.ContentDiscoveryData
ContentDiscoveryData.DataType
-
-
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.StringgetCode()Gets the ISO 639-3 language code.java.lang.BooleangetIsDefault()Return true if this is the default languagejava.lang.StringgetName()Gets the name of the localized language.java.lang.StringgetRegion()Gets the ISO 3166-1 alpha -2 region code.java.lang.StringtoString()-
Methods inherited from class aero.panasonic.inflight.services.contentdiscovery.v1.data.ContentDiscoveryData
getDataType
-
-
-
-
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:
toStringin classjava.lang.Object
-
-