Interface SearchCriteriaMatcher

  • All Known Implementing Classes:
    DefaultSearchCriteriaMatcher

    public interface SearchCriteriaMatcher
    An interface defining a contract for matching an Entry's values against a built SearchCriteria.

    Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.
    Since:
    7.2
    • Method Detail

      • match

        boolean match​(Entry entry,
                      SearchCriteria sc)
        Matches the specified entry against the defined search criteria using the default mechanism.
        Parameters:
        entry - the actual entry to match
        sc - the criteria definition
        Returns:
        true if the entry matches the defined search criteria
      • match

        boolean match​(Entry entry,
                      SearchCriteria sc,
                      java.util.Map<java.lang.String,​MatchCustomizer> customize)
        Matches specified entry against the defined search criteria using the specified customization mechanism.
        Parameters:
        entry - the actual entry to match
        sc - the criteria definition
        customize - a map containing the name of the attributes for which a customization should be applied. A match-all * can be used to match all attributes.
        Returns: