Package com.sun.faces.component.search
Class CompositeSearchKeywordResolver
java.lang.Object
jakarta.faces.component.search.SearchKeywordResolver
com.sun.faces.component.search.CompositeSearchKeywordResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SearchKeywordResolver searchKeywordResolver) 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.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.boolean
isResolverForKeyword
(SearchExpressionContext searchExpressionContext, String keyword) Checks if the current instance of theSearchKeywordResolver
is responsible for resolving the keyword.void
resolve
(SearchKeywordContext context, UIComponent current, String keyword) Try to resolve one or multipleUIComponent
s based on the keyword and callsSearchKeywordContext.invokeContextCallback(jakarta.faces.component.UIComponent)
for each resolved component.
-
Constructor Details
-
CompositeSearchKeywordResolver
public CompositeSearchKeywordResolver()
-
-
Method Details
-
add
-
resolve
Description copied from class:SearchKeywordResolver
Try to resolve one or multiple
UIComponent
s based on the keyword and callsSearchKeywordContext.invokeContextCallback(jakarta.faces.component.UIComponent)
for each resolved component.- Specified by:
resolve
in classSearchKeywordResolver
- Parameters:
context
- theSearchKeywordContext
current
- the previous resolved component or the source component (if called for the first keyword in the chain)keyword
- the keyword
-
isResolverForKeyword
public boolean isResolverForKeyword(SearchExpressionContext searchExpressionContext, String keyword) Description copied from class:SearchKeywordResolver
Checks if the current instance of the
SearchKeywordResolver
is responsible for resolving the keyword.- Specified by:
isResolverForKeyword
in classSearchKeywordResolver
- Parameters:
searchExpressionContext
- theSearchExpressionContext
keyword
- the keyword- Returns:
true
if it's responsible for resolving this keyword
-
isPassthrough
Description copied from class:SearchKeywordResolver
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.
- Overrides:
isPassthrough
in classSearchKeywordResolver
- Parameters:
searchExpressionContext
- theSearchExpressionContext
keyword
- the keyword- Returns:
true
if it's passthrough keyword.
-
isLeaf
Description copied from class:SearchKeywordResolver
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.
- Overrides:
isLeaf
in classSearchKeywordResolver
- Parameters:
searchExpressionContext
- theSearchExpressionContext
keyword
- the keyword- Returns:
true
if it's leaf keyword.
-