Visual Studio. Modeling. Validation Namespace
Context for validating model elements. The constructor will take a collection of model elements intended to be validated. Once the validaiton is done, the validation message will be staged in the CurrentViolations property.
groups logic for sdm model validtion.
ValidationMessage is used to carry validation messages that can be picked up by ValidationMessageObserver class. ValidationMessage are created from within user defined validation mehod. The actual creation is done via the virtual method ValidationContext.ConstructValidationMessage.
ValidationMessageObserver reports errors/messages/warnings generated from validation methods. A ValidationMessageObserver is created with a given ValidationController as the ctor parameter. Once all the validation methods have been invoked, the observer picks up the messages being added/removed during the validation process and notify the user (via virturl overridable methods). This class also provides virtual method OnValidationBeginning and OnValidationEnded. This allows the derived class to know when the validation starts and ended.
The method will be called in the following order
Class definition for C# custom attribute ValidationMethod. This is used for marking methnods as Validator functions
Attribute class used to mark meta-classes. A valid meta-class should have both [MetaObject] and [MetaClass] defined.
Flavor of the validaton categories...
ValidationState to indicate whether the constraint validation will be enabled for meta-class
Enum to show the violation type of the message