﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://127.0.0.1/drupal"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Assistance Projets Logiciels - Transformation MDA</title>
 <link>http://127.0.0.1/drupal/blog_des_ti/uml/faq_ea/theme_model_driven_architecture</link>
 <description>Foire aux questions EA limitée aux seules questions relatives à la Transformation MDA</description>
 <language>fr</language>
<item>
 <title>Modifier le nom de paquetage Java Model</title>
 <link>http://127.0.0.1/drupal/blog_des_ti/uml/faq_ea/modifier_le_nom_de_package_java_model</link>
 <description>&lt;div class=&quot;field field-name-field-logo-faq-ea field-type-image field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/drupal/blog_des_ti/uml/faq_ea/modifier_le_nom_de_package_java_model&quot;&gt;&lt;img typeof=&quot;foaf:Image&quot; src=&quot;http://127.0.0.1/drupal/sites/default/files/default_images/logo_faq_ea_small.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot; property=&quot;content:encoded&quot;&gt;&lt;p&gt;&lt;em&gt;Comment personnaliser le nom du paquetage &lt;q&gt;Java Model&lt;/q&gt; créé par transformation MDA d&#039;un modèle PIM ?&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;screenshot&quot; style=&quot;float:right;width:315px;&quot;&gt;&lt;a class=&quot;colorbox&quot; href=&quot;http://127.0.0.1/drupal/sites/default/files/images/39/ea_transformation_editor.png&quot;&gt;&lt;img src=&quot;http://127.0.0.1/drupal/sites/default/files/images/39/ea_transformation_editor_small.png&quot; alt=&quot;transformation editor - enterprise architect&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;Le nom du &lt;strong&gt;paquetage racine&lt;/strong&gt; (&lt;q&gt;&lt;em&gt;root package&lt;/em&gt;&lt;/q&gt; en anglais) de génération du modèle &lt;abbr title=&quot;Plateform Independant Model&quot;&gt;PIM&lt;/abbr&gt;, nommé en standard &lt;q&gt;&lt;strong&gt;Java Model&lt;/strong&gt;&lt;/q&gt; peut être modifié depuis la fenêtre &lt;em&gt;Transformation Editor&lt;/em&gt;, accessible par le menu &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Settings | Transformation Templates...&lt;/code&gt;&lt;/span&gt; ainsi que par le raccourci clavier &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Ctrl + Alt + H&lt;/code&gt;&lt;/span&gt;.&lt;/p&gt;

Sélectionner le langage &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Java&lt;/code&gt;&lt;/span&gt; puis le &lt;em&gt;template&lt;/em&gt; nommé &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;File&lt;/code&gt;&lt;/span&gt;, modifier la ligne de code &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;name=&quot;Java Model&quot;&lt;/code&gt;&lt;/span&gt; et sauvegarder en cliquant sur le bouton &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Save&lt;/code&gt;&lt;/span&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-theme field-type-taxonomy-term-reference field-label-inline clearfix&quot;&gt;&lt;h3 class=&quot;field-label&quot;&gt;Thème: &lt;/h3&gt;&lt;ul class=&quot;links inline&quot;&gt;&lt;li class=&quot;taxonomy-term-reference-0&quot;&gt;&lt;a href=&quot;/drupal/blog_des_ti/uml/faq_ea/theme_model_driven_architecture&quot; typeof=&quot;skos:Concept&quot; property=&quot;rdfs:label skos:prefLabel&quot; datatype=&quot;&quot;&gt;Transformation MDA&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 08 May 2013 13:42:41 +0000</pubDate>
 <dc:creator>Pascal MARTINEZ</dc:creator>
 <guid isPermaLink="false">39 at http://127.0.0.1/drupal</guid>
 <comments>http://127.0.0.1/drupal/blog_des_ti/uml/faq_ea/modifier_le_nom_de_package_java_model#comments</comments>
</item>
<item>
 <title>Définir un paquetage comme espace de noms racine</title>
 <link>http://127.0.0.1/drupal/blog_des_ti/uml/faq_ea/definir_un_paquetage_comme_espace_de_noms_racine</link>
 <description>&lt;div class=&quot;field field-name-field-logo-faq-ea field-type-image field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/drupal/blog_des_ti/uml/faq_ea/definir_un_paquetage_comme_espace_de_noms_racine&quot;&gt;&lt;img typeof=&quot;foaf:Image&quot; src=&quot;http://127.0.0.1/drupal/sites/default/files/default_images/logo_faq_ea_small.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot; property=&quot;content:encoded&quot;&gt;&lt;p&gt;&lt;em&gt;Comment définir un paquetage racine à partir duquel est recréée l&#039;arborescence de paquetages par le processus de transformation MDA ?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Lors de la &lt;strong&gt;transformation &lt;abbr title=&quot;Model Driven Architecture&quot;&gt;MDA&lt;/abbr&gt;&lt;/strong&gt; d&#039;un &lt;em&gt;modèle de classes&lt;/em&gt; &lt;abbr title=&quot;Platform Independent Model&quot;&gt;PIM&lt;/abbr&gt; (acronyme utilisé pour désigner le modèle conceptuel de classes des objets métier) en &lt;strong&gt;classes Java&lt;/strong&gt;, &lt;abbr title=&quot;Enterprise Architect&quot;&gt;EA&lt;/abbr&gt; recrée l&#039;arborescence complète du &lt;tt&gt;paquetage source&lt;/tt&gt;, sous le &lt;tt&gt;paquetage cible&lt;/tt&gt; nommé &lt;q&gt;&lt;strong&gt;Java Model&lt;/strong&gt;&lt;/q&gt;.&lt;/p&gt;

&lt;div class=&quot;screenshot&quot; style=&quot;float:right;width:257px;&quot;&gt;&lt;img src=&quot;http://127.0.0.1/drupal/sites/default/files/images/38/ea_root_namespace.png&quot; alt=&quot;root namespace - enterprise architect&quot; /&gt;&lt;img src=&quot;http://127.0.0.1/drupal/sites/default/files/images/38/ea_packages_psm.png&quot; alt=&quot;packages psm - enterprise architect&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Prenons comme exemple le projet structuré tel qu&#039;illustré sur l&#039;image de droite :&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Exemple MDA&lt;/code&gt;&lt;/span&gt; est le paquetage racine (ou &lt;q&gt;&lt;em&gt;root package&lt;/em&gt;&lt;/q&gt; en anglais) du projet,&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Modèle par domaine&lt;/code&gt;&lt;/span&gt; contient le &lt;tt&gt;modèle de classes métier&lt;/tt&gt; réparties dans 4 &lt;em&gt;sous-paquetages&lt;/em&gt; nommés &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Client&lt;/code&gt;&lt;/span&gt;, &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Contrat&lt;/code&gt;&lt;/span&gt;, &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Catalogue&lt;/code&gt;&lt;/span&gt; et &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Securite&lt;/code&gt;&lt;/span&gt;,&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Modèle du système&lt;/code&gt;&lt;/span&gt; est le &lt;tt&gt;paquetage&lt;/tt&gt; destiné à recevoir le modèle de &lt;tt&gt;classes Java&lt;/tt&gt; (désigné sous l&#039;acronyme &lt;abbr title=&quot;Platform Specific Model&quot;&gt;PSM&lt;/abbr&gt;) obtenu après &lt;tt&gt;transformation MDA&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Java Model&lt;/code&gt;&lt;/span&gt; est le paquetage créé par le processus de &lt;tt&gt;transformation MDA&lt;/tt&gt;. Il est situé dans le paquetage &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Modèle du système&lt;/code&gt;&lt;/span&gt; car c&#039;est ce dernier qui a été indiqué comme &lt;tt&gt;paquetage cible&lt;/tt&gt; pour la &lt;tt&gt;transformation&lt;/tt&gt; en Java dans la fenêtre &lt;em&gt;Model Transformation&lt;/em&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Si je souhaite disposer directement sous &lt;q&gt;Java Model&lt;/q&gt; des 4 paquetages &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Client&lt;/code&gt;&lt;/span&gt;, &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Contrat&lt;/code&gt;&lt;/span&gt;, &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Catalogue&lt;/code&gt;&lt;/span&gt; et &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Securite&lt;/code&gt;&lt;/span&gt;, il me suffit d&#039;indiquer que le paquetage &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Modèle par domaine&lt;/code&gt;&lt;/span&gt; est un &lt;tt&gt;espace de noms racine&lt;/tt&gt;. Pour cela :&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Je sélectionne dans la fenêtre &lt;em&gt;Project Browser&lt;/em&gt; le paquetage &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Modèle par domaine&lt;/code&gt;&lt;/span&gt;,&lt;/li&gt;
&lt;li&gt;J&#039;affiche le menu contextuel du paquetage par un clic droit et je sélectionne dans le menu &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Code Engineering | Set as Namespace root&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;L&#039;icône &lt;img src=&quot;http://127.0.0.1/drupal/sites/default/files/images/38/ea_package_namespace_root.png&quot; alt=&quot;root package namespace - enterprise architect&quot; /&gt; qui symbolise le &lt;tt&gt;paquetage&lt;/tt&gt; apparaît à présent avec une &lt;em&gt;marque rouge&lt;/em&gt; sur le coin inférieur droit.&lt;/p&gt;

&lt;p&gt;Après exécution d&#039;une nouvelle &lt;tt&gt;transformation&lt;/tt&gt; (supprimer au préalable &lt;q&gt;Java Model&lt;/q&gt;), on peut constater que les 4 paquetages &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Client&lt;/code&gt;&lt;/span&gt;, &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Contrat&lt;/code&gt;&lt;/span&gt;, &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Catalogue&lt;/code&gt;&lt;/span&gt; et &lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;text geshifilter-text&quot;&gt;Securite&lt;/code&gt;&lt;/span&gt; sont recréés directement sous &lt;q&gt;Java Model&lt;/q&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-theme field-type-taxonomy-term-reference field-label-inline clearfix&quot;&gt;&lt;h3 class=&quot;field-label&quot;&gt;Thème: &lt;/h3&gt;&lt;ul class=&quot;links inline&quot;&gt;&lt;li class=&quot;taxonomy-term-reference-0&quot;&gt;&lt;a href=&quot;/drupal/blog_des_ti/uml/faq_ea/theme_model_driven_architecture&quot; typeof=&quot;skos:Concept&quot; property=&quot;rdfs:label skos:prefLabel&quot; datatype=&quot;&quot;&gt;Transformation MDA&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description>
 <pubDate>Tue, 07 May 2013 20:22:58 +0000</pubDate>
 <dc:creator>Pascal MARTINEZ</dc:creator>
 <guid isPermaLink="false">38 at http://127.0.0.1/drupal</guid>
 <comments>http://127.0.0.1/drupal/blog_des_ti/uml/faq_ea/definir_un_paquetage_comme_espace_de_noms_racine#comments</comments>
</item>
</channel>
</rss>
