public class SearchKeywordContext extends Object
SearchKeywordContext
provides context information that may be useful to
SearchKeywordResolver.resolve(javax.faces.component.search.SearchKeywordContext, javax.faces.component.UIComponent, java.lang.String)
implementations.
Constructor and Description |
---|
SearchKeywordContext(SearchExpressionContext searchExpressionContext,
ContextCallback callback,
String remainingExpression)
Construct a new context with the given arguments. |
Modifier and Type | Method and Description |
---|---|
ContextCallback |
getCallback()
Returns the |
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, 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(javax.faces.component.search.SearchKeywordContext, javax.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 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.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.