de.folt.models.datamodel
Interface Filter
- All Superinterfaces:
- java.util.Observer
public interface Filter
- extends java.util.Observer
This interface implements the a filter to be applied to a trans-unit element
- Author:
- klemens
|
Method Summary |
org.jdom.Element |
run(org.jdom.Element transUnit,
org.jdom.Element file,
XliffDocument xliffDocument,
java.lang.String sourceLanguage,
java.lang.String targetLanguage,
int matchSimilarity,
java.util.Hashtable<java.lang.String,java.lang.Object> translationParameters,
DataSource dataSource,
OpenTMSProperties instanceOpenTMSProperties)
This method applies a filter and/or a sort to a xliff trans-unit element. |
| Methods inherited from interface java.util.Observer |
update |
run
org.jdom.Element run(org.jdom.Element transUnit,
org.jdom.Element file,
XliffDocument xliffDocument,
java.lang.String sourceLanguage,
java.lang.String targetLanguage,
int matchSimilarity,
java.util.Hashtable<java.lang.String,java.lang.Object> translationParameters,
DataSource dataSource,
OpenTMSProperties instanceOpenTMSProperties)
- This method applies a filter and/or a sort to a xliff trans-unit element. It is called at the end of the execution from within the translate method and allows to modify a the trans-unit element created from the translate method.
- Parameters:
transUnit - the trans-unit to filterfile - the corresponding file elementxliffDocument - the corresponding xliff elementsourceLanguage - the source language (of the search)targetLanguage - the target language (of the search)matchSimilarity - the match similarity usedtranslationParameters - the translation parametersdataSource - the data source for the alt-trans matchesinstanceOpenTMSProperties - the openTMS properties used
- Returns:
- the (modified) trans-unit element