File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Constraints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Constraints" Watch "Constraints" New topic


Genefer Bruns

Joined: Oct 17, 2006
Posts: 25
Hello to all,

I have a problem with UML component:
I need to define two types of inheritance for UML component as following:
Let two composites component (component with sub components): A and B
The first problem: component B inherited from component A if B has au minimum the same structure (same sub components) as A and we can add some sub components to B if we need.
The second problem: Component B inherited from A if B has the same required and provided interfaces of A.
So, for do that I need to define tow stereotypes in UML S1 and S2 for each case but my problem is how can I define OCL constraints to do that?
Thanks for all.
I agree. Here's the link:
subject: Constraints
jQuery in Action, 3rd edition