|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JsfElValidator
| Method Summary | |
|---|---|
JsfElValidator |
declareVariable(String name,
Object value)
|
JsfElValidator |
definePropertyTypeOverride(String mapJsfExpression,
Class<?> newType)
Specify the type of a 'property' in a JSF EL expression, usually a component of a collection etc. |
ValidationResult |
validateMethodElExpression(String expression)
|
ValidationResult |
validateValueElExpression(String elExpression)
Validates that JSF EL is valid and returns its value, which is either a predefined variable or a mock of the class expected to be returned by a property. |
| Method Detail |
|---|
ValidationResult validateValueElExpression(String elExpression)
elExpression - (required) Ex.: #{aBean}, #{aBean.aProperty}, #{aBean['key'].property}
JsfElValidator declareVariable(String name,
Object value)
JsfElValidator definePropertyTypeOverride(String mapJsfExpression,
Class<?> newType)
There are two types of overrides: (1) property overrides: pass in the complete property, ex: bean.property1.property2 (2) collection component type overrides: for all sub-properties of a variable/property (unless there is also a property override for it), used for arrays etc. Ex: bean.mapProperty.* => bean.mapProperty['someKey'] and bean.mapProperty.anotherProperty will be both affected by the override
mapJsfExpression - The expression where to override the guessed type with only names and dots, perhaps plus .*; i.e.
'var.prop['key']' becomes var.propnewType - ValidationResult validateMethodElExpression(String expression)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||