A method of automating enforcement of a data validation rule associated with
an
input field by a Model View Controller software application includes applying an
input constraint embodying the data validation rule to a Model to generate an applied
constraint, discovering the applied constraint via examination of the Model by
a View-Controller Generator to generate a discovered constraint, generating an
input field constraint mechanism using the discovered constraint, and constraining
the input field using the input field constraint mechanism to generate a constrained
input field.