|
Re: EMF Validation [message #834837 is a reply to message #834804] |
Mon, 02 April 2012 13:05 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
It depends what you are comfortable with and what you really want.
If you like writing Java, write Java, but you should consider Xcore
since it will encapsulate everything nicely.
If you just want to validate when you want to, there is no need to use
the EMF Validation framework, you can use Diagnostician.validate
directly. EMFv is useful for cleverer batch or incremental validations.
Some EMFv also has some very dated descriptions on using OCL for
validation. I will probably produce a significantly updated Eclipse
Corner article during the Juno RC quiet period.
If you want to use OCL to specify (as well as implement), you will again
find it easier to use Diagnostician.validate directly. Use the
OCLinEcore editor to encapsulate and check the OCL for you.
Regards
Ed Willink
On 02/04/2012 13:21, El Shorty wrote:
> Hey,
>
> just a small question, I have an EMF/RCP application with different
> editors. One of those is to edit groups/persons and has a few
> textboxes, the input from these goes straight into my modelobjects
> f.e. email from a person. So now I need to validate that the given
> email is in fact an emailadress.
> I've read a bit about EMF Validation Framework (don't fully understand
> it yet, but getting there, any good tutorials are always welcome) and
> I'm wondering if that is the way to go. Or would be easier to just
> "manually" check the input from the user using simple java code.
>
> Any ideas?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02875 seconds