Class Language
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Language
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Constructor Summary
Constructors Constructor Description Language() -
Method Summary
Modifier and Type Method Description StringgetCountryCode()Gets the countryCode.StringgetDirection()Gets the direction.StringgetLanguage()Gets the language.StringgetLanguageName()Gets the languageName.StringgetNativeLanguageName()Gets the nativeLanguageName.BooleanisIdentifiable()Gets the identifiable.BooleanisSupportedAsSource()Gets the supportedAsSource.BooleanisSupportedAsTarget()Gets the supportedAsTarget.BooleanisWordsSeparated()Gets the wordsSeparated.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Language
public Language()
-
-
Method Details
-
getLanguage
Gets the language.The language code for the language (for example, `af`).
- Returns:
- the language
-
getLanguageName
Gets the languageName.The name of the language in English (for example, `Afrikaans`).
- Returns:
- the languageName
-
getNativeLanguageName
Gets the nativeLanguageName.The native name of the language (for example, `Afrikaans`).
- Returns:
- the nativeLanguageName
-
getCountryCode
Gets the countryCode.The country code for the language (for example, `ZA` for South Africa).
- Returns:
- the countryCode
-
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
Gets the direction.Indicates the direction of the language: `right_to_left` or `left_to_right`.
- Returns:
- the direction
-
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
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
Gets the identifiable.Indicates whether the language supports automatic detection: `true` if the language can be detected automatically; `false` otherwise.
- Returns:
- the identifiable
-