no .. most of the existing validation constraints are used in the meta-models



the spring cartridge supports the modeling of service operation preconditions, 
so let's say you have an operation



MyService.doSomething(year : int, name : String) : void



then you could do something like this:



context MyService::doSomething pre : year > 1990 implies 
name->notEmpty()



meaning that when the method is called code will be executed to make sure the 
name isn't blank when the year is an integer with a value larger than 1990



you can use any of the operation's metafacade properties, for example:



self.owner.name = 'Bobby'



would test the operation's container class needs the property 'name' to return 
'Bobby' (owner is defined on the operation facade to return the class)
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2973#2973
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to