Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 06: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 #550507 is a reply to message #550365] Fri, 30 July 2010 15: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 I can catch a AddNote action
Next Topic:How use Realization getRealizingClassifier in UML2
Goto Forum:
  


Current Time: Sat Oct 25 21:25:48 GMT 2014

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

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