Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How use Realization getRealizingClassifier in UML2
How use Realization getRealizingClassifier in UML2 [message #628566] Fri, 30 July 2010 02:30 Go to next message
Li Jia Jia is currently offline Li Jia Jia
Messages: 14
Registered: March 2010
Junior Member
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 #628567 is a reply to message #628566] Fri, 30 July 2010 11:12 Go to previous message
Rafael Chaves is currently offline Rafael Chaves
Messages: 161
Registered: July 2009
Senior Member
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 use Realization getRealizingClassifier in UML2
Next Topic:UML 2 GMF and Models Plugins
Goto Forum:
  


Current Time: Mon Sep 01 22:03:29 EDT 2014

Powered by FUDForum. Page generated in 0.02228 seconds