[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.mdt.uml2.uml] Re: Operation body setting

Mickaël,

Operation is a BehavioralFeature. BehavioralFeature has a collection of methods (element type: Behavior).

OpaqueBehavior (a specialization of Behavior) has a collection of bodies (element type: String).

Since the opposite of BehavioralFeature#methods is Behavior#specification, you can create an OpaqueBehavior and set its specification to be the relevant operation.

HTH,

Rafael

Mikl wrote:
Hi all,

In order to generate code from an UML2 model, we need setting operation body in a String format for exemple.

Is it possible in an UML2 model ?
I have scanned UML2 ECore model but I haven't found a good solution (except using comment classifier).


Thanks in advance.

Mickaël