Class NameTranslationResponse

java.lang.Object
com.basistech.rosette.apimodel.Response
com.basistech.rosette.apimodel.NameTranslationResponse

public class NameTranslationResponse extends Response
name translation result
  • Method Details

    • builder

    • getSourceScript

      public com.basistech.util.ISO15924 getSourceScript()
      Returns:
      the code for the script of the name to translate
    • getSourceLanguageOfOrigin

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

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

      public com.basistech.util.LanguageCode getTargetLanguage()
      Returns:
      the target name's language code
    • getTargetScript

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

      public com.basistech.util.TransliterationScheme getTargetScheme()
      Returns:
      the transliteration scheme used
    • getTranslation

      public String getTranslation()
      Returns:
      the translation
    • getConfidence

      public Double getConfidence()
      Returns:
      the translation confidence (0.0-1.0)
    • equals

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

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

      public int hashCode()
      Overrides:
      hashCode in class Response