Class TuFilteringStep

    • Constructor Detail

      • TuFilteringStep

        public TuFilteringStep()
    • Method Detail

      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • 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