@Test(expected = ReferenceSyntaxException.class) public void should_reject_non_el_literal() throws Exception { elResolver.validateElExpression("this is a literal string, not an EL expression", new AttributeInfo("<dummy>", Object.class)); }
@Override public ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo) { if (METHOD_BINDING_ATTRIBUTES.contains(attributeInfo.getAttributeName())) { return validateMethodElExpression(elExpression); } else { return validateValueElExpression(elExpression); } }
Jsf11ValidatingElResolver implements ValidatingElResolver { @Override public ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo) { if (METHOD_BINDING_ATTRIBUTES.contains(attributeInfo.getAttributeName())) { return validateMethodElExpression(elExpression); } else { return validateValueElExpression(elExpression); } } }
Jsf11ValidatingElResolver implements ValidatingElResolver { @Override public ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo) { if (METHOD_BINDING_ATTRIBUTES.contains(attributeInfo.getAttributeName())) { return validateMethodElExpression(elExpression); } else { return validateValueElExpression(elExpression); } } Jsf11ValidatingElResolver(); }
Jsf11ValidatingElResolver implements ValidatingElResolver { @Override public ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo) { if (METHOD_BINDING_ATTRIBUTES.contains(attributeInfo.getAttributeName())) { return validateMethodElExpression(elExpression); } else { return validateValueElExpression(elExpression); } } Jsf11ValidatingElResolver(); void setUnknownVariableResolver(ElVariableResolver unknownVariableResolver); @Override /** {@inheritDoc} */ ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo); JsfElValidator declareVariable(final String name, final Object value); JsfElValidator definePropertyTypeOverride(final String elExpression, final Class<?> newType); void setIncludeKnownVariablesInException(
            boolean includeKnownVariablesInException); void addElExpressionFilter(ElExpressionFilter elExpressionFilter); boolean isIncludeKnownVariablesInException(); }
Jsf11ValidatingElResolver implements ValidatingElResolver { @Override public ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo) { if (METHOD_BINDING_ATTRIBUTES.contains(attributeInfo.getAttributeName())) { return validateMethodElExpression(elExpression); } else { return validateValueElExpression(elExpression); } } Jsf11ValidatingElResolver(); void setUnknownVariableResolver(ElVariableResolver unknownVariableResolver); @Override /** {@inheritDoc} */ ValidationResult validateElExpression(String elExpression, AttributeInfo attributeInfo); JsfElValidator declareVariable(final String name, final Object value); JsfElValidator definePropertyTypeOverride(final String elExpression, final Class<?> newType); void setIncludeKnownVariablesInException(
            boolean includeKnownVariablesInException); void addElExpressionFilter(ElExpressionFilter elExpressionFilter); boolean isIncludeKnownVariablesInException();  }