public class SearchExpressionFacade extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
EXPRESSION_SEPARATORS |
Modifier and Type | Method and Description |
---|---|
protected static void |
cannotFindComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression) |
protected static boolean |
isNestable(String expression)
Checks if the given expression can be nested.
|
protected static boolean |
isPassTroughExpression(String expression)
Checks if the given expression must not be resolved by a
SearchExpressionResolver , before rendering it to the client. |
static String |
resolveClientId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression)
Resolves a
UIComponent clientId and/or passtrough expression for the given expression. |
static String |
resolveClientId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression,
Set<SearchExpressionHint> hints)
Resolves a
UIComponent clientId and/or passtrough expression for the given expression. |
static String |
resolveClientIds(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions)
Resolves a list of
UIComponent clientIds and/or passtrough expressions for the given expression or expressions. |
static String |
resolveClientIds(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions,
Set<SearchExpressionHint> hints)
Resolves a list of
UIComponent clientIds and/or passtrough expressions for the given expression or expressions. |
static javax.faces.component.UIComponent |
resolveComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression)
Resolves a
UIComponent for the given expression. |
static javax.faces.component.UIComponent |
resolveComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression,
Set<SearchExpressionHint> hints)
Resolves a
UIComponent for the given expression. |
static List<javax.faces.component.UIComponent> |
resolveComponents(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions)
Resolves a list of
UIComponent s for the given expression or expressions. |
static List<javax.faces.component.UIComponent> |
resolveComponents(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions,
Set<SearchExpressionHint> hints)
Resolves a list of
UIComponent s for the given expression or expressions. |
static String[] |
split(javax.faces.context.FacesContext context,
String value,
char... separators)
Splits the given string by the given separator, but ignoring separators inside parentheses.
|
protected static String[] |
splitExpressions(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions) |
protected static void |
validateExpression(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expression,
char separatorChar)
Validates the given search expression.
|
protected static void |
validateExpressions(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
String expressions,
String[] splittedExpressions)
Validates the given search expressions.
|
protected static void |
validateRenderer(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent source,
javax.faces.component.UIComponent component,
String expression,
Set<SearchExpressionHint> hints) |
public static List<javax.faces.component.UIComponent> resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
UIComponent
s for the given expression or expressions.context
- The FacesContext
.source
- The source component. E.g. a button.expressions
- The search expressions.List
with resolved UIComponent
s.public static List<javax.faces.component.UIComponent> resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions, Set<SearchExpressionHint> hints)
UIComponent
s for the given expression or expressions.context
- The FacesContext
.source
- The source component. E.g. a button.expressions
- The search expressions.hints
- The hints.List
with resolved UIComponent
s.public static String resolveClientIds(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
UIComponent
clientIds and/or passtrough expressions for the given expression or expressions.context
- The FacesContext
.source
- The source component. E.g. a button.expressions
- The search expressions.List
with resolved clientIds and/or passtrough expression (like PFS, widgetVar).public static String resolveClientIds(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions, Set<SearchExpressionHint> hints)
UIComponent
clientIds and/or passtrough expressions for the given expression or expressions.context
- The FacesContext
.source
- The source component. E.g. a button.expressions
- The search expressions.hints
- The hints.List
with resolved clientIds and/or passtrough expression (like PFS, widgetVar).protected static void validateRenderer(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent component, String expression, Set<SearchExpressionHint> hints)
public static String resolveClientId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression)
UIComponent
clientId and/or passtrough expression for the given expression.context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.public static String resolveClientId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression, Set<SearchExpressionHint> hints)
UIComponent
clientId and/or passtrough expression for the given expression.context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.hints
- The hints.public static javax.faces.component.UIComponent resolveComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression)
UIComponent
for the given expression.context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.UIComponent
or null
.public static javax.faces.component.UIComponent resolveComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression, Set<SearchExpressionHint> hints)
UIComponent
for the given expression.context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.hints
- The hints.UIComponent
or null
.protected static void cannotFindComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression)
protected static String[] splitExpressions(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
protected static void validateExpression(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expression, char separatorChar)
ProjectStage
is
ProjectStage.Development
.context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.separatorChar
- The separator as char.protected static void validateExpressions(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions, String[] splittedExpressions)
ProjectStage
is
ProjectStage.Development
.context
- The FacesContext
.source
- The source component. E.g. a button.expressions
- The search expression.splittedExpressions
- The already splitted expressions.public static String[] split(javax.faces.context.FacesContext context, String value, char... separators)
context
- The current FacesContext
.value
- The string value.separators
- The separators.protected static boolean isPassTroughExpression(String expression)
SearchExpressionResolver
, before rendering it to the client. e.g. @all orexpression
- The search expression.true
if it should just be rendered without manipulation or resolving.protected static boolean isNestable(String expression)
expression
- The search expression.true
if it's nestable.Copyright © 2020. All rights reserved.