Package jakarta.faces.component.search
Class SearchExpressionContext
- java.lang.Object
-
- jakarta.faces.component.search.SearchExpressionContext
-
public abstract class SearchExpressionContext extends Object
A context object that is used to hold state relating to resolve a search expression.
- Since:
- 2.3
- See Also:
SearchExpressionHandler
-
-
Constructor Summary
Constructors Constructor Description SearchExpressionContext()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static 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>getExpressionHints()Returns hints that influence the behavior of resolving the expression.abstract FacesContextgetFacesContext()Returns the FacesContext for the current request.abstract UIComponentgetSource()Returns the source / base component from which we will start to perform our search.abstract Set<VisitHint>getVisitHints()Returns hints that influence the behavior of the tree visit, if it's used by anSearchKeywordResolverimplementation.
-
-
-
Method Detail
-
getSource
public abstract UIComponent getSource()
Returns the source / base component from which we will start to perform our search.
- Returns:
- the source component.
- Since:
- 2.3
-
getVisitHints
public abstract Set<VisitHint> 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:
VisitContext.getHints()
-
getExpressionHints
public abstract Set<SearchExpressionHint> getExpressionHints()
Returns hints that influence the behavior of resolving the expression.
- Returns:
- a non-empty, unmodifiable collection of
SearchExpressionHints - Since:
- 2.3
-
getFacesContext
public abstract FacesContext 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
-
-