I've only used Rose which has plugins to generate Java from UML. I'd expect the other big modeling tools to have similar goodies. We use a vendor framework that has added new tabs and fields to the Rose metamodel to control more code generation options. You can also export standard XMI from many UML tools and then use XSL to transform that into Java. Our vendor tool does that with an intermediate transformation from XMI to some simpler schema.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi