Package com.e1c.langtool.query
Interface ISingleTranslationQuery
- All Known Subinterfaces:
IContextTranslationQuery
- All Known Implementing Classes:
ContextTranslationQuery,ContextTranslationQuery,LanguageFeatureValueItem,SelectableTextCellEditor.ApplicableTranslationQuery,SingleLanguageFeatureValueItem,SingleLanguageFeatureValueItem,SingleTranslationQuery
public interface ISingleTranslationQuery
Encapsulates a translation query for single text.
Note that this interface also can be used in selection providers for
dispatching translation queries to views that will process them.
In this case the realizers of this interface must provides an immutability
of query instances. When it's necessary to apply a result of translation
query that is dispatched by selection provider this interface
should be mixed by IApplicable interface. For using
ISingleTranslationQuery in not selection mechanism
(for example in IExternalTranslationProvider) it's highly recommended
to use the following immutable realization: SingleTranslationQuery.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the code of source language of text.Returns the code of target language to translate.getText()Returns the text to translate.booleanReturns true if the text (or texts) needs of processing.
-
Method Details
-
getText
String getText()Returns the text to translate.- Returns:
- the text to translate. Can't be
null.
-
getSourceLanguage
String getSourceLanguage()Returns the code of source language of text.- Returns:
- the code of source language. Can't be
null.
-
getTargetLanguage
String getTargetLanguage()Returns the code of target language to translate.- Returns:
- the code of target language to translate. Can't be
null.
-
isProcessingNeeded
boolean isProcessingNeeded()Returns true if the text (or texts) needs of processing.- Returns:
- true if the text (or texts) needs of processing
-