problem with load value of property of object stereotyped [message #627421] |
Mon, 09 March 2009 08:00 |
fiorella Messages: 11 Registered: July 2009 |
Junior Member |
|
|
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.02827 seconds