UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ? [message #478401] |
Sat, 16 May 2009 08:56 |
Eclipse User |
|
|
|
Hello,
I have an UML Activity and a class model. Now I want to connect them to
each other programmatically.
The class model has one UML::operation which refers to the UML activity
model. I noticed that UML::operation API has the "getMethod()"
(inherited from UML::BehavioralFeature). I am just wondering why there
is no "setMethod(org.eclipse.uml2.uml.Behavior behavior)" available. I
think this method would perfectly match my needs.
Regards,
Deepak
|
|
|
|
Re: UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ? [message #478421 is a reply to message #478403] |
Tue, 19 May 2009 17:03 |
Eclipse User |
|
|
|
Rafael Chaves schrieb:
> Deepak, behavioural feature can have multiple methods. You can either use:
>
> operation.getMethods().add(behavior)
>
> or
>
> behavior.setSpecification(operation)
>
> HTH,
>
> Rafael
> http://abstratt.com/textuml/
>
Thanks Rafael !
>
> Deepak wrote:
>> Hello,
>>
>> I have an UML Activity and a class model. Now I want to connect them
>> to each other programmatically.
>>
>> The class model has one UML::operation which refers to the UML
>> activity model. I noticed that UML::operation API has the
>> "getMethod()" (inherited from UML::BehavioralFeature). I am just
>> wondering why there is no "setMethod(org.eclipse.uml2.uml.Behavior
>> behavior)" available. I think this method would perfectly match my needs.
>>
>> Regards,
>>
>>
>> Deepak
|
|
|
|
Re: UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ? [message #627606 is a reply to message #478403] |
Tue, 19 May 2009 17:03 |
Eclipse User |
|
|
|
Rafael Chaves schrieb:
> Deepak, behavioural feature can have multiple methods. You can either use:
>
> operation.getMethods().add(behavior)
>
> or
>
> behavior.setSpecification(operation)
>
> HTH,
>
> Rafael
> http://abstratt.com/textuml/
>
Thanks Rafael !
>
> Deepak wrote:
>> Hello,
>>
>> I have an UML Activity and a class model. Now I want to connect them
>> to each other programmatically.
>>
>> The class model has one UML::operation which refers to the UML
>> activity model. I noticed that UML::operation API has the
>> "getMethod()" (inherited from UML::BehavioralFeature). I am just
>> wondering why there is no "setMethod(org.eclipse.uml2.uml.Behavior
>> behavior)" available. I think this method would perfectly match my needs.
>>
>> Regards,
>>
>>
>> Deepak
|
|
|
Powered by
FUDForum. Page generated in 0.04924 seconds