Class OkpToX2Converter


  • public class OkpToX2Converter
    extends Object
    This class is designed to convert the Okapi Core structure back into Xliff Toolkit structure.
    • Constructor Detail

      • OkpToX2Converter

        public OkpToX2Converter()
    • Method Detail

      • handleEvent

        public List<Event> handleEvent​(Event okapiEvent,
                                       XLIFF2FilterWriter xliff2FilterWriter)
        Takes an Okapi Core event and produces a list of XLIFF Toolkit Events. 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 event
        xliff2FilterWriter - 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.