Class RawDocumentToFilterEventsStep

  • All Implemented Interfaces:
    IPipelineStep

    public class RawDocumentToFilterEventsStep
    extends BasePipelineStep
    Converts a RawDocument into filter events.

    This class implements the IPipelineStep interface for a step that takes a RawDocument and to generate its corresponding events either: a provided IFilter implementation, or the filter configuration mapper accessible through the pipeline's context.

    This step can also work with the filters that generates multiple documents.

    See Also:
    FilterEventsToRawDocumentStep, FilterEventsWriterStep
    • Constructor Detail

      • RawDocumentToFilterEventsStep

        public RawDocumentToFilterEventsStep()
        Creates a new RawDocumentToFilterEventsStep object. This constructor is needed to be able to instantiate an object from newInstance()
      • RawDocumentToFilterEventsStep

        public RawDocumentToFilterEventsStep​(IFilter filter)
        Creates a new RawDocumentToFilterEventsStep object with a given filter. Use this constructor to create an object that is using a filter set using the one provided here, or using setFilter(IFilter), not using the filter configuration mapper of the pipeline context.
        Parameters:
        filter - the filter to set.
    • Method Detail

      • setFilter

        public void setFilter​(IFilter filter)
      • setFilterConfigurationId

        public void setFilterConfigurationId​(String filterConfigId)
      • 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.
      • isDone

        public boolean isDone()
        Description copied from interface: IPipelineStep
        Steps that can generate Events such as IFilters return false until no more events can be created. Steps which do not create Events always return true.
        Specified by:
        isDone in interface IPipelineStep
        Overrides:
        isDone in class BasePipelineStep
        Returns:
        false if can generate more events, true otherwise.