|
RichFaces Core API 4.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.el.util.ELUtils
public final class ELUtils
| Method Summary | ||
|---|---|---|
static
|
coerce(Object value,
Class<T> targetType)
Coerce the given object to targetType. |
|
static javax.el.ValueExpression |
createValueExpression(javax.faces.context.FacesContext context,
String expression,
boolean literal,
Class<?> expectedType)
Creates value expression from string and stores expression's expected type. |
|
static javax.el.ValueExpression |
createValueExpression(String expression)
Create a ValueExpression with the expected type of Object.class |
|
static javax.el.ValueExpression |
createValueExpression(String expression,
Class<?> expectedType)
Creates value expression from string and stores expression's expected type |
|
static Object |
evaluateValueExpression(javax.el.ValueExpression expression,
javax.el.ELContext elContext)
|
|
static boolean |
isValueReference(String value)
Get EL-enabled value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isValueReference(String value)
context - - current Faces Context.value - - string to parse.
public static javax.el.ValueExpression createValueExpression(String expression)
ValueExpression with the expected type of Object.class
expression - an EL expression
ValueExpression instance based off the provided valueRef
public static javax.el.ValueExpression createValueExpression(String expression,
Class<?> expectedType)
expression - string with EL expressionsexpectedType - the type expected from expression after evaluation
public static Object evaluateValueExpression(javax.el.ValueExpression expression,
javax.el.ELContext elContext)
public static javax.el.ValueExpression createValueExpression(javax.faces.context.FacesContext context,
String expression,
boolean literal,
Class<?> expectedType)
Creates value expression from string and stores expression's expected type.
If the literal is provided, constant value expression is used instead.
context - current FacesContextexpression - string with EL expressionsliteral - determined if the literal value is requiredexpectedType - the type expected from expression after evaluation
public static <T> T coerce(Object value,
Class<T> targetType)
value - object to be coercedtargetType - which should be object coerced into
|
RichFaces Core API 4.1.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||