public class CompositeSearchKeywordResolver extends SearchKeywordResolver
| Constructor and Description |
|---|
CompositeSearchKeywordResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
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 the |
void |
resolve(SearchKeywordContext context,
UIComponent current,
String keyword)
Try to resolve one or multiple |
public void add(SearchKeywordResolver searchKeywordResolver)
public void resolve(SearchKeywordContext context, UIComponent current, String keyword)
SearchKeywordResolver
Try to resolve one or multiple UIComponents based on the keyword and calls
SearchKeywordContext.invokeContextCallback(jakarta.faces.component.UIComponent) for each resolved component.
resolve in class SearchKeywordResolvercontext - the SearchKeywordContextcurrent - the previous resolved component or the source component (if called for the first keyword in the chain)keyword - the keywordpublic boolean isResolverForKeyword(SearchExpressionContext searchExpressionContext, String keyword)
SearchKeywordResolver
Checks if the current instance of the SearchKeywordResolver is responsible for resolving the keyword.
isResolverForKeyword in class SearchKeywordResolversearchExpressionContext - the SearchExpressionContextkeyword - the keywordtrue if it's responsible for resolving this keywordpublic boolean isPassthrough(SearchExpressionContext searchExpressionContext, String keyword)
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.
isPassthrough in class SearchKeywordResolversearchExpressionContext - the SearchExpressionContextkeyword - the keywordtrue if it's passthrough keyword.public boolean isLeaf(SearchExpressionContext searchExpressionContext, String keyword)
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.
isLeaf in class SearchKeywordResolversearchExpressionContext - the SearchExpressionContextkeyword - the keywordtrue if it's leaf keyword.Copyright © 1997–2020 Eclipse Foundation. All rights reserved.