org.springmodules.validation.bean.conf.loader.xml.handler
Interface PropertyValidationElementHandler

All Known Implementing Classes:
AbstractPropertyValidationElementHandler, DateInFutureRuleElementHandler, DateInPastRuleElementHandler, EmailRuleElementHandler, ExpressionPropertyValidationElementHandler, InstantInFutureRuleElementHandler, InstantInPastRuleElementHandler, LengthRuleElementHandler, NotBlankRuleElementHandler, NotEmptyRuleElementHandler, NotNullRuleElementHandler, RangeRuleElementHandler, RegExpRuleElementHandler, SizeRuleElementHandler

public interface PropertyValidationElementHandler

An handler that handles property level validation dom elements and manipulates the validation configuration appropriately.

Author:
Uri Boness

Method Summary
 void handle(org.w3c.dom.Element element, java.lang.String propertyName, MutableBeanValidationConfiguration configuration)
          Handles the given element and and manipulates the given configuration appropriately.
 boolean supports(org.w3c.dom.Element element, java.lang.Class clazz, java.beans.PropertyDescriptor descriptor)
          Determines whether this handler can handle the given element.
 

Method Detail

supports

boolean supports(org.w3c.dom.Element element,
                 java.lang.Class clazz,
                 java.beans.PropertyDescriptor descriptor)
Determines whether this handler can handle the given element.

Parameters:
element - The element to be handled.
clazz - The validated clazz.
descriptor - The property descriptor of the validated property.
Returns:
true if this handler can handle the given element, false otherwise.

handle

void handle(org.w3c.dom.Element element,
            java.lang.String propertyName,
            MutableBeanValidationConfiguration configuration)
Handles the given element and and manipulates the given configuration appropriately.

Parameters:
element - The element to be handled.
propertyName - The name of the validated property.
configuration - The configuration to be manipulated.


Copyright © 2005. All Rights Reserved.