Article complet: OCL4Java
24.12.06
OCL4Java
This framework allows to design by contract using OCL based constraint JDK5 annotations.
Code:
| @Constraint("context TestClassPerson::setAge(anAge:Integer) inv: age < 120") | |
| public void setAge(int anAge) { | |
| age = anAge; | |
| } |
What to do with these annotations at runtime is configurable.
Trackback address for this post:
http://vidal.biz/blogs/htsrv/trackback.php/961
Comments, Trackbacks, Pingbacks:
No Comments/Trackbacks/Pingbacks for this post yet...
Comments are not allowed from anonymous visitors.