TransliteratedText Class

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

Implements

public final class TransliteratedText
implements JsonSerializable<TransliteratedText>

Transliterated text element.

Method Summary

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

Reads an instance of TransliteratedText from the JsonReader.

String getScript()

Get the script property: A string specifying the script used in the output.

String getText()

Get the text property: A string which is the result of converting the input string to the output script.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static TransliteratedText fromJson(JsonReader jsonReader)

Reads an instance of TransliteratedText from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TransliteratedText 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.

getScript

public String getScript()

Get the script property: A string specifying the script used in the output.

Returns:

the script value.

getText

public String getText()

Get the text property: A string which is the result of converting the input string to the output script.

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to