de.init.its.process.re
Class XLIFFReader

java.lang.Object
  extended by de.init.its.process.re.XLIFFReader

public class XLIFFReader
extends java.lang.Object

A Simple XLIFF Reader. This reader will convert an XLIFF Source into a tree format something like this: XLIFFDocument | File | Body / | \ TU TU TU / \ / \ / \ S T S T S T / | \ g g g where TU is a translation unit consisting of (S)ource and (T)arget elements. Each Source and Target element can have text nodes, simple generic xliff groupings and the relevant MRK Elements indicating its content. This XLIFF Reader is not general purpose! Instead it may be only useful in this context

Author:
m.kandora

Nested Class Summary
static class XLIFFReader.XLIFF2ITSMapperService
          XLIFF to ITS Mapper Class.
(package private) static class XLIFFReader.XLIFFHandler
          Simple xliff XML Content Handler
 
Constructor Summary
XLIFFReader()
           
 
Method Summary
 ItsTree<Element> read(java.lang.String xml)
          Read an xml as String and return it as ItsTree represenation
 ItsTree<Element> read(java.net.URI xliffsource)
          Read an external XLIFF Source and return a ItsTree representation of this source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XLIFFReader

public XLIFFReader()
Method Detail

read

public ItsTree<Element> read(java.lang.String xml)
Read an xml as String and return it as ItsTree represenation

Parameters:
xml -
Returns:

read

public ItsTree<Element> read(java.net.URI xliffsource)
Read an external XLIFF Source and return a ItsTree representation of this source

Parameters:
xliffsource -
Returns: