Class CommonScriptModel
java.lang.Object
com.azure.ai.translation.text.models.CommonScriptModel
- Direct Known Subclasses:
TransliterableScript
Common properties of language script.
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommonScriptModel
(String code, String name, String nativeName, String dir) Creates an instance of CommonScriptModel class. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code property: Code identifying the script.getDir()
Get the dir property: Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.getName()
Get the name property: Display name of the script in the locale requested via Accept-Language header.Get the nativeName property: Display name of the language in the locale native for the language.
-
Constructor Details
-
CommonScriptModel
Creates an instance of CommonScriptModel class.- Parameters:
code
- the code value to set.name
- the name value to set.nativeName
- the nativeName value to set.dir
- the dir value to set.
-
-
Method Details
-
getCode
Get the code property: Code identifying the script.- Returns:
- the code value.
-
getName
Get the name property: Display name of the script in the locale requested via Accept-Language header.- Returns:
- the name value.
-
getNativeName
Get the nativeName property: Display name of the language in the locale native for the language.- Returns:
- the nativeName value.
-
getDir
Get the dir property: Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.- Returns:
- the dir value.
-