This project has moved. For the latest updates, please go here.
A ValidationObject is nothing more than a mother-class for LinkObjects and LinkConditions.

Properties

Identifier
This identifier is used as a ID for fast identification in LinkStructs. It´s needed by the "SearchBy..."-methods of LinkStruct.

Parameters
A ParameterCollection which contains all required parameters for the ValidationMethod.

ValidationMethod
A method of type Func<ValidationObject, bool> (bool Name(ValidationObject obj)).
This method validates this ValidationObject.

IsOptional
This property sets whether the ValidationObject is optional. Optional objects are ignored and validated as valid.

Conditions
A list of conditions (ValidationObjects too, but with some extra things). Those get validated before the ValidationObject.
If one of them is invalid, the whole object is invalid, too. See The LinkCondition-class.

Validate

Last but not least you´re able to validate a ValidationObject manually. You just have to call "Validate()".

Last edited Jul 17, 2011 at 1:56 PM by Razer, version 1

Comments

No comments yet.