Class ExternalTranslationProviderAttrs

java.lang.Object
com.e1c.langtool.external.ExternalTranslationProviderAttrs

public class ExternalTranslationProviderAttrs extends Object
This class contains attributes of extension for external translation provider.

See docs of com.e1c.langtool.external.externalTranslationProvider extension point to get more about attributes.

See Also:
  • Method Details

    • getId

      public String getId()
      Returns the extension's id.
      Returns:
      the extension's id
    • getName

      public String getName()
      Returns the extension's name.
      Returns:
      the extension's name
    • getOrder

      public int getOrder()
      Returns the priority order of external translation provider.
      Returns:
      priority order of provider
    • isCacheable

      public boolean isCacheable()
      Returns false if translation results of this provider shouldn't be cached.
      Returns:
      false if translation results of this provider shouldn't be cached
    • isTextProcessable

      public boolean isTextProcessable()
      Returns true if translation query text should be processed.
      Returns:
      true if translation query text should be processed
    • getProvider

      public IExternalTranslationProvider getProvider()
      Returns the provider of external translation service.
      Returns:
      the provider of external translation service