Class ApplicabilityFilterChain

    • Constructor Detail

      • ApplicabilityFilterChain

        public ApplicabilityFilterChain()
        Empty chain.
    • Method Detail

      • chain

        public ApplicabilityFilterChain chain​(ApplicabilityFilter nextFilter)
        Adds nextFilter to this filters chain.
        Parameters:
        nextFilter - a filter to be added to the chain.
        Returns:
        returns a reference to this object.
      • passesThrough

        public boolean passesThrough​(Applicability applicability)
        This method checks, whether an artifact with given applicability would pass the filter. This is true, if it passes all filters of the chain.
        Specified by:
        passesThrough in class ApplicabilityFilter
        Parameters:
        applicability - the query applicability
        Returns:
        true, if an artifact with the given applicability would pass all filters in the chain.
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a string representation