Problems Validation with OCL an atribute of EDataType [message #420726] |
Tue, 08 July 2008 19:28 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03004 seconds