Class TranslationQuery

java.lang.Object
com.e1c.langtool.query.TranslationQuery
Direct Known Subclasses:
MultiTranslationQuery, SingleTranslationQuery

public class TranslationQuery extends Object
This class encapsulates the base attributes for translation queries.
    It contains information about:
  • source language
  • target language
  • text processing is needed before and after translation or not
  • Constructor Details

    • TranslationQuery

      public TranslationQuery(String sourceLocale, String targetLocale, boolean isProcessingNeeded)
      Creates a new translation query.
      Parameters:
      sourceLocale - the source language of text
      targetLocale - the target language to translate
      isProcessing - information text processing is needed or not
  • Method Details

    • getSourceLanguage

      public String getSourceLanguage()
    • getTargetLanguage

      public String getTargetLanguage()
    • isProcessingNeeded

      public boolean isProcessingNeeded()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object