Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ?
UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ? [message #478401] Sat, 16 May 2009 08:56 Go to next message
Eclipse UserFriend
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 #478403 is a reply to message #478401] Sun, 17 May 2009 17:17 Go to previous messageGo to next message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
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/


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 #478421 is a reply to message #478403] Tue, 19 May 2009 17:03 Go to previous message
Eclipse UserFriend
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 #627590 is a reply to message #478401] Sun, 17 May 2009 17:17 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
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/


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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[Announce] MDT UML2 3.0.0RC1 is available
Next Topic:Static profile stereotype application problem
Goto Forum:
  


Current Time: Fri Apr 19 08:10:56 GMT 2024

Powered by FUDForum. Page generated in 0.02063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top