Class BeforeExecutionFileFilterSet

  • All Implemented Interfaces:
    BeforeExecutionFileFilter

    public final class BeforeExecutionFileFilterSet
    extends java.lang.Object
    implements BeforeExecutionFileFilter
    A before execution file filter set applies filters to events. If a before execution file filter in the set rejects an event, then the event is rejected. Otherwise, the event is accepted.
    • Constructor Detail

      • BeforeExecutionFileFilterSet

        public BeforeExecutionFileFilterSet()
    • Method Detail

      • addBeforeExecutionFileFilter

        public void addBeforeExecutionFileFilter​(BeforeExecutionFileFilter filter)
        Adds a Filter to the set.
        Parameters:
        filter - the Filter to add.
      • removeBeforeExecutionFileFilter

        public void removeBeforeExecutionFileFilter​(BeforeExecutionFileFilter filter)
        Removes filter.
        Parameters:
        filter - filter to remove.
      • getBeforeExecutionFileFilters

        public java.util.Set<BeforeExecutionFileFilter> getBeforeExecutionFileFilters()
        Returns the Filters of the filter set.
        Returns:
        the Filters of the filter set.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • accept

        public boolean accept​(java.lang.String uri)
        Description copied from interface: BeforeExecutionFileFilter
        Determines whether or not a before execution file filtered event is accepted.
        Specified by:
        accept in interface BeforeExecutionFileFilter
        Parameters:
        uri - the uri to filter.
        Returns:
        true if the event is accepted.
      • clear

        public void clear()
        Clears the BeforeExecutionFileFilterSet.