From: Matthias B. <ma...@us...> - 2003-12-22 20:29:05
|
User: mattes3 Date: 03/12/22 12:29:01 Modified: xdocs Tag: V2x_DEV car-rental-umldoc.zip xdocs/pages Tag: V2x_DEV buildtags.xml tempwriting.xml cartridge.xml Log: Fixed documentation bugs. Revision Changes Path No revision No revision 1.2.2.1 +2971 -2628documentation/xdocs/car-rental-umldoc.zip <<Binary file>> No revision No revision 1.2.2.1 +51 -0 documentation/xdocs/pages/buildtags.xml Index: buildtags.xml =================================================================== RCS file: /cvsroot/andromda/documentation/xdocs/pages/buildtags.xml,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -w -r1.2 -r1.2.2.1 --- buildtags.xml 8 May 2003 21:42:09 -0000 1.2 +++ buildtags.xml 22 Dec 2003 20:29:00 -0000 1.2.2.1 @@ -210,6 +210,57 @@ The above shows the defaults setup assumed by AndroMDA when there is no repository subtask. </p> + +<h2><a name="userProperty"><userProperty></a></h2> + <p class="std"> + The <a href="#andromda"><code><andromda></code></a> task supports a nested <code><userProperty></code> + tag so that users can add their own properties to the Velocity context and use them + from inside a template script. + </p> + + <p class="std"> + A typical application of this might be to assign a configurable suffix to generated + foreign key column names (see example below). + </p> + <h3>Parameters</h3> + + <table border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top" class="std"><b>Attribute</b></td> + <td valign="top" class="std"><b>Description</b></td> + <td align="center" valign="top" class="std"><b>Required</b></td> + </tr> + <tr> + <td valign="top" class="std">name</td> + <td valign="top" class="std">Specifies the name of the user property.</td> + <td align="center" class="std">Yes.</td> + </tr> + <tr> + <td valign="top" class="std">value</td> + <td valign="top" class="std">Specifies the value of the user property.</td> + <td align="center" class="std">Yes.</td> + </tr> + </table> + + <h3>Example</h3> + <blockquote><pre> +<andromda basedir="${build.dir}/unzipped" + includes="CarRentalSystem20.xmi" + lastModifiedCheck="false" + typeMappings="${andromda-core.home}/src/xml/TypeMapping.xml" +> + + <userProperty name="foreignKeySuffix" value="_FK" /> + +</andromda> + </pre></blockquote> + + <p class="std"> + The above example shows a user property "foreignKeySuffix" that is assigned the + value "_FK". From within the Velocity template, you can access this user property + as <code>$foreignKeySuffix</code>, just like all the other references. + </p> + </freetext> </body> 1.2.2.1 +10 -3 documentation/xdocs/pages/tempwriting.xml Index: tempwriting.xml =================================================================== RCS file: /cvsroot/andromda/documentation/xdocs/pages/tempwriting.xml,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -w -r1.2 -r1.2.2.1 --- tempwriting.xml 23 Jul 2003 19:35:40 -0000 1.2 +++ tempwriting.xml 22 Dec 2003 20:29:00 -0000 1.2.2.1 @@ -49,8 +49,8 @@ UML v1.4 model. </td> <td align="left" valign="top" class="std"> - <a href="http://www.gentleware.com/support/developer/jmi-uml1.4/org/omg/uml/UmlPackage.html"> - <code>Model</code> + <a href="http://www.gentleware.com/support/dev/jmi-uml1.4/org/omg/uml/UmlPackage.html"> + <code>UMLPackage</code> </a> </td> </tr> @@ -116,6 +116,13 @@ Read the templates which are included with the distribution and compare the usage of the scripting objects to the info above. You'll understand. + </p> + <p class="std"> + For those of you who want to know the complete story: + You can find the javadocs of the JMI classes for the UML 1.4 metamodel at + <a href="http://www.gentleware.com/support/dev/jmi-uml1.4/index.html"> + http://www.gentleware.com/support/dev/jmi-uml1.4/index.html + </a> </p> </freetext> 1.3.2.1 +1 -1 documentation/xdocs/pages/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromda/documentation/xdocs/pages/cartridge.xml,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -u -w -r1.3 -r1.3.2.1 --- cartridge.xml 4 Jul 2003 08:15:59 -0000 1.3 +++ cartridge.xml 22 Dec 2003 20:29:00 -0000 1.3.2.1 @@ -255,7 +255,7 @@ <td valign="top" align="center" >No, default is "true"</td> </tr> <tr> - <td valign="top" >transformClassname</td> + <td valign="top" >transformClass</td> <td valign="top" >Specifies a name of a java class that can be used to help the code generation templates. In some cases the velocity scripting language is not enough for what you would like to do in your code generation template. You can solve this problem by writing a |