Hi again,
I have a PIM, which consists of a set of interface definitions for some datatypes. I have written an XSD transformation template (based on the existing XSD transform) which takes these interface datatypes and creates class elements from the interface elements.
Now, I realize that the source element in the PIM is an interface, and it's element defintion is to marked as abstract (this appears to be the default when you drag an Interface element on to a diagram, and in a way makes sence).
In my class transformation template (which is a slight modification of the XSD transform - I simply added:
%if elemType != "Class" and elemType != "Interface"%
%endTemplate%
to the existing XSD template, so that it would parse my interface definitions.
My template then goes on to:
Class
{
%TRANSFORM_REFERENCE("XSDClass")%
%TRANSFORM_CURRENT("name","stereotype","abstract")%
...
abstract="0"
...
}
I have checked the debug intermediary file, and abstract="0" is being honoured in the intermediary language. HOWEVER, in my PSM generated diagram, all the new classes are _still_ being marked as abstract - in fact, it does not matter what I set "abstract" to, they still come out as abstract.
This is an issue for me in the XSD PSM, as the generated schema files are marking all the complexTypes as schema abstract, when this is not what I want.
Is this a bug?
Pete