Class TuFilteringStep

    • Constructor Detail

      • TuFilteringStep

        public TuFilteringStep()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: IPipelineStep
        Gets the localizable name of this step.
        Returns:
        the localizable name of this step.
      • getDescription

        public String getDescription()
        Description copied from interface: IPipelineStep
        Gets a short localizable description of what this step does.
        Returns:
        the text of a short description of what this step does.
      • processFiltered

        protected Event processFiltered​(Event tuEvent)
        Process a given text unit event. This method can modify the event's text unit resource, can drop the event and return NO_OP, can create and return a new event (for example, a DOCUMENT_PART event), or it can produce several events and return them packed in a MULTI_EVENT's resource.

        This method can be overridden in subclasses to change the way text unit events are processed if accepted.

        If not overridden, clears the "translatable" flag of accepted text units, thus marking the text units non-translatable.

        Parameters:
        tuEvent - the text unit event which resource can be modified.
        Returns:
        the modified event