Re: get property'value of stereotype [message #478220] |
Fri, 06 March 2009 20:10 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Fiorella,
It's best to ask on the UML2 newsgroup, which I've added to the "to"
list of the reply, so no need to repost.
I'm having a very hard time reading your question. You many want to
clarify it...
fiorella wrote:
> Hello, I have a problem with eclipse.
> I have a uml model, which was exported by MagicDraw, which I would get
> the property values of certain stereotypes.
> I realizzayo the following method:
> public static object loadREaccessProb (org.eclipse.uml2.uml.Actor
> actor, Stereotype ste) (
>
> String Nameste= ste.getQualifiedName();
> object value = actor.getValue (getAppliedStereotype (nameste),
> "Reaccessprob"));
> return value;
> )
> reaccessprob where is the property I want to achieve.
> the metaclasse which I applied the stereotype is Actor.
> I would like now, in the main, chiamre this method.
> Parameters such as current pace?
> Hello thanks
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: get property'value of stereotype [message #478222 is a reply to message #478220] |
Fri, 06 March 2009 21:46 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Fiorella,
Have you tried debugging the code? Are you sure that the stereotype has been
successfully applied?
Kenn
"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gorvuq$7t5$1@build.eclipse.org...
> Fiorella,
>
> It's best to ask on the UML2 newsgroup, which I've added to the "to" list
> of the reply, so no need to repost.
>
> I'm having a very hard time reading your question. You many want to
> clarify it...
>
>
> fiorella wrote:
>> Hello, I have a problem with eclipse.
>> I have a uml model, which was exported by MagicDraw, which I would get
>> the property values of certain stereotypes.
>> I realizzayo the following method:
>> public static object loadREaccessProb (org.eclipse.uml2.uml.Actor actor,
>> Stereotype ste) (
>>
>> String Nameste= ste.getQualifiedName();
>> object value = actor.getValue (getAppliedStereotype (nameste),
>> "Reaccessprob"));
>> return value;
>> )
>> reaccessprob where is the property I want to achieve.
>> the metaclasse which I applied the stereotype is Actor.
>> I would like now, in the main, chiamre this method.
>> Parameters such as current pace?
>> Hello thanks
>>
|
|
|
|
|
Re: get property'value of stereotype [message #627417 is a reply to message #478220] |
Fri, 06 March 2009 21:46 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Fiorella,
Have you tried debugging the code? Are you sure that the stereotype has been
successfully applied?
Kenn
"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gorvuq$7t5$1@build.eclipse.org...
> Fiorella,
>
> It's best to ask on the UML2 newsgroup, which I've added to the "to" list
> of the reply, so no need to repost.
>
> I'm having a very hard time reading your question. You many want to
> clarify it...
>
>
> fiorella wrote:
>> Hello, I have a problem with eclipse.
>> I have a uml model, which was exported by MagicDraw, which I would get
>> the property values of certain stereotypes.
>> I realizzayo the following method:
>> public static object loadREaccessProb (org.eclipse.uml2.uml.Actor actor,
>> Stereotype ste) (
>>
>> String Nameste= ste.getQualifiedName();
>> object value = actor.getValue (getAppliedStereotype (nameste),
>> "Reaccessprob"));
>> return value;
>> )
>> reaccessprob where is the property I want to achieve.
>> the metaclasse which I applied the stereotype is Actor.
>> I would like now, in the main, chiamre this method.
>> Parameters such as current pace?
>> Hello thanks
>>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03155 seconds