Class SearchKeywordContext

java.lang.Object
jakarta.faces.component.search.SearchKeywordContext

public class SearchKeywordContext extends Object

SearchKeywordContext provides context information that may be useful to SearchKeywordResolver.resolve(SearchKeywordContext, UIComponent, String) implementations.

Since:
2.3
  • Constructor Details

  • Method Details

    • invokeContextCallback

      public void invokeContextCallback(UIComponent target)

      This method will be called by an implementation of SearchKeywordResolver.resolve(SearchKeywordContext, UIComponent, String) with the resolved component for the keyword.

      Parameters:
      target - the resolved UIComponent.
      Since:
      2.3
    • getSearchExpressionContext

      public SearchExpressionContext getSearchExpressionContext()

      Returns the SearchExpressionContext for the current request.

      Returns:
      the SearchExpressionContext.
      Since:
      2.3
    • getCallback

      public ContextCallback getCallback()

      Returns the ContextCallback for the current request.

      Returns:
      the ContextCallback.
      Since:
      2.3
    • getRemainingExpression

      public String getRemainingExpression()

      Returns the remaining expression for the current request.

      Returns:
      the remaining expression.
      Since:
      2.3
    • isKeywordResolved

      public boolean isKeywordResolved()

      Returns if the keyword was resolved.

      Returns:
      if the keyword was resolved.
      Since:
      2.3
    • setKeywordResolved

      public void setKeywordResolved(boolean keywordResolved)

      Sets if the keyword was resolved.

      Parameters:
      keywordResolved - if the keyword was resolved.
      Since:
      2.3