<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Reference files parsing for Java code generation"]]></title>
		<link>http://forums.visual-paradigm.com/posts/50.html</link>
		<description><![CDATA[Latest messages posted in the topic "Reference files parsing for Java code generation"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Reference files parsing for Java code generation</title>
				<description><![CDATA[ Hi, <br> I am currently working on a project where I have to customize the Java code generation of Visual Paradigm.<br> <br> I am confronted to this problem :<br> <br> I am very interested in loading and parsing some Reference files in Java class operations. I don't know if it is possible, but the following part of code in JavaOperation.vm makes me think it is : <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> #if&#40; &#36;operation.hasReference&#40;&#41; == true &#41;
 #parse&#40;"&#36;template-dir/&#36;operation.getReference&#40;&#41;.getRefTemplate&#40;&#41;"&#41; </pre></td>
		</tr>
		</table> <br>  By the way, I don't understand this code. I put a referenced file to an operation but the following test fails :  <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> #if&#40; &#36;operation.hasReference&#40;&#41; == true &#41; </pre></td>
		</tr>
		</table> <br> So, Is it possible to parse a referenced file added in an operation ? If yes, how ?<br> <br> Best regards <br> <br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2432#18992.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2432#18992.html</link>
				<pubDate><![CDATA[Sat, 25 Aug 2007 07:04:12]]></pubDate>
				<author><![CDATA[ jm_fra]]></author>
			</item>
			<item>
				<title>Re:Reference files parsing for Java code generation</title>
				<description><![CDATA[ Dear jm_fra,<br> <br> Thank you for your post. The "reference" is created during code generation for generating operation body. It is not the referenced file.<br> <br> We suppose code generation does not require the knowledge of referenced files. May I know why you have this need?<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2432#19004.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2432#19004.html</link>
				<pubDate><![CDATA[Mon, 27 Aug 2007 11:17:02]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Reference files parsing for Java code generation</title>
				<description><![CDATA[ Hi Jick, thanks for the answer<br> <br> Ok, so I misunderstood it. <br> <br> Actually, we want to generate some specific Java code for operations, and then inject it in the operation bodies during the VP code generation. However, we are obliged to use class diagrams only. We thought we could generate oursleves this code in files which would be parsed during generation.  <br> <br> Anyway, as it seems we may have to look for another way, is there a possibility to access to fields of forms specificiations, such as "Comments" (not "Documentation") or the tagged values ? <br> <br> Regards]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2432#19018.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2432#19018.html</link>
				<pubDate><![CDATA[Tue, 28 Aug 2007 09:34:07]]></pubDate>
				<author><![CDATA[ jm_fra]]></author>
			</item>
			<item>
				<title>Re:Reference files parsing for Java code generation</title>
				<description><![CDATA[ Hi jm_fra,<br> <br> We've enhanced our template supported to allow you retrieve tagged value and comments. First, download the patch at:<br> <a href="http://files3.visual-paradigm.com/200708/Patch/6-1-0_20070830a/VP_Suite_Windows_3_1_20070830a.exe" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200708/Patch/6-1-0_20070830a/VP_Suite_Windows_3_1_20070830a.exe</a><br> <br> Then, run it by overwriting the current installation. You will be able to access the following calls:<br> <br> &#36;{object}.commentIterator() : Iterator<br> &#36;{object}.commentCount() : int<br> &#36;{object}.commentArray() : TemplateComment[]<br> &#36;{object}.commentAt(int) : TemplateComment<br> <br> Here is the operations supported by TemplateComment:<br> getSummary() : String // Same as getName()<br> getAuthor() : String<br> getDateTime() : String<br> getContent() : String // Same as getDocumentation()<br> <br> Tagged Value can be access by:<br> &#36;{object}.taggedValueIterator() : Iterator<br> &#36;{object}.taggedValueCount() : int<br> &#36;{object}.taggedValueArray() : TemplateTaggedValue[]<br> &#36;{object}.taggedValueAt(int) : TemplateTaggedValue<br> &#36;{object}.getTaggedValue(String) : TemplateTaggedValue<br> &#36;{object}.getTaggedValueIgnoreCase(String) : TemplateTaggedValue<br> &#36;{object}.hasTaggedValue(String) : boolean<br> &#36;{object}.hasTaggedValueIgnoreCase(String) : boolean<br> <br> For IG-Java, those operation body is generated as below ===<br> [Normal operation]<br> JavaOperation.vm // This may forward the body generation to other .vm<br> <br> [Association many side (Setter)]<br> JavaAssociation_Add.vm<br> JavaAssociation_Remove.vm<br> <br> [Association many side (Getter)]<br> JavaAssociation_To.vm<br> <br> [Association one side (Setter)]<br> JavaAssociation_Set.vm<br> <br> [Association one side (Getter)]<br> JavaAssociation_Get.vm<br> <br> [Association class (Setter)]<br> JavaAssociationClass_Set.vm<br> <br> [Association class (Getter)]<br> JavaAssociationClass_Get.vm<br> <br> [Attribute (Setter)]<br> JavaAttribute_Set.vm<br> <br> [Attribute (Getter)]<br> JavaAttribute_Get.vm<br> <br> Hope this helps. Feel free to contact us if there are any questions.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2432#19046.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2432#19046.html</link>
				<pubDate><![CDATA[Thu, 30 Aug 2007 18:38:33]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:Reference files parsing for Java code generation</title>
				<description><![CDATA[ Jick,<br> <br> Thanks a lot for this patch, this is exactly what we needed !<br> Speaking of which, the access to original documentation is ok too (see <a href="http://forums.visual-paradigm.com/posts/list/30/2328.html#19025" target="_new" rel="nofollow">this topic</a>).<br> Double thanks! <br> <br> Best regards]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2432#19053.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2432#19053.html</link>
				<pubDate><![CDATA[Fri, 31 Aug 2007 09:06:42]]></pubDate>
				<author><![CDATA[ jm_fra]]></author>
			</item>
			<item>
				<title>Re:Reference files parsing for Java code generation</title>
				<description><![CDATA[ My pleasure!  :D  :D ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2432#19054.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2432#19054.html</link>
				<pubDate><![CDATA[Fri, 31 Aug 2007 09:09:55]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
	</channel>
</rss>