Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » get the value of a stereotype's attribute
get the value of a stereotype's attribute [message #478662] Tue, 04 August 2009 14:56 Go to next message
guenin is currently offline gueninFriend
Messages: 42
Registered: July 2009
Member
Hi,

I have created a uml profile with a stereotype s which have a property p
without a specific value.
Then I have created a model with a class c with the stereotype s. I have
given the value 100 to the property p.

Then I would like to get the value 100 in a java programm.
I have load my uml model in java, I succeed in getting uml elements with
the stereotype s.
But I don't succeed in having the property's value of the stereotype. How
it is possible?

If someone can help me, Thank you

Aurelie
Re: get the value of a stereotype's attribute [message #478663 is a reply to message #478662] Tue, 04 August 2009 15:18 Go to previous messageGo to next message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Aurelie,

What methods are you using to access the property?

Element.getValue(stereotype,propertyName) ???

Tas






"guenin " <au.guenin@laposte.net> wrote in message
news:d7ef2ef525f749eedd8c04d9c81c94a4$1@www.eclipse.org...
> Hi,
>
> I have created a uml profile with a stereotype s which have a property p
> without a specific value.
> Then I have created a model with a class c with the stereotype s. I have
> given the value 100 to the property p.
>
> Then I would like to get the value 100 in a java programm.
> I have load my uml model in java, I succeed in getting uml elements with
> the stereotype s.
> But I don't succeed in having the property's value of the stereotype. How
> it is possible?
>
> If someone can help me, Thank you
>
> Aurelie
>
Re: get the value of a stereotype's attribute [message #478667 is a reply to message #478663] Wed, 05 August 2009 06:32 Go to previous message
guenin is currently offline gueninFriend
Messages: 42
Registered: July 2009
Member
Hi Tas,

Thank you for your quick response. I searched a function in stereotype
interface(after using Element. getStereotype) and not in the element
interface!
The function element.getvalue(stereotype, propertyValue) is what I wanted

Aurélie
Re: get the value of a stereotype's attribute [message #627843 is a reply to message #478662] Tue, 04 August 2009 15:18 Go to previous message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Aurelie,

What methods are you using to access the property?

Element.getValue(stereotype,propertyName) ???

Tas






"guenin " <au.guenin@laposte.net> wrote in message
news:d7ef2ef525f749eedd8c04d9c81c94a4$1@www.eclipse.org...
> Hi,
>
> I have created a uml profile with a stereotype s which have a property p
> without a specific value.
> Then I have created a model with a class c with the stereotype s. I have
> given the value 100 to the property p.
>
> Then I would like to get the value 100 in a java programm.
> I have load my uml model in java, I succeed in getting uml elements with
> the stereotype s.
> But I don't succeed in having the property's value of the stereotype. How
> it is possible?
>
> If someone can help me, Thank you
>
> Aurelie
>
Re: get the value of a stereotype's attribute [message #627847 is a reply to message #478663] Wed, 05 August 2009 06:32 Go to previous message
guenin is currently offline gueninFriend
Messages: 42
Registered: July 2009
Member
Hi Tas,

Thank you for your quick response. I searched a function in stereotype
interface(after using Element. getStereotype) and not in the element
interface!
The function element.getvalue(stereotype, propertyValue) is what I wanted

Aurélie
Previous Topic:How to deal with uml model fragments?
Next Topic:EvaluationException : Couldn't resolve type for 'Persistence::Entity'. Did you f
Goto Forum:
  


Current Time: Fri Dec 19 02:23:51 GMT 2014

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

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