public class SearchKeywordContext
extends java.lang.Object
SearchKeywordContext provides context information that may be useful to
SearchKeywordResolver.resolve(jakarta.faces.component.search.SearchKeywordContext, jakarta.faces.component.UIComponent, java.lang.String)
implementations.
Constructor and Description |
---|
SearchKeywordContext(SearchExpressionContext searchExpressionContext,
ContextCallback callback,
java.lang.String remainingExpression)
Construct a new context with the given arguments. |
Modifier and Type | Method and Description |
---|---|
ContextCallback |
getCallback()
Returns the |
java.lang.String |
getRemainingExpression()
Returns the remaining expression for the current request. |
SearchExpressionContext |
getSearchExpressionContext()
Returns the |
void |
invokeContextCallback(UIComponent target)
This method will be called by an implementation of |
boolean |
isKeywordResolved()
Returns if the keyword was resolved. |
void |
setKeywordResolved(boolean keywordResolved)
Sets if the keyword was resolved. |
public SearchKeywordContext(SearchExpressionContext searchExpressionContext, ContextCallback callback, java.lang.String remainingExpression)
Construct a new context with the given arguments.
searchExpressionContext
- the SearchExpressionContext
for the current request.callback
- the ContextCallback
.remainingExpression
- the remaining expression.public void invokeContextCallback(UIComponent target)
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.
target
- the resolved UIComponent
.public SearchExpressionContext getSearchExpressionContext()
Returns the SearchExpressionContext
for the current request.
SearchExpressionContext
.public ContextCallback getCallback()
Returns the ContextCallback
for the current request.
ContextCallback
.public java.lang.String getRemainingExpression()
Returns the remaining expression for the current request.
public boolean isKeywordResolved()
Returns if the keyword was resolved.
public void setKeywordResolved(boolean keywordResolved)
Sets if the keyword was resolved.
keywordResolved
- if the keyword was resolved.