file MetaModelService

8 years 4 months ago #2612 by jaracic
Hi,

I continue In my first steps in Modelio 3.1.1

I need to find out all Association that depends on a specific Class.
It seems to be a simple start to explore modelio API...

But at the second line I have an errors :
MM_SERVICE = Modelio.getInstance().getMetamodelService()
MM_SERVICE.getMetaClass("Association")

AttributeError: 'org.modelio.api.impl.meta.MetamodelService' object has no attribute 'getMetaClass' in <script> at line number 3
Traceback (most recent call last):
File "<script>", line 3, in <module>
AttributeError: 'org.modelio.api.impl.meta.MetamodelService' object has no attribute 'getMetaClass'


But according the API doc the method exists on a IMetamodelService

Any advice/help ?
Thanks.
Joseph

Please Log in or Create an account to join the conversation.

8 years 4 months ago #2613 by pan
Hi jaracic,

The method is getMetaclass(String metaclassName). The letter "c" must be in lowercase.

Hope this helps.

BR
The following user(s) said Thank You: jaracic

Please Log in or Create an account to join the conversation.

8 years 4 months ago #2614 by jaracic
OUUUPPS !
Sorry ;-)
Thanks.

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.035 seconds
^ Back to Top