Hi Paolo, interesting responses. And they prompted me to do more research (and as you suggested) think about what I wanted to do.
What I want to do is develop rich UML models that are simple to transform into sophisticated (Java) code. Our Java design patterns map Event, State, Action and the Data Abstraction Object, into a "Business Component" -- this is a class that encapsulates data, process and rule.
So in order to achieve this I'm trying to make direct associations between behavioral and structural elements.
On the OMG site, when discussing UML 2.0 features, they say the following about Nested Classifiers:
"This is an extremely powerful concept. In UML, almost every model building block you work with (classes, objects, components, behaviors such as activities and state machines, and more) is a classifier. In UML 2.0, you can nest a set of classes inside the component that manages them, or embed a behavior (such as a state machine) inside the class or component that implements it. This capability also lets you build up complex behaviors from simpler ones, the capability that defines the Interaction Overview Diagram. "
And so I think that the Nested Classifier is the right way to go for what I'm trying to do.
Thanks!
- Paul