org.springmodules.validation.bean.conf.loader.xml
Interface ValidationRuleElementHandlerRegistry

All Known Implementing Classes:
DefaultValidationRuleElementHandlerRegistry, SimpleValidationRuleElementHandlerRegistry

public interface ValidationRuleElementHandlerRegistry

A registry of PropertyValidationElementHandler's and ClassValidationElementHandler's.

Author:
Uri Boness

Method Summary
 ClassValidationElementHandler findClassHandler(Element element, Class clazz)
          Returns the class validation element handler that can handle the given element.
 PropertyValidationElementHandler findPropertyHandler(Element element, Class clazz, PropertyDescriptor descriptor)
          Returns the property validation element handler that can handle the given element.
 

Method Detail

findClassHandler

ClassValidationElementHandler findClassHandler(Element element,
                                               Class clazz)
Returns the class validation element handler that can handle the given element.

Parameters:
element - The element to be handled.
clazz - The validated class.
Returns:
The class validation element handler that can handle the given element.

findPropertyHandler

PropertyValidationElementHandler findPropertyHandler(Element element,
                                                     Class clazz,
                                                     PropertyDescriptor descriptor)
Returns the property validation element handler that can handle the given element.

Parameters:
element - The element be handled.
clazz - The validated class.
descriptor - The property descriptor of the validated property.
Returns:
The property validation element handler that can handle the given element.


Copyright © 2009. All Rights Reserved.