java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.language_translator.v3.model.Language
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class Language
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Response payload for languages.
  • Constructor Details

    • Language

      public Language()
  • Method Details

    • getLanguage

      public String getLanguage()
      Gets the language.

      The language code for the language (for example, `af`).

      Returns:
      the language
    • getLanguageName

      public String getLanguageName()
      Gets the languageName.

      The name of the language in English (for example, `Afrikaans`).

      Returns:
      the languageName
    • getNativeLanguageName

      public String getNativeLanguageName()
      Gets the nativeLanguageName.

      The native name of the language (for example, `Afrikaans`).

      Returns:
      the nativeLanguageName
    • getCountryCode

      public String getCountryCode()
      Gets the countryCode.

      The country code for the language (for example, `ZA` for South Africa).

      Returns:
      the countryCode
    • isWordsSeparated

      public Boolean isWordsSeparated()
      Gets the wordsSeparated.

      Indicates whether words of the language are separated by whitespace: `true` if the words are separated; `false` otherwise.

      Returns:
      the wordsSeparated
    • getDirection

      public String getDirection()
      Gets the direction.

      Indicates the direction of the language: `right_to_left` or `left_to_right`.

      Returns:
      the direction
    • isSupportedAsSource

      public Boolean isSupportedAsSource()
      Gets the supportedAsSource.

      Indicates whether the language can be used as the source for translation: `true` if the language can be used as the source; `false` otherwise.

      Returns:
      the supportedAsSource
    • isSupportedAsTarget

      public Boolean isSupportedAsTarget()
      Gets the supportedAsTarget.

      Indicates whether the language can be used as the target for translation: `true` if the language can be used as the target; `false` otherwise.

      Returns:
      the supportedAsTarget
    • isIdentifiable

      public Boolean isIdentifiable()
      Gets the identifiable.

      Indicates whether the language supports automatic detection: `true` if the language can be detected automatically; `false` otherwise.

      Returns:
      the identifiable