Package jakarta.faces.component.search
Class SearchExpressionContext
java.lang.Object
jakarta.faces.component.search.SearchExpressionContext
A context object that is used to hold state relating to resolve a search expression.
- Since:
- 2.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchExpressionContextcreateSearchExpressionContext(FacesContext context, UIComponent source) Creates aSearchExpressionContextinstance for use with theSearchExpressionHandler.static SearchExpressionContextcreateSearchExpressionContext(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates aSearchExpressionContextinstance for use with theSearchExpressionHandler.abstract Set<SearchExpressionHint>Returns hints that influence the behavior of resolving the expression.abstract FacesContextReturns the FacesContext for the current request.abstract UIComponentReturns the source / base component from which we will start to perform our search.Returns hints that influence the behavior of the tree visit, if it's used by anSearchKeywordResolverimplementation.
-
Constructor Details
-
SearchExpressionContext
public SearchExpressionContext()
-
-
Method Details
-
getSource
Returns the source / base component from which we will start to perform our search.
- Returns:
- the source component.
- Since:
- 2.3
-
getVisitHints
Returns hints that influence the behavior of the tree visit, if it's used by an
SearchKeywordResolverimplementation.- Returns:
- a non-empty, unmodifiable collection of
VisitHints - Since:
- 2.3
- See Also:
-
getExpressionHints
Returns hints that influence the behavior of resolving the expression.
- Returns:
- a non-empty, unmodifiable collection of
SearchExpressionHints - Since:
- 2.3
-
getFacesContext
Returns the FacesContext for the current request.
- Returns:
- the FacesContext.
- Since:
- 2.3
-
createSearchExpressionContext
public static SearchExpressionContext createSearchExpressionContext(FacesContext context, UIComponent source) Creates a
SearchExpressionContextinstance for use with theSearchExpressionHandler. This method can be used to obtain a SearchExpressionContext instance without anyVisitHintorSearchExpressionHint.- Parameters:
context- the FacesContext for the current requestsource- the source / base component from which we will start to perform our search.- Returns:
- a
SearchExpressionContextinstance - Since:
- 2.3
-
createSearchExpressionContext
public static SearchExpressionContext createSearchExpressionContext(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates a
SearchExpressionContextinstance for use with theSearchExpressionHandler.- Parameters:
context- the FacesContext for the current requestsource- the source / base component from which we will start to perform our search.expressionHints- the SearchExpressionHint to apply to the search. Ifnull, no hints are applied.visitHints- the VisitHints to apply to the visit, if used by aSearchKeywordResolver. Ifnull, no hints are applied.- Returns:
- a
SearchExpressionContextinstance - Since:
- 2.3
-