Class ExternalTranslationProviderAttrs.Builder

java.lang.Object
com.e1c.langtool.external.ExternalTranslationProviderAttrs.Builder
Enclosing class:
ExternalTranslationProviderAttrs

public static class ExternalTranslationProviderAttrs.Builder extends Object
It's handy tool to create an instances of ExternalTranslationProviderAttrs.
  • Constructor Details

  • Method Details

    • order

      public ExternalTranslationProviderAttrs.Builder order(int order)
      Sets the priority order of external translation provider.
      Parameters:
      order - priority order
      Returns:
      this builder
    • cacheable

      public ExternalTranslationProviderAttrs.Builder cacheable(boolean cacheable)
      Sets the caching mode of external translation provider.
      Parameters:
      cacheable - caching mode
      Returns:
      this builder
    • textProcessable

      public ExternalTranslationProviderAttrs.Builder textProcessable(boolean value)
      Sets the mode of text processing for external translation provider.
      Parameters:
      value -
      Returns:
    • build

      Creates a new instance of external translation provider from parameters that was set in this builder.
      Returns:
      a new instance of external translation provider