Class SearchKeywordResolver

    • Constructor Detail

      • SearchKeywordResolver

        public SearchKeywordResolver()
    • Method Detail

      • isResolverForKeyword

        public abstract boolean isResolverForKeyword​(SearchExpressionContext searchExpressionContext,
                                                     String keyword)

        Checks if the current instance of the SearchKeywordResolver is responsible for resolving the keyword.

        Parameters:
        searchExpressionContext - the SearchExpressionContext
        keyword - the keyword
        Returns:
        true if it's responsible for resolving this keyword
        Since:
        2.3
      • isPassthrough

        public boolean isPassthrough​(SearchExpressionContext searchExpressionContext,
                                     String keyword)

        A passthrough keyword is a keyword, that according to the context, does not require to be resolved on the server, and can be passed "unresolved" to the client.

        Parameters:
        searchExpressionContext - the SearchExpressionContext
        keyword - the keyword
        Returns:
        true if it's passthrough keyword.
        Since:
        2.3
      • isLeaf

        public boolean isLeaf​(SearchExpressionContext searchExpressionContext,
                              String keyword)

        A leaf keyword is a keyword that does not allow to be combined with keywords or id chains to the right. For example: @none:@parent.

        Parameters:
        searchExpressionContext - the SearchExpressionContext
        keyword - the keyword
        Returns:
        true if it's leaf keyword.
        Since:
        2.3