I would like to create a class diagram using a Java program. After that, I would like to use the validate methods to verify whether the class diagram is a valid instance of the UML metamodel. It seems each validate method has two parameters:
diagnostics and context. How can I use them, for example validateMultiplicityOfComposite(...) for a Property. Right now I just set to null.
Thanks.
Wuwei
Probably you should just use Diagnostician.INSTANCE.validate to check
all constraints.
On 15/07/2011 6:43 PM, Wuwei wrote:
> I would like to create a class diagram using a Java program. After
> that, I would like to use the validate methods to verify whether the
> class diagram is a valid instance of the UML metamodel. It seems each
> validate method has two parameters:
> diagnostics and context. How can I use them, for example
> validateMultiplicityOfComposite(...) for a Property. Right now I just
> set to null.
> Thanks.
> Wuwei