Interface IComponentSearchProvider.IComponentQueryMatcher

  • Enclosing interface:
    IComponentSearchProvider

    public static interface IComponentSearchProvider.IComponentQueryMatcher
    A contract for objects that can match a component against a specific query and generate queries for components.
    • Method Detail

      • matches

        boolean matches​(IComponent<?> component,
                        Object query)
        Returns true if a given component matches a given query, false otherwise.
        Parameters:
        component - The tested component
        query - The tested query
        Returns:
        true if a given component matches a given query, false otherwise
      • getQuery

        Object getQuery​(IComponent<?> rootComponent,
                        IComponent<?> component)
        Returns a query for a given component relative to a given parent component that will be recognized by this matcher.
        Parameters:
        rootComponent - The root component relative to which the query should be obtained
        component - The component for which the query will be obtained
        Returns:
        The query