Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: zalbina on July 25, 2012, 06:13:36 pm
-
Hi!
I've created my own custom template. How can I check if it works fine?
Thanks.
-
Generate some code and inspect it! :)
-
I mean how can I run it an see the result?
-
Create a class for and generate the code - select the class on the diagram and press F11
-
How to check class tag type (string for example) and change it if it's needed?
Thanks.
-
Hi
I dont really know what you mean
Please expand your question
-
<%classTag some variable, but how to check the type of the tagged variable?
thanks.
-
Is this in your code template?
in what language are you generating code
-
java
-
What do you mean with 'type of the tagged variable'??
If you have a tagged value applied to a variable (attribute) you should use %attTag% to lookup the tagged attributes and %attType% to get their type.
If you mean the type of the tagged value itself, there's no such thing, the values are all of type 'string'
HTH
Günther
-
You are right, but what about tagged value applied to a variable (CLASS NOT AN ATTRIBUTE)? Can I have their type like %classType%? I did not found it.
-
Either I still don't get your intend or we have some semantical problem.
Let's try the other way round:
Could you please specify more details of your custom template, at wich context level it should be applied (class, operation, attributes, ...) show us the code you have and what you want to achieve as result.
-
Thanks a lot. Now it's clear with Makulik answer.