Top Fields Constructors Methods
com.sun.faces.component.search

public Class CompositeSearchKeywordResolver

extends SearchKeywordResolver
Class Inheritance
Imports
java.util.ArrayList, .List, javax.faces.component.UIComponent, javax.faces.component.search.SearchExpressionContext, .SearchKeywordContext, .SearchKeywordResolver

Field Summary

Modifier and TypeField and Description
private static final int
private final List<SearchKeywordResolver>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(SearchKeywordResolver searchKeywordResolver)

public boolean
isLeaf(SearchExpressionContext searchExpressionContext, String
the keyword
keyword
)

Overrides javax.faces.component.search.SearchKeywordResolver.isLeaf.

A leaf keyword is a keyword that does not allow to be combined with keywords or id chains to the right.

public boolean
isPassthrough(SearchExpressionContext searchExpressionContext, String
the keyword
keyword
)

Overrides javax.faces.component.search.SearchKeywordResolver.isPassthrough.

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.

public boolean
isResolverForKeyword(SearchExpressionContext searchExpressionContext, String
the keyword
keyword
)

Implements abstract javax.faces.component.search.SearchKeywordResolver.isResolverForKeyword.

Checks if the current instance of the SearchKeywordResolver is responsible for resolving the keyword.

public void
resolve(SearchKeywordContext
the SearchKeywordContext
context
,
UIComponent
the previous resolved component or the source component (if called for the first keyword in the chain)
current
,
String
the keyword
keyword
)

Implements abstract javax.faces.component.search.SearchKeywordResolver.resolve.

Try to resolve one or multiple UIComponents based on the keyword and calls SearchKeywordContext#invokeContextCallback(javax.faces.component.UIComponent) for each resolved component.

Field Detail

NUMBER_OF_DEFAULT_IMPLEMENTATIONSback to summary
private static final int NUMBER_OF_DEFAULT_IMPLEMENTATIONS
resolversback to summary
private final List<SearchKeywordResolver> resolvers

Constructor Detail

CompositeSearchKeywordResolverback to summary
public CompositeSearchKeywordResolver()

Method Detail

addback to summary
public void add(SearchKeywordResolver searchKeywordResolver)
isLeafback to summary
public boolean isLeaf(SearchExpressionContext searchExpressionContext, String keyword)

Overrides javax.faces.component.search.SearchKeywordResolver.isLeaf.

Doc from javax.faces.component.search.SearchKeywordResolver.isLeaf.

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.

Parameters
searchExpressionContext:SearchExpressionContext

the SearchExpressionContext

keyword:String

the keyword

Returns:boolean

true if it's leaf keyword.

Annotations
@Override
isPassthroughback to summary
public boolean isPassthrough(SearchExpressionContext searchExpressionContext, String keyword)

Overrides javax.faces.component.search.SearchKeywordResolver.isPassthrough.

Doc from javax.faces.component.search.SearchKeywordResolver.isPassthrough.

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.

Parameters
searchExpressionContext:SearchExpressionContext

the SearchExpressionContext

keyword:String

the keyword

Returns:boolean

true if it's passthrough keyword.

Annotations
@Override
isResolverForKeywordback to summary
public boolean isResolverForKeyword(SearchExpressionContext searchExpressionContext, String keyword)

Implements abstract javax.faces.component.search.SearchKeywordResolver.isResolverForKeyword.

Doc from javax.faces.component.search.SearchKeywordResolver.isResolverForKeyword.

Checks if the current instance of the SearchKeywordResolver is responsible for resolving the keyword.

Parameters
searchExpressionContext:SearchExpressionContext

the SearchExpressionContext

keyword:String

the keyword

Returns:boolean

true if it's responsible for resolving this keyword

Annotations
@Override
resolveback to summary
public void resolve(SearchKeywordContext context, UIComponent current, String keyword)

Implements abstract javax.faces.component.search.SearchKeywordResolver.resolve.

Doc from javax.faces.component.search.SearchKeywordResolver.resolve.

Try to resolve one or multiple UIComponents based on the keyword and calls SearchKeywordContext#invokeContextCallback(javax.faces.component.UIComponent) for each resolved component.

Parameters
context:SearchKeywordContext

the SearchKeywordContext

current:UIComponent

the previous resolved component or the source component (if called for the first keyword in the chain)

keyword:String

the keyword

Annotations
@Override