Skip to main content



      Home
Home » Modeling » UML2 » How use Realization getRealizingClassifier in UML2(Realization getRealizingClassifier() is UML1 method, how can I use it in UML2?)
How use Realization getRealizingClassifier in UML2 [message #550365] Fri, 30 July 2010 02:30 Go to next message
Eclipse UserFriend
Dear,

I copy some code write with UML1, and it has to use Realization methos of getRealizingClassifier().
But currently my jar is UML2, so how can I change the code to match UML2.

The UML1 code is:
Realization aRealization = (Realization) element;
if (aRealization.getRealizingClassifier().getName().equals(myIn terfaceName))
{
...
}

How can I use UML2 API to change the logic?
Thanks!
Re: How use Realization getRealizingClassifier in UML2 [message #550507 is a reply to message #550365] Fri, 30 July 2010 11:12 Go to previous message
Eclipse UserFriend
Hi,

The metaclass is named InterfaceRealization:

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. uml2.doc/references/javadoc/org/eclipse/uml2/uml/InterfaceRe alization.html

There you will find the methods getContract() and getImplementingClassifier().

HTH,

Rafael
http://alphasimple.com
Previous Topic:how I can catch a AddNote action
Next Topic:How use Realization getRealizingClassifier in UML2
Goto Forum:
  


Current Time: Mon Jul 07 05:30:25 EDT 2025

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

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

Back to the top