public class Language
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
countryCode |
protected java.lang.String |
direction |
protected java.lang.Boolean |
identifiable |
protected java.lang.String |
language |
protected java.lang.String |
languageName |
protected java.lang.String |
nativeLanguageName |
protected java.lang.Boolean |
supportedAsSource |
protected java.lang.Boolean |
supportedAsTarget |
protected java.lang.Boolean |
wordsSeparated |
Constructor and Description |
---|
Language() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCountryCode()
Gets the countryCode.
|
java.lang.String |
getDirection()
Gets the direction.
|
java.lang.String |
getLanguage()
Gets the language.
|
java.lang.String |
getLanguageName()
Gets the languageName.
|
java.lang.String |
getNativeLanguageName()
Gets the nativeLanguageName.
|
java.lang.Boolean |
isIdentifiable()
Gets the identifiable.
|
java.lang.Boolean |
isSupportedAsSource()
Gets the supportedAsSource.
|
java.lang.Boolean |
isSupportedAsTarget()
Gets the supportedAsTarget.
|
java.lang.Boolean |
isWordsSeparated()
Gets the wordsSeparated.
|
protected java.lang.String language
@SerializedName(value="language_name") protected java.lang.String languageName
@SerializedName(value="native_language_name") protected java.lang.String nativeLanguageName
@SerializedName(value="country_code") protected java.lang.String countryCode
@SerializedName(value="words_separated") protected java.lang.Boolean wordsSeparated
protected java.lang.String direction
@SerializedName(value="supported_as_source") protected java.lang.Boolean supportedAsSource
@SerializedName(value="supported_as_target") protected java.lang.Boolean supportedAsTarget
protected java.lang.Boolean identifiable
public java.lang.String getLanguage()
The language code for the language (for example, `af`).
public java.lang.String getLanguageName()
The name of the language in English (for example, `Afrikaans`).
public java.lang.String getNativeLanguageName()
The native name of the language (for example, `Afrikaans`).
public java.lang.String getCountryCode()
The country code for the language (for example, `ZA` for South Africa).
public java.lang.Boolean isWordsSeparated()
Indicates whether words of the language are separated by whitespace: `true` if the words are separated; `false` otherwise.
public java.lang.String getDirection()
Indicates the direction of the language: `right_to_left` or `left_to_right`.
public java.lang.Boolean isSupportedAsSource()
Indicates whether the language can be used as the source for translation: `true` if the language can be used as the source; `false` otherwise.
public java.lang.Boolean isSupportedAsTarget()
Indicates whether the language can be used as the target for translation: `true` if the language can be used as the target; `false` otherwise.
public java.lang.Boolean isIdentifiable()
Indicates whether the language supports automatic detection: `true` if the language can be detected automatically; `false` otherwise.