public class SearchExpressionFacade extends Object
Modifier and Type | Class and Description |
---|---|
class |
SearchExpressionFacade.Options |
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 |
isOptionSet(int options,
int option) |
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 options)
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 options)
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 options)
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,
int options)
Resolves a list of
UIComponent s 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 options) |
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, int options)
UIComponent
s for the given expression or expressions.context
- The FacesContext
.source
- The source component. E.g. a button.expressions
- The search expressions.options
- The options.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, int options)
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.options
- The options.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 options)
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 options)
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.options
- The options.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 options)
UIComponent
for the given expression.context
- The FacesContext
.source
- The source component. E.g. a button.expression
- The search expression.options
- The options.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 or @none.expression
- 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.protected static boolean isOptionSet(int options, int option)
Copyright © 2015. All rights reserved.