Interface MatchCustomizer

  • All Known Implementing Classes:
    DefaultMatcherCustomizer

    public interface MatchCustomizer
    Defines a contract for plugging in a customization of the default matching mechanism.

    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​(SearchCriteria.rscSearch criterion,
                      java.lang.Object value)
        Matches all values of the specified attribute against the specified criterion. If more than one value of an attribute must be matched this method will be called several times with different values for SearchCriteria.rscSearch.value.
        Parameters:
        criterion - the defined criteria
        value - the value found in the Attribute of the provided entry
        Returns:
        true if the specified value match, false otherwise
        Throws:
        java.lang.IllegalArgumentException - thrown to denote unexpected data is provided. Make sure an appropriate message is displayed as the exception will be propagated back to the user.