LanguageScript Class
- java.
lang. Object - com.
azure. ai. translation. text. models. LanguageScript
- com.
Implements
public class LanguageScript
implements JsonSerializable<LanguageScript>
Common properties of language script.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | LanguageScript(String code, String name, String nativeName, LanguageDirectionality directionality) |
Creates an instance of Language |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Language |
fromJson(JsonReader jsonReader)
Reads an instance of Language |
| String |
getCode()
Get the code property: Code identifying the script. |
|
Language |
getDirectionality()
Get the directionality property: Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. |
| String |
getName()
Get the name property: Display name of the script in the locale requested via Accept-Language header. |
| String |
getNativeName()
Get the native |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
LanguageScript
protected LanguageScript(String code, String name, String nativeName, LanguageDirectionality directionality)
Creates an instance of LanguageScript class.
Parameters:
Method Details
fromJson
public static LanguageScript fromJson(JsonReader jsonReader)
Reads an instance of LanguageScript from the JsonReader.
Parameters:
Returns:
Throws:
getCode
public String getCode()
Get the code property: Code identifying the script.
Returns:
getDirectionality
public LanguageDirectionality getDirectionality()
Get the directionality property: Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.
Returns:
getName
public String getName()
Get the name property: Display name of the script in the locale requested via Accept-Language header.
Returns:
getNativeName
public String getNativeName()
Get the nativeName property: Display name of the language in the locale native for the language.
Returns: