-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthias
K�spert
Sent: Tuesday, March 08, 2005 12:19 PM
To: andromda-user
Subject: [Andromda-user] Validation

Hi folks,

and another question follows: how can I trigger validation errors?

The context: my cartridge translates UML into the format needed for our
ODBI-tool. To guarantee consistent class-ids my metafacades have to read
a configuration file that maps class-names to class-ids. Now I would
like to have the validation-process reporting when a name/id mapping is
not found in the config file.

I don't think it's possible to specify these requirements as OCL, so is
there another way to plug into the validation?

[CB] You could still do it in OCL: just have an attribute on your metafacade
that checks the config file and returns true/false depending on whether the
mapping is there, then you can write an OCL constraint:  context
YourMetafacade inv : hasMapping

If not, what is the recommended 'best practice' for reporting
generation-time errors?

TIA,
Matthias 





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to