Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problems Validation with OCL an atribute of EDataType
Problems Validation with OCL an atribute of EDataType [message #420726] Tue, 08 July 2008 19:28
Eclipse UserFriend
Originally posted by: yo.davidm.gmail.com

Hi, i have a EdataType programmed for me in a class apart.
The class is called "Tupla", it has :

public boolean derivado;
public String procede;

I modify the two methods: convertToString and convertFromString and it
works perfectly in my Diagram.
I have an Eclass(Servicio) that has an EAttribute "tupla" of
EDataType:Tupla.This attribute has multivalued (lower bound 0, upper bound
-1; then i have an Elist of Tupla) and it words perfectly, my problem is
in validation.....

OCL gives mistakes.If i put:

-Domain Element target: Servicio
-Constraint:self.tupla->notEmpty() it gives this mistake:
Invalid expresion body 'self.tupla->notEmpty()'Cause:null

I dont know if OCL not support this EDataType or I am doing it badly.
I test with an other attribute multivalued of String type and i can write:

-Domain Element target: Servicio
-Constraint:self.name->notEmpty() it valides perfectly.


Thanks PD: My english is very bad, im sorry
Previous Topic:[EMF.edit] Properties edition, provide default values ?
Next Topic:Notification of cahnges in proxy elements
Goto Forum:
  


Current Time: Sat Apr 20 04:43:30 GMT 2024

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

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

Back to the top