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