hi Gerwin,

welcome to AndroMDA

first let me remark that the AnimalQuiz was/is built using AndroMDA 3.0Mx (milestone 
release of version 3.0), so it is better for you to switch to that one instead of 
using version 2.x.y

also, to learn more about the cartridges take a look at the cartridge descriptor in 
META-INF (andromda-cartridge.xml, you can see that by simply unpacking the jar file 
for the cartridge), there you will find how stereotypes are mapped into the templates 
(and since stereotypes are used on UML model elements, you can see how they are 
exposed in the templates), you will see how extra helper classes can be exposed in 
those templates (often declared in the beginning of this xml file)


hth
-- Wouter.


Gerwin Brunner <[EMAIL PROTECTED]> wrote:

>Hi!
>
>I'm new to the androMDA project and I'm playing around with the templates.
>
>I use androMDA 2.1.2 and started with the Animal Quiz as a basis.
>
>1.) Now I'm trying to call a custom java class from a template, but I failed to get 
>it right.
>Where do I need to specify this custom class?
>
>
>2.) I looked around in some other catridges and found the following calls:
>
>Catridge: andromda-hibernate
>
>   public void 
> set${str.upperCaseFirstLetter($adata.target.roleName)}(${targettypename} 
> ${adata.target.roleName})
>   {
>       this.${adata.target.roleName} = ${adata.target.roleName};
>   }
>
>Where is this "str" function from?
>In the androMDA classes I just found org.andromda.core.common.StringUtilsHelper class.
>Are they the same? And if, how does the StringUtilsHelper to str mapping happen?
>
>At last
>3.) Variable to lowercase
>
>Is there a way to lowercase a variable in a template?
>i.E.: $email
>
>
>Thanks for your help,
>Gerwin Brunner
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g
>Get certified on the hottest thing ever to hit the market... Oracle 10g.
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
>_______________________________________________
>Andromda-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/andromda-user
>

__________________________________________________________________
Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to