SearchKeywordContext provides context information that may be useful to
 SearchKeywordResolver.resolve(jakarta.faces.component.search.SearchKeywordContext, jakarta.faces.component.UIComponent, java.lang.String) implementations.
 
- Since:
 - 2.3
 
- 
Constructor Summary
ConstructorsConstructorDescriptionSearchKeywordContext(SearchExpressionContext searchExpressionContext, ContextCallback callback, String remainingExpression) Construct a new context with the given arguments. - 
Method Summary
Modifier and TypeMethodDescriptionReturns theContextCallbackfor the current request.Returns the remaining expression for the current request.Returns theSearchExpressionContextfor the current request.voidinvokeContextCallback(UIComponent target) This method will be called by an implementation ofSearchKeywordResolver.resolve(jakarta.faces.component.search.SearchKeywordContext, jakarta.faces.component.UIComponent, java.lang.String)with the resolved component for the keyword.booleanReturns if the keyword was resolved.voidsetKeywordResolved(boolean keywordResolved) Sets if the keyword was resolved. 
- 
Constructor Details
- 
SearchKeywordContext
public SearchKeywordContext(SearchExpressionContext searchExpressionContext, ContextCallback callback, String remainingExpression) Construct a new context with the given arguments.
- Parameters:
 searchExpressionContext- theSearchExpressionContextfor the current request.callback- theContextCallback.remainingExpression- the remaining expression.
 
 - 
 - 
Method Details
- 
invokeContextCallback
This method will be called by an implementation of
SearchKeywordResolver.resolve(jakarta.faces.component.search.SearchKeywordContext, jakarta.faces.component.UIComponent, java.lang.String)with the resolved component for the keyword.- Parameters:
 target- the resolvedUIComponent.- Since:
 - 2.3
 
 - 
getSearchExpressionContext
Returns the
SearchExpressionContextfor the current request.- Returns:
 - the 
SearchExpressionContext. - Since:
 - 2.3
 
 - 
getCallback
Returns the
ContextCallbackfor the current request.- Returns:
 - the 
ContextCallback. - Since:
 - 2.3
 
 - 
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
 
 
 -