[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: get property'value of stereotype
|
Fiorella,
Yes, that method looks correct. Of course, it will only work if the
stereotype is in fact applied and can successfully be resolved when the
method is executed...
Kenn
"fiorella " <fiorellaepablo@xxxxxxxxxx> wrote in message
news:e794fadb53567cc8c4bcc4e8f11e6fca$1@xxxxxxxxxxxxxxxxxx
> Yes the stereotype has applied, but how get the value of the property of
> stereotype?
> my friend told me that I must refer to metaclasse to which I applied the
> stereotype and I wanted to know how to pass as this parameter metaclasse.
> another thing, as the subject in hand I want to take the value?
> example:
> ia have this model:
> <model>Data
> <<REUser>><Actor>Elevator user
> <<REUser>><Actor>> user
> ..... etc
>
> I wanted to know the value of property REAccessProb of the stereotype
> REUser on object Elevator User and I must refer to metaclass of objec to
> which is applied the stereotype REUser.
> I have implemented this metod:
>
> 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;
> }
>
> Is that the metod right for get the value of the property REAccessprob?
>