Package com.e1c.langtool.external
Class ExternalTranslationProviderAttrs.Builder
java.lang.Object
com.e1c.langtool.external.ExternalTranslationProviderAttrs.Builder
- Enclosing class:
- ExternalTranslationProviderAttrs
It's handy tool to create an instances of
ExternalTranslationProviderAttrs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new instance of external translation provider from parameters that was set in this builder.cacheable(boolean cacheable) Sets the caching mode of external translation provider.order(int order) Sets the priority order of external translation provider.textProcessable(boolean value) Sets the mode of text processing for external translation provider.
-
Constructor Details
-
Builder
- Parameters:
id- the extension idname- the extension's nameprovider- the external translation provider
-
-
Method Details
-
order
Sets the priority order of external translation provider.- Parameters:
order- priority order- Returns:
- this builder
-
cacheable
Sets the caching mode of external translation provider.- Parameters:
cacheable- caching mode- Returns:
- this builder
-
textProcessable
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
-