Adding Validation to Domain-Specific Language Solutions
As the author of a domain-specific language, you can add constraints to your domain models to check for semantic correctness beyond what you can express in the syntax of that language. Users of your domain-specific languages can run validation on the models that they create from those languages and see the results.
In This Section
Validation Overview for Domain-Specific Languages
Explains your options for setting validation constraints in a domain-specific language.Walkthrough: Adding Validation to a Domain Model
Walks you through adding validation to an example of a domain model, creating a test model, and validating the test model against the constraints.Walkthrough: Adding Custom Validation to a Domain Model
Walks you through adding and testing custom validation code that you apply to a class diagram domain-specific language.