Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Getting stereotype's property values.
Getting stereotype's property values. [message #625991] Thu, 07 February 2008 13:36
Eclipse UserFriend
Originally posted by:


I have connected a stereotype for a component element. Now I try to get
properties and their values from that stereotype, how I should do this?
Following code gives properties' names correctly, but I cannot find a way to
getting values for these properties. I suppose this is quite trivial task.
However, I cannot find a suitable method for this task.


<------------------ CODE ----------------------------------->
private void getStereotypes(Component component) {

System.out.println("** Getting stereotypes for " +

EList<Stereotype> e = component.getAppliedStereotypes();

for(Stereotype s : e) {


EList<Property> el = s.getAttributes();

for(Property p : el) {





Previous Topic:Implementation of constriants in UML models
Next Topic:Implementation of constriants in UML models
Goto Forum:

Current Time: Fri Aug 19 11:37:22 GMT 2022

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

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

Back to the top