RE: [mdr-users] linking a stereotype to a class in uml 1.4

"Tom Morris" <[email protected]> Sat, 25 Feb 2006 16:06:08 -0500
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <002a01c63a4f$4df38470$6401a8c0@micronxp>
> I could not find how to link a Sterotype object with a Class object.=20
> i did not fine any method like setStereotype(Stereotype str) or =
anything..

It sounds like you are thinking of the UML 1.3 model.  In UML 1.4,
because this has a multiplicity of *, it's modeled as collection
by JMI.  Try

  modelElement.getStereotype().add(stereotype)

Tom