Re: Object Constraint Language and Inheritance
- From: "Juergen Wuest" <invalid@xxxxxxxxxxx>
- Date: Thu, 30 Mar 2006 08:07:09 +0200
I've a problem to express a constraint in OCL. I have already googled
and read in several papers but found no solution which satisfy me.
Perhaps you can help me.
Namely I have an UML class diagram with an inheritance hierarchie. The
root class is RootClass. For another class, say A, I want to express,
that it is not allowed to have subclasses.
The UML1.x "GeneralizableElement" and UML2 "RedefinableElement" both define
a boolean attribute "isLeaf" to express exactly this constraint. Why not
just say A.isLeaf=true.
Jürgen Wüst, SDMetrics.
http://www.sdmetrics.com - UML design quality measurement
.
- References:
- Object Constraint Language and Inheritance
- From: Ulrich Frank
- Object Constraint Language and Inheritance
- Prev by Date: Re: Object Orientation in VB.NET
- Next by Date: Re: Object Constraint Language and Inheritance
- Previous by thread: Re: Object Constraint Language and Inheritance
- Next by thread: Re: Storing data and code in a Db with LISP-like interface
- Index(es):