<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Retrieving model elements"]]></title>
		<link>http://forums.visual-paradigm.com/posts/26.html</link>
		<description><![CDATA[Latest messages posted in the topic "Retrieving model elements"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Retrieving model elements</title>
				<description><![CDATA[ Hello,<br> <br> There is a possibility to iterate over all model items, but I affraid it can be quite inefficient for larger projects. <br> It would be nice to be able to choose element type to iterate, e.g.:<br> <br>  <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre> 
 IProject project = ApplicationManager.instance&#40;&#41;.getProjectManager&#40;&#41;.getProject&#40;&#41;;
 Iterator it = .modelElementIterator&#40;IModelElementFactory.MODEL_TYPE_CLASS&#41;;
 while&#40;it.hasNext&#40;&#41;&#41; {
   IClass cl = &#40;IClass&#41;it.next&#40;&#41;;
   // do something
 }
  </pre></td>
		</tr>
		</table> <br> <br> Best regards,<br> Jacek<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1967#15969.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1967#15969.html</link>
				<pubDate><![CDATA[Wed, 28 Feb 2007 21:43:18]]></pubDate>
				<author><![CDATA[ Jacenty]]></author>
			</item>
			<item>
				<title>Re:Retrieving model elements</title>
				<description><![CDATA[ Wow,<br> <br> You've added it in SP1!<br> Great job, thank You!<br> <br> Jacek]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1967#16073.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1967#16073.html</link>
				<pubDate><![CDATA[Thu, 8 Mar 2007 20:05:13]]></pubDate>
				<author><![CDATA[ Jacenty]]></author>
			</item>
			<item>
				<title>Re:Retrieving model elements</title>
				<description><![CDATA[ Hello Jacek,<br> <br> Oh, you are faster than me! I just wanted to show you the added methods and provide you with a sample. Anyway, I still post the information about this change in case you may have missed part of it.<br> <br> Here are the added method calls:<br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>IProject.
 modelElementIterator&#40;String modelType&#41;
 modelElementIterator&#40;String&#91;&#93; modelTypes&#41;
 toModelElementArray&#40;String modelType&#41;
 toModelElementArray&#40;String&#91;&#93; modelTypes&#41; 
 </pre></td>
		</tr>
		</table><br> <br> Attached is a sample for you. To use it, follow the usual procedure for installing a plugin. From the application, select Edit > Show Models from the main menu. Then, enter the model type, the search result of model with the specified type will be printed in the message pane.<br> <br> Note:<br> This method only work for root models. For models like attribute, operations, parameters, database columns, you cannot retrieve them by iterator.<br> <br> Enjoy.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1967#16100.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1967#16100.html</link>
				<pubDate><![CDATA[Sat, 10 Mar 2007 16:44:59]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Retrieving model elements</title>
				<description><![CDATA[ Dear Sir,<br> <br> Your previous post mentions that for models like attribute, operations, parameters, database columns, you cannot retrieve them by iterator. I was wondering if there is any other way to sequentially retrieve attributes, operations and other united modeling language elements.<br> <br> How can I, for example, identify the model element types associated to any model and then retrieve information, like attributes and operations only from those types in the model? Is there, for example, a null value associated to element types not present in the model? <br> <br> I may be asking the same question therefore I list the details on what I would like to know below.<br> <br> <b>* can the api retrieve attributes and operations from diagrams?<br> * does the api retrieve elements across all uml diagrams?<br> * does the api support integration of the visual modeler?</b><br> <br> Thank you in advance,<br> <br> ing. E.H.A. van Tetering]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1967#20978.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1967#20978.html</link>
				<pubDate><![CDATA[Fri, 25 Jan 2008 19:32:47]]></pubDate>
				<author><![CDATA[ Herbie van Tetering]]></author>
			</item>
			<item>
				<title>Retrieving model elements</title>
				<description><![CDATA[ Hello Herbie,<br> <br> Some of the items are not supported to get by iterator directly from the top level. Since attributes and operations are child of class, and parameters are child of operation, and database columns are child of entity, they only can be retrieved from the get iterator methods from parent. <br> <br> So for your questions:<br> - can the api retrieve attributes and operations from diagrams? <br> Yes, you have to get all classes from the diagram then retrieve the attributes/operations one by one<br> <br> - does the api retrieve elements across all uml diagrams? <br> We support retrieve elements in diagram based or directly from model repository (not consider they are in which diagram)<br> <br> - does the api support integration of the visual modeler?<br> No, our Opan API only support accessing the project models. But since it is in Java, you can play around with it and see what you can do.<br> <br> Hope this helps. <br> <br> Best regards,<br> Rain Wong]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1967#21041.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1967#21041.html</link>
				<pubDate><![CDATA[Sun, 27 Jan 2008 18:51:52]]></pubDate>
				<author><![CDATA[ Rain]]></author>
			</item>
	</channel>
</rss>