1
General Board / Java Generation/ how to add support for xdoclet
« on: September 16, 2003, 06:46:30 am »
this is what I am trying to do:
have EA generate xdoclet tags into the JavaDoc Comments
for all classes of stereotype strutsForm I want
1. the class Name to be automatically inserted
as a value for a javadoc custom tag in the class comment block
2. the list of applicable validators to be inserted as javadoc custom tag value
as part of the comment block of each setXX-Operation for a Property/FormField.
The list of applicable validators shall be extracted from a tagged value of the attribute
(rather than the setXX-Operation), to provide a more fluent modelling experience.
these are the issues :
1. I do not see how to use the JAVA_DOC function Macro while
inserting my own custom tags. I cannot figure out why the function Macro call
in the default template leads to the insertion of author, version and update tags
in addition to the classNotes field substitution value. I realised that I can easily
achieve what I want by not using the function macro at all ( but it must be there for a reason)
2. I found that getter and setter operations included at modelling time are generated using an overriden stereotyped (property set/get) template for the
the operation body.
- all I would have to do is override the default operation notes template
for a stereotype - feature combination to specify that only setter operations of strutsForm classes
shall use this template. however - the property set/get stereotype does not appear neither in the selection list of the
override template dialogue nor in the uml -> stereotype list, why?
I further more would have to derive my validator list from a tagged value of the attribute which has to be accessible
from the operation Notes template at generation Time.
- I noticed the setter Operations tagged value: "attribute name"
which is used to generate the operation body (btw this does not get updated when attribute name is changed!). If there was
a function Macro to access an element's (other than the one that is in the templates scope ) fields at generation time, it could be used
to get the attributes tagged value for the validators.
If these were resolved - EA-modelling could serve as the first step in a nearly automated development process for struts web applications.
regards,
Olaf
have EA generate xdoclet tags into the JavaDoc Comments
for all classes of stereotype strutsForm I want
1. the class Name to be automatically inserted
as a value for a javadoc custom tag in the class comment block
2. the list of applicable validators to be inserted as javadoc custom tag value
as part of the comment block of each setXX-Operation for a Property/FormField.
The list of applicable validators shall be extracted from a tagged value of the attribute
(rather than the setXX-Operation), to provide a more fluent modelling experience.
these are the issues :
1. I do not see how to use the JAVA_DOC function Macro while
inserting my own custom tags. I cannot figure out why the function Macro call
in the default template leads to the insertion of author, version and update tags
in addition to the classNotes field substitution value. I realised that I can easily
achieve what I want by not using the function macro at all ( but it must be there for a reason)
2. I found that getter and setter operations included at modelling time are generated using an overriden stereotyped (property set/get) template for the
the operation body.
- all I would have to do is override the default operation notes template
for a stereotype - feature combination to specify that only setter operations of strutsForm classes
shall use this template. however - the property set/get stereotype does not appear neither in the selection list of the
override template dialogue nor in the uml -> stereotype list, why?
I further more would have to derive my validator list from a tagged value of the attribute which has to be accessible
from the operation Notes template at generation Time.
- I noticed the setter Operations tagged value: "attribute name"
which is used to generate the operation body (btw this does not get updated when attribute name is changed!). If there was
a function Macro to access an element's (other than the one that is in the templates scope ) fields at generation time, it could be used
to get the attributes tagged value for the validators.
If these were resolved - EA-modelling could serve as the first step in a nearly automated development process for struts web applications.
regards,
Olaf