Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Operations on ELong
Operations on ELong [message #34859] Tue, 31 July 2007 13:13 Go to previous message
Eclipse User
Originally posted by: jconlon.apache.org

I have a model with a class called Tag and within this class an
attribute with an ELong type called idNumber.

In the generated model Editor using the OCL Interpreter with the Tag
class as context I can do:

Evaluating:
idNumber

Results:
1234



Would eventually like to put a constraint on this attribute to keep it
below a certain size. So I've tried unsuccessfully to do a less than on
it like:

Evaluating:
idNumber <10000

Results:
Invalid Class

?? So I tried:

Evaluating:
1<2

Results:
true

Which works as expected. Perhaps I am confused about OCL syntax and I
am not specifying this correctly? Any ideas or pointers about how I
should specify this?

thanks,
John
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:ocl query
Next Topic:Project Next Steps?
Goto Forum:
  


Current Time: Tue May 21 13:04:29 EDT 2013

Powered by FUDForum. Page generated in 0.02101 seconds