Article complet: OCL4Java

24.12.06

Permalink Categories: Model Driven, Java   English (EU)

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://www.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.

DraK's Klog

Février 2012
Lun Mar Mer Jeu Ven Sam Dim
<< <     
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        

Rechercher

Catégories

Linkblog

Friends

Other

Syndiquez ce blog XML

Qu'est-ce que RSS?

powered by
b2evolution