Package net.sf.okapi.filters.xliff2
Class OkpToX2Converter
- java.lang.Object
-
- net.sf.okapi.filters.xliff2.OkpToX2Converter
-
public class OkpToX2Converter extends Object
This class is designed to convert the Okapi Core structure back into Xliff Toolkit structure.
-
-
Constructor Summary
Constructors Constructor Description OkpToX2Converter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Event>handleEvent(Event okapiEvent, XLIFF2FilterWriter xliff2FilterWriter)Takes an Okapi Core event and produces a list of XLIFF ToolkitEvents.
-
-
-
Method Detail
-
handleEvent
public List<Event> handleEvent(Event okapiEvent, XLIFF2FilterWriter xliff2FilterWriter)
Takes an Okapi Core event and produces a list of XLIFF ToolkitEvents. A list of events is produced because Okapi Core isn't a 1 to 1 map of the XLIFF Toolkit.- Parameters:
okapiEvent- The Okapi Core eventxliff2FilterWriter- The filter writer being used to write the XLIFF 2.0 file- Returns:
- The XLIFF Toolkit events that can be saved out to a file.
-
-