Class LanguageScript
java.lang.Object
com.azure.ai.translation.text.models.LanguageScript
- Direct Known Subclasses:
TransliterableScript
Common properties of language script.
-
Constructor Summary
ModifierConstructorDescriptionprotected
LanguageScript
(String code, String name, String nativeName, LanguageDirectionality directionality) Creates an instance of LanguageScript class. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code property: Code identifying the script.Get the directionality 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
-
LanguageScript
protected LanguageScript(String code, String name, String nativeName, LanguageDirectionality directionality) Creates an instance of LanguageScript class.- Parameters:
code
- the code value to set.name
- the name value to set.nativeName
- the nativeName value to set.directionality
- the directionality 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.
-
getDirectionality
Get the directionality property: Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.- Returns:
- the directionality value.
-