Package com.e1c.langtool.external
Class ExternalTranslationProviderAttrs
java.lang.Object
com.e1c.langtool.external.ExternalTranslationProviderAttrs
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIt's handy tool to create an instances ofExternalTranslationProviderAttrs. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns the extension's id.getName()Returns the extension's name.intgetOrder()Returns the priority order of external translation provider.Returns the provider of external translation service.booleanReturns false if translation results of this provider shouldn't be cached.booleanReturns true if translation query text should be processed.
-
Method Details
-
getId
Returns the extension's id.- Returns:
- the extension's id
-
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
Returns the provider of external translation service.- Returns:
- the provider of external translation service
-