Groovy Documentation

org.codehaus.groovy.grails.validation
[Java] Interface CascadingValidator

org.springframework.validation.Validator
  org.codehaus.groovy.grails.validation.CascadingValidator
All Superinterfaces:
Validator

public interface CascadingValidator
extends Validator

Extends the default Spring Validator interface and provides an additional method that specifies whether validation should cascade into associations.

Authors:
Graeme Rocher
Since:
0.5


Method Summary
void validate(java.lang.Object obj, Errors errors, boolean cascade)

An extended version of the validate(errors,obj) method that takes an additional argument specifying whether the Validator should cascade into associations or not.

 

Method Detail

validate

public void validate(java.lang.Object obj, Errors errors, boolean cascade)
An extended version of the validate(errors,obj) method that takes an additional argument specifying whether the Validator should cascade into associations or not.
Parameters:
obj - The Object to validate
errors - The Spring Errors instance
cascade - True if validation should cascade into associations
See Also:
org.springframework.validation.Errors
org.springframework.validation.Validator
org.springframework.validation.Validator#validate(Object, org.springframework.validation.Errors)


 

Groovy Documentation