C# Class Adf.Base.Validation.ChildValidationPolicy

Represents an ChildValidationPolicy. Provides methods to validate child business entities found against a DomainObject.
Inheritance: IValidationPolicy
Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
Validate ( object validatable ) : void

Validates validatable objects. When validation fails, the implementing services are required to add validation messages to the validation manager.

Validate ( object validatable, bool suppressWarnings ) : void

Validates validatable objects. When validation fails, the implementing services are required to add validation messages to the validation manager.

Private Methods

Method Description
ValidateChild ( bool suppressWarnings, object value ) : void

Validates child business entity objects. When validation fails, the implementing services are required to add validation messages to the validation manager.

Method Details

Validate() public method

Validates validatable objects. When validation fails, the implementing services are required to add validation messages to the validation manager.
public Validate ( object validatable ) : void
validatable object The object to validate, in most cases this will be a domain object /// or a domain collection.
return void

Validate() public method

Validates validatable objects. When validation fails, the implementing services are required to add validation messages to the validation manager.
public Validate ( object validatable, bool suppressWarnings ) : void
validatable object The object to validate, in most cases this will be a domain obect /// or a domain collection.
suppressWarnings bool Decides if warnings are added in the ValidationManager.
return void