Class NameTranslationRequest

java.lang.Object
com.basistech.rosette.apimodel.Request
com.basistech.rosette.apimodel.NameTranslationRequest

public final class NameTranslationRequest extends Request
Request for name translation.
  • Constructor Details

    • NameTranslationRequest

      public NameTranslationRequest(String profileId, String name, String entityType, com.basistech.util.ISO15924 sourceScript, com.basistech.util.LanguageCode sourceLanguageOfOrigin, com.basistech.util.LanguageCode sourceLanguageOfUse, com.basistech.util.LanguageCode targetLanguage, com.basistech.util.ISO15924 targetScript, com.basistech.util.TransliterationScheme targetScheme)
  • Method Details

    • builder

    • getName

      public String getName()
      Returns:
      the name to be translated
    • getEntityType

      public String getEntityType()
      Returns:
      the entity type of the name
    • getSourceScript

      public com.basistech.util.ISO15924 getSourceScript()
      Returns:
      code for the name's script
    • getSourceLanguageOfOrigin

      public com.basistech.util.LanguageCode getSourceLanguageOfOrigin()
      Returns:
      code for the name's language of origin
    • getSourceLanguageOfUse

      public com.basistech.util.LanguageCode getSourceLanguageOfUse()
      Returns:
      code for the name's language of use
    • getTargetLanguage

      public com.basistech.util.LanguageCode getTargetLanguage()
      Returns:
      code for the language to translate to
    • getTargetScript

      public com.basistech.util.ISO15924 getTargetScript()
      Returns:
      code for the target script
    • getTargetScheme

      public com.basistech.util.TransliterationScheme getTargetScheme()
      Returns:
      the transliteration scheme for the translation
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Request
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Request
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Request
    • toString

      public String toString()
      Overrides:
      toString in class Request