EMF Framework Validation [message #879730] |
Thu, 31 May 2012 18:28 |
|
Hi guys.
I need put a validation in the my Ecore Model.
This validation is related with a name of a NODE.
This name can't have a caracteres kind of (#%*&($%_) and no spaces.
I would like a some help with this. I'm a new user in this area and
I tryed to do that with OCL Validation, but I can't do that.
I just could do for the first letter of the name.
Look my expression in OCL:
((self.name.substring(1,1)<='@' or self.name.substring(1,1)>='[') and (self.name.substring(1,1)<='`' or self.name.substring(1,1)>='{')) implies self.name.oclIsInvalid()
How I can't do, I need other way for to do.
If you can help me I appreciate.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds