*
* @see AbstractPropertyValidationElementHandler#handle(org.w3c.dom.Element, String, org.springmodules.validation.bean.conf.MutableBeanValidationConfiguration)
*/
public void handle(Element element, String propertyName, MutableBeanValidationConfiguration configuration) {
AbstractValidationRule rule = createValidationRule(element);
String errorCode = extractErrorCode(element);
if (errorCode != null) {
rule.setErrorCode(errorCode);
}
String message = extractMessage(element);
if (message != null) {
rule.setDefaultErrorMessage(message);
}
ErrorArgumentsResolver argumentsResolver = extractArgumentsResolver(element);
if (argumentsResolver != null) {
rule.setErrorArgumentsResolver(argumentsResolver);
}
Condition applicabilityCondition = extractApplicabilityCondition(element);
if (applicabilityCondition != null) {
rule.setApplicabilityCondition(applicabilityCondition);
}
String[] applicableContexts = extractApplicableContexts(element);
if (applicableContexts != null) {
rule.setContextTokens(applicableContexts);
}
if (isConditionGloballyScoped(element)) {
configuration.addPropertyRule(propertyName, rule);
} else {