Hey guys,
Regarding the MDA Transform and Code Template Framework documentation, what's in the help covers the functionality pretty well (although there are one or two omissions such as the ability to pass parameters to a code template). The help files, along with some study of the templates for a language you're familiar with, should have you up and running pretty quickly.
However, in the Code Template Framework, there is currently (7.0.815) no way of accessing the properties from the Constraints tab of the Attributes dialog. Most everything from the General and Detail tabs is available, but the Constraints aren't. So custom code generation templates won't help.
Also, since there are an unspecified number of constraints rather than a simple tickbox or similar, and you'd want to be able to @list over all your constraints, presumably this would require a new template type and not just a new field substitution macro. This might make it harder to implement, I don't know.
One possible workaround would be to use tagged values instead. Tagged value macros are available so you can pull the information out, and you can create your own UML profiles wherein you specify the tagged values your classes require. Not a perfect solution, but it's something.
Cheers,
/Uffe