Author Topic: XML schema generation - automated adding of "Type" at the end of class names?  (Read 439 times)

jan.popiel

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hi,

When EA is used for XML schema generation, is it possible to automatically add the suffix "Type" at the end of class names?

This is my first post at and I am new to EA, so my question may be silly.

Thanks,
Jan
« Last Edit: October 05, 2018, 04:19:32 am by jan.popiel »

qwerty

  • EA Guru
  • *****
  • Posts: 10188
  • Karma: +211/-177
  • I'm no guru at all
    • View Profile
Not really, except you write an add-in that is called on element creation. There's a name numbering feature (don't ask me where that's in those ribbons) where you can define a name template (and of course a numbering scheme). But that's not really what you'r looking for.

q.

Edit I wasn't aware of the transformation. So see Geert's answer below.
« Last Edit: October 05, 2018, 05:07:18 pm by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9067
  • Karma: +235/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
The idea is that you first transform your model into a physical XML Schema model.

In that transformation you would typically add things like suffixes to your class name.
You can either modify the existing XSD transformation template, or you could write a script to do the transformation for you.

If all that is needed is a suffix then I guess editing the transformation template should suffice.

Geert

jan.popiel

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Thanks a lot.
It would be great to simply specify a suffix in the transformation template.
However, it did not work when included string "Type"  in this test for the Class transformation template:
{
  name=%qt%%className%Type%qt%

Is this the right place to change the transformation template?
Jan