Class ResourceSimplifierStep

  • All Implemented Interfaces:
    IPipelineStep

    public class ResourceSimplifierStep
    extends BasePipelineStep
    Converts events, i.e. splits the generic skeleton of a given event resource into parts to contain no references. The skeleton parts are attached to newly created DOCUMENT_PART events. Original references are converted either to skeleton parts or TEXT_UNIT events. The sequence of DOCUMENT_PART and TEXT_UNIT events is packed into a single MULTI_EVENT event.

    For text units, the step removes the skeleton of a text unit, creating document parts for the skeleton parts before and after the content placeholder, and removes the remaining tu skeleton as holding the content placeholder as its only part.