Package com.sun.faces.component.search
Class CompositeSearchKeywordResolver
java.lang.Object
jakarta.faces.component.search.SearchKeywordResolver
com.sun.faces.component.search.CompositeSearchKeywordResolver
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(SearchKeywordResolver searchKeywordResolver) booleanisLeaf(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.booleanisPassthrough(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.booleanisResolverForKeyword(SearchExpressionContext searchExpressionContext, String keyword) Checks if the current instance of theSearchKeywordResolveris responsible for resolving the keyword.voidresolve(SearchKeywordContext context, UIComponent current, String keyword) Try to resolve one or multipleUIComponents based on the keyword and callsSearchKeywordContext.invokeContextCallback(jakarta.faces.component.UIComponent)for each resolved component.
- 
Constructor Details- 
CompositeSearchKeywordResolverpublic CompositeSearchKeywordResolver()
 
- 
- 
Method Details- 
add
- 
resolveDescription copied from class:SearchKeywordResolverTry to resolve one or multiple UIComponents based on the keyword and callsSearchKeywordContext.invokeContextCallback(jakarta.faces.component.UIComponent)for each resolved component.- Specified by:
- resolvein class- SearchKeywordResolver
- Parameters:
- context- the- SearchKeywordContext
- current- the previous resolved component or the source component (if called for the first keyword in the chain)
- keyword- the keyword
 
- 
isResolverForKeywordpublic boolean isResolverForKeyword(SearchExpressionContext searchExpressionContext, String keyword) Description copied from class:SearchKeywordResolverChecks if the current instance of the SearchKeywordResolveris responsible for resolving the keyword.- Specified by:
- isResolverForKeywordin class- SearchKeywordResolver
- Parameters:
- searchExpressionContext- the- SearchExpressionContext
- keyword- the keyword
- Returns:
- trueif it's responsible for resolving this keyword
 
- 
isPassthroughDescription copied from class:SearchKeywordResolverA 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:
- isPassthroughin class- SearchKeywordResolver
- Parameters:
- searchExpressionContext- the- SearchExpressionContext
- keyword- the keyword
- Returns:
- trueif it's passthrough keyword.
 
- 
isLeafDescription copied from class:SearchKeywordResolverA 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:
- isLeafin class- SearchKeywordResolver
- Parameters:
- searchExpressionContext- the- SearchExpressionContext
- keyword- the keyword
- Returns:
- trueif it's leaf keyword.
 
 
-