Class LanguageScript

java.lang.Object
com.azure.ai.translation.text.models.LanguageScript
Direct Known Subclasses:
TransliterableScript

public class LanguageScript extends Object
Common properties of language script.
  • 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

      public String getCode()
      Get the code property: Code identifying the script.
      Returns:
      the code value.
    • getName

      public String getName()
      Get the name property: Display name of the script 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 the language.
      Returns:
      the nativeName value.
    • 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:
      the directionality value.