Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to use the two parameters in validate methods
how to use the two parameters in validate methods [message #697281] Sat, 16 July 2011 01:43 Go to next message
wws_ques wws_ques is currently offline wws_ques wws_ques
Messages: 64
Registered: July 2009
Member
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
Re: how to use the two parameters in validate methods [message #697282 is a reply to message #697281] Sat, 16 July 2011 01:55 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26150
Registered: July 2009
Senior Member
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
Previous Topic:special questions to qualified associations
Next Topic:How to read UML elements from a loaded file
Goto Forum:
  


Current Time: Thu Oct 30 13:55:44 GMT 2014

Powered by FUDForum. Page generated in 0.02078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software