Class CommonScriptModel

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

public class CommonScriptModel extends Object
Common properties of language script.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CommonScriptModel(String code, String name, String nativeName, String dir)
    Creates an instance of CommonScriptModel class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the code property: Code identifying the script.
    Get the dir property: Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommonScriptModel

      protected CommonScriptModel(String code, String name, String nativeName, String dir)
      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

      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.
    • getDir

      public String 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.