Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » problem with load value of property of object stereotyped
problem with load value of property of object stereotyped [message #627421] Mon, 09 March 2009 08:00
fiorella is currently offline fiorellaFriend
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?
Previous Topic:Problems redefining an inherited operation
Next Topic:How read uml model in java?
Goto Forum:
  


Current Time: Thu Apr 25 21:27:52 GMT 2024

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

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

Back to the top