|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.extensions.validator.core.el.DefaultELHelper
public class DefaultELHelper
in order to centralize the jsf version dependency within the core this el-helper supports jsp and facelets (tested with 1.1.14)
| Field Summary | |
|---|---|
protected Logger |
logger
|
protected boolean |
projectStageDevelopment
|
| Constructor Summary | |
|---|---|
DefaultELHelper()
|
|
| Method Summary | |
|---|---|
Object |
getBean(String beanName)
Resolves the bean instance for the specified name. |
Object |
getBindingOfComponent(javax.faces.component.UIComponent uiComponent,
String name)
Gets the value of the attribute specified by the parameter name for the UIComponent. |
PropertyDetails |
getPropertyDetailsOfValueBinding(javax.faces.component.UIComponent uiComponent)
Extracts the property details (expression, base object and property name) information of the value attribute of the given UIComponent
value attribute. |
protected PropertyDetails |
getPropertyDetailsViaReflectionFallback(javax.faces.component.UIComponent uiComponent)
|
Class |
getTypeOfExpression(javax.faces.context.FacesContext facesContext,
ValueBindingExpression valueBindingExpression)
Evaluates the type returned by ELHelper.getValueOfExpression(javax.faces.context.FacesContext, org.apache.myfaces.extensions.validator.core.el.ValueBindingExpression) |
Object |
getValueOfExpression(javax.faces.context.FacesContext facesContext,
ValueBindingExpression valueBindingExpression)
Evaluates the given expression within the current FacesContext |
boolean |
isELTermValid(javax.faces.context.FacesContext facesContext,
String valueBindingExpression)
Determines if the expression is a valid expression, meaning that the expression can be evaluated without an exception. |
boolean |
isELTermWellFormed(Object o)
A very basic check of the EL expression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Logger logger
protected final boolean projectStageDevelopment
| Constructor Detail |
|---|
public DefaultELHelper()
| Method Detail |
|---|
public Class getTypeOfExpression(javax.faces.context.FacesContext facesContext,
ValueBindingExpression valueBindingExpression)
ELHelperELHelper.getValueOfExpression(javax.faces.context.FacesContext, org.apache.myfaces.extensions.validator.core.el.ValueBindingExpression)
getTypeOfExpression in interface ELHelperfacesContext - FacesContext for the current requestvalueBindingExpression - value-binding to evaluate
public Object getBean(String beanName)
ELHelper
getBean in interface ELHelperbeanName - The bean name we are interested in, no EL expression.
public Object getValueOfExpression(javax.faces.context.FacesContext facesContext,
ValueBindingExpression valueBindingExpression)
ELHelperFacesContext
getValueOfExpression in interface ELHelperfacesContext - FacesContext for the current requestvalueBindingExpression - value-binding to evaluate
public boolean isELTermValid(javax.faces.context.FacesContext facesContext,
String valueBindingExpression)
ELHelper
isELTermValid in interface ELHelperfacesContext - The JSF ContextvalueBindingExpression - The EL expression we want to evaluate.
public PropertyDetails getPropertyDetailsOfValueBinding(javax.faces.component.UIComponent uiComponent)
ELHelperUIComponent
value attribute.
getPropertyDetailsOfValueBinding in interface ELHelperuiComponent - The UIComponent in question
UIComponentprotected PropertyDetails getPropertyDetailsViaReflectionFallback(javax.faces.component.UIComponent uiComponent)
public boolean isELTermWellFormed(Object o)
ELHelper
isELTermWellFormed in interface ELHelpero - Object in question
public Object getBindingOfComponent(javax.faces.component.UIComponent uiComponent,
String name)
ELHelper
getBindingOfComponent in interface ELHelperuiComponent - The UIComponent in questionname - The name of the attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||