Skip to main content


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 06:30 Go to next message
Li Jia Jia is currently offline Li Jia JiaFriend
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 15:12 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
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: Fri Mar 29 14:28:34 GMT 2024

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

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

Back to the top