org.shept.org.springframework.web.servlet.mvc.delegation
Interface ComponentValidator


public interface ComponentValidator

Version:
$$Id: ComponentValidator.java 70 2010-11-04 17:28:46Z aha $$
Author:
Andi

Method Summary
 void validate(Object target, org.springframework.validation.Errors errors, String componentPath)
          Validate the supplied target object, which must be of a Class for which the #supports(Class) method typically has (or would) return true.
 

Method Detail

validate

void validate(Object target,
              org.springframework.validation.Errors errors,
              String componentPath)
Validate the supplied target object, which must be of a Class for which the #supports(Class) method typically has (or would) return true.

The supplied errors instance can be used to report any resulting validation errors.

Parameters:
target - the object that is to be validated (can be null)
errors - contextual state about the validation process (never null)
See Also:
ValidationUtils


Copyright © 2011. All Rights Reserved.