TransliterationLanguage Class

  • java.lang.Object
    • com.azure.ai.translation.text.models.TransliterationLanguage

Implements

public final class TransliterationLanguage
implements JsonSerializable<TransliterationLanguage>

The value of the transliteration property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. A key identifies a language for which text can be converted from one script to another script.

Method Summary

Modifier and Type Method and Description
static TransliterationLanguage fromJson(JsonReader jsonReader)

Reads an instance of TransliterationLanguage from the JsonReader.

String getName()

Get the name property: Display name of the language in the locale requested via Accept-Language header.

String getNativeName()

Get the nativeName property: Display name of the language in the locale native for this language.

List<TransliterableScript> getScripts()

Get the scripts property: List of scripts to convert from.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static TransliterationLanguage fromJson(JsonReader jsonReader)

Reads an instance of TransliterationLanguage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TransliterationLanguage if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: Display name of the language in the locale requested via Accept-Language header.

Returns:

the name value.

getNativeName

public String getNativeName()

Get the nativeName property: Display name of the language in the locale native for this language.

Returns:

the nativeName value.

getScripts

public List<TransliterableScript> getScripts()

Get the scripts property: List of scripts to convert from.

Returns:

the scripts value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to