There isn't enough commonality at present between SourceContents and
TransMemoryUnit.  The main thing is to make sure you pass a compatible
ExportTMXStrategy to TMXStreamingOutput, which is what this type
parameter achieves.

On 2013-08-01 10:11, David Mason wrote:
> In zanata-war/src/main/java/org/zanata/rest/service/ExportTMXStrategy.java:
> 
>> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
>> + */
>> +
>> +package org.zanata.rest.service;
>> +
>> +import java.io.IOException;
>> +
>> +import javax.annotation.ParametersAreNonnullByDefault;
>> +
>> +import nu.xom.Element;
>> +
>> +/**
>> + * @author Sean Flanigan <a href="mailto:sflaniga@redhat.com">sflaniga@redhat.com</a>
>> + *
>> + * @param <T> a translation unit (either SourceContents/HTextFlow or TransMemoryUnit)
> 
> Can we have the type system enforce this requirement, or is it just
> descriptive?
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zanata/zanata-server/pull/78/files#r5519722>.
> 


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat