net.sf.okapi.common.resource.simplifier

## Interface IEventConverter

- All Known Subinterfaces:
    IResourceSimplifier
  All Known Implementing Classes:
    AbstractResourceSimplifier, GenericSkeletonSimplifier, ResourceSimplifier

      public interface IEventConverter

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Event` | `convert(Event event)` Converts a given event into a different event, modifying either its type or attached resource.
    `java.util.List<Event>` | `convertToList(Event event)` Converts a given event into a list of events.

- - ### Method Detail

    - #### convert

          Event convert(Event event)

      Converts a given event into a different event, modifying either its type or attached resource.
      Parameters:
        `event` - the given event.
      Returns:
        a modified event. Can be MULTI_EVENT containing a list of events.

    - #### convertToList

          java.util.List<Event> convertToList(Event event)

      Converts a given event into a list of events.
      Parameters:
        `event` - the given event.
      Returns:
        a list of events produced by the event converter. The implementation should ensure that no MULTI_EVENT events are present in the list (MultiEvent resources are "unpacked").