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

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?
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

The metaclass is named InterfaceRealization: uml2.doc/references/javadoc/org/eclipse/uml2/uml/InterfaceRe alization.html

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


Previous Topic:How use Realization getRealizingClassifier in UML2
Next Topic:UML 2 GMF and Models Plugins
Goto Forum:

Current Time: Mon Jun 18 00:29:44 GMT 2018

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

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

Back to the top