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
 

Method Detail

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 filter
file - the corresponding file element
xliffDocument - the corresponding xliff element
sourceLanguage - the source language (of the search)
targetLanguage - the target language (of the search)
matchSimilarity - the match similarity used
translationParameters - the translation parameters
dataSource - the data source for the alt-trans matches
instanceOpenTMSProperties - the openTMS properties used
Returns:
the (modified) trans-unit element