Skip to main content


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_quesFriend
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 MerksFriend
Messages: 33142
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:special questions to qualified associations
Next Topic:How to read UML elements from a loaded file
Goto Forum:
  


Current Time: Fri Apr 26 08:48:37 GMT 2024

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

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

Back to the top