public class ELTools extends Object
| Constructor and Description |
|---|
ELTools() |
| Modifier and Type | Method and Description |
|---|---|
static javax.el.ValueExpression |
createValueExpression(String p_expression)
Caching
|
static javax.el.ValueExpression |
createValueExpression(String p_expression,
Class expectedType) |
static Object |
evalAsObject(String p_expression)
Evaluates an EL expression into an object.
|
static String |
evalAsString(String p_expression)
Evaluates an EL expression into a string.
|
static List<String> |
getArrayProperties(String p_expression,
boolean p_recursive)
Returns a list of String denoting every primitively typed property of a certain bean.
|
static NGBeanAttributeInfo |
getBeanAttributeInfos(javax.faces.component.UIComponent c) |
static String |
getCoreValueExpression(javax.faces.component.UIComponent component) |
static List<String> |
getEveryProperty(String p_expression,
boolean p_recursive)
Returns a list of String denoting every primitively typed property of a certain bean.
|
static String |
getNGModel(javax.faces.component.UIComponent p_component) |
static Class<?> |
getType(String p_expression)
Yields the type of the variable given by an expression.
|
static Class<?> |
getType(javax.faces.component.UIComponent p_component)
Yields the type of the variable displayed by a component.
|
static boolean |
hasValueExpression(javax.faces.component.UIComponent component) |
static Annotation[] |
readAnnotations(String p_expression)
Which annotations are given to an object described by an EL expression?
|
static Annotation[] |
readAnnotations(javax.faces.component.UIComponent p_component)
Which annotations are given to an object displayed by a JSF component?
|
public static javax.el.ValueExpression createValueExpression(String p_expression)
public static javax.el.ValueExpression createValueExpression(String p_expression, Class expectedType)
public static Object evalAsObject(String p_expression) throws javax.el.PropertyNotFoundException
p_expression - the expressionjavax.el.PropertyNotFoundException - if the attribute doesn't exist at all (as opposed to being null)public static String evalAsString(String p_expression)
p_expression - the el expressionpublic static List<String> getArrayProperties(String p_expression, boolean p_recursive)
p_expression - The EL expression describing the bean. The EL expression is passed without the leading "#{" and the trailing brace "}".p_recursive - if true, the list also contains properties of nested beans.public static NGBeanAttributeInfo getBeanAttributeInfos(javax.faces.component.UIComponent c)
public static String getCoreValueExpression(javax.faces.component.UIComponent component)
public static List<String> getEveryProperty(String p_expression, boolean p_recursive)
p_expression - The EL expression describing the bean. The EL expression is passed without the leading "#{" and the trailing brace "}".p_recursive - if true, the list also contains properties of nested beans.public static String getNGModel(javax.faces.component.UIComponent p_component)
public static Class<?> getType(String p_expression)
p_expression - the expressionpublic static Class<?> getType(javax.faces.component.UIComponent p_component)
p_component - the UIComponentpublic static boolean hasValueExpression(javax.faces.component.UIComponent component)
public static Annotation[] readAnnotations(String p_expression)
p_expression - EL expression of the JSF bean attributepublic static Annotation[] readAnnotations(javax.faces.component.UIComponent p_component)
p_component - the componentCopyright © 2015. All rights reserved.