Package: grails.validation

## [Java] Interface CascadingValidator

- org.springframework.validation.Validator

- All Superinterfaces:
    org.springframework.validation.Validator

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

  deprecated:
    Use grails.gorm.validation.CascadingValidator instead
  Authors:
    Graeme Rocher
  Since:
    0.5

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `validate(java.lang.Object obj, org.springframework.validation.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.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface org.springframework.validation.Validator` | `org.springframework.validation.Validator#validate(java.lang.Object, org.springframework.validation.Errors), org.springframework.validation.Validator#supports(java.lang.Class)`
    `interface grails.gorm.validation.CascadingValidator` | `grails.gorm.validation.CascadingValidator#validate(java.lang.Object, org.springframework.validation.Errors, boolean), grails.gorm.validation.CascadingValidator#validate(java.lang.Object, org.springframework.validation.Errors), grails.gorm.validation.CascadingValidator#supports(java.lang.Class)`

- - ### Method Detail

    - #### public void validate(java.lang.Object obj, org.springframework.validation.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)