problem with load value of property of object stereotyped [message #478226] |
Mon, 09 March 2009 04:00  |
Eclipse User |
|
|
|
Hello,
How can I get the value of property of object stereotyped?
If I use getStereotypePropertyValue() this return IllegalArgument
Exception.
So, i have implemented a method with first parameter a metaclass of object
but I don't know how call this method in the class main.
The method is:
public static String loadREAccessProb(org.eclipse.uml2.uml.Actor
actor,Stereotype stereotipo)
{
String risultato=null;
String appliedStereotype=stereotipo.getQualifiedName();
risultato=(String) ((Element) actor).getValue(((Element)
actor).getAppliedStereotype(appliedStereotype), "REaccessProb");
return risultato;
}
the model is:
<<REUser>><Actor>Elevator user
and REUser has as property REAccessprob
I must get the value of REAccessProb on object Elevator user.
How can i do?
|
|
|
|
|
Re: problem with load value of property of object stereotyped [message #627426 is a reply to message #478226] |
Mon, 09 March 2009 09:54  |
Eclipse User |
|
|
|
Fiorella,
If this code is not working, I'd suggest debugging it to see why the illegal
argument exception is occurring...
Kenn
"fiorella " <fiorellaepablo@hotmail.it> wrote in message
news:9f47b6b7285bf7e14b7393fff51f3850$1@www.eclipse.org...
> Hello,
> How can I get the value of property of object stereotyped?
> If I use getStereotypePropertyValue() this return IllegalArgument
> Exception.
>
> So, i have implemented a method with first parameter a metaclass of object
> but I don't know how call this method in the class main.
>
> The method is:
>
> public static String loadREAccessProb(org.eclipse.uml2.uml.Actor
> actor,Stereotype stereotipo)
> {
> String risultato=null;
>
> String appliedStereotype=stereotipo.getQualifiedName();
> risultato=(String) ((Element) actor).getValue(((Element)
> actor).getAppliedStereotype(appliedStereotype), "REaccessProb");
>
> return risultato;
>
> }
>
> the model is:
>
> <<REUser>><Actor>Elevator user
>
> and REUser has as property REAccessprob
>
>
> I must get the value of REAccessProb on object Elevator user.
> How can i do?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03858 seconds