public class SearchExpressionFacade extends Object
| Constructor and Description |
|---|
SearchExpressionFacade() |
| 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,
int 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,
int 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,
int 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
UIComponents 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,
int hints)
Resolves a list of
UIComponents for the given expression or expressions. |
protected 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,
String separatorString)
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,
int hints) |
public static List<javax.faces.component.UIComponent> resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions)
UIComponents for the given expression or expressions.context - The FacesContext.source - The source component. E.g. a button.expressions - The search expressions.List with resolved UIComponents.public static List<javax.faces.component.UIComponent> resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, String expressions, int hints)
UIComponents 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 UIComponents.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, int 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,
int 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, int 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,
int 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,
String separatorString)
ProjectStage is
ProjectStage.Development.context - The FacesContext.source - The source component. E.g. a button.expression - The search expression.separatorChar - The separator as char.separatorString - The separator as string.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.protected 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 © 2018. All rights reserved.