Wiki source code of Validity Framework
Last modified by Pascal Robert on 2012/07/19 21:10
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.1 | 1 | == Validity == |
![]() |
1.1 | 2 | |
![]() |
7.1 | 3 | Validity was donated by [[GammaStream Technologies>>url:http://www.gammastream.com||shape="rect"]]. |
![]() |
1.1 | 4 | |
5 | From their site: Validity is a framework (Validity) and a WebObjects application (Validity Modeler) which combine to provide a powerful data validation engine and validation rule modeler. Using an EOModel as a reference point, one may assign rules to the various attributes of the entities. One may choose from any of Validity's predefined rules, or write his/her own rules in Java. The rules are stored in the Validity model file (Validity.model) inside the corresponding '.eomodeld' wrapper. | ||
6 | |||
7 | Validity has two parts: a framework and a tool (ValidityModeler). | ||
8 | |||
9 | Use tool to add validation rules to your .eomodeld. | ||
10 | |||
![]() |
7.1 | 11 | The framework hooks into your EOs' validateFor[Insert|WO:Save|Update|Delete] methods. |
![]() |
1.1 | 12 | |
13 | Framework engine applies rules at runtime and throws an exception if a rule is broken. | ||
14 | |||
15 | Using Validity results in less validation code in your own enterprise objects. | ||
16 | |||
![]() |
3.1 | 17 | === Sources === |
![]() |
1.1 | 18 | |
![]() |
7.1 | 19 | * [[Introduction to Project WONDER>>url:http://wonder.sourceforge.net/cawugWonder.html#15||shape="rect"]] |