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
Deepak is currently offline DeepakFriend
Messages: 53
Registered: July 2009
Member
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
Deepak is currently offline DeepakFriend
Messages: 53
Registered: July 2009
Member
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
Deepak is currently offline DeepakFriend
Messages: 53
Registered: July 2009
Member
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: Sun Nov 23 12:37:52 GMT 2014

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

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