Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » How to read an OCL query and pass to an OCLExpression ?
How to read an OCL query and pass to an OCLExpression ? [message #1058635] Tue, 14 May 2013 15:10
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
Hi,

I have an OCL query expression in an OCL file (R101.ocl).

Example of R101.ocl

context Device
inv maxModules: self.Modules->size()

How can I read R101.ocl file and assign this as an OCLExpression to queryExp in my java program ?
(OCLExpression<EClassifier> queryExp

Note:
// create OCL helper
OCLHelper<EClassifier, EOperation, EStructuralFeature, Constraint> helper = ocl
.createOCLHelper();
Can I bypass helper.createQuery() operation ? (This operation has a performance issue)


Thanks in advance.

K

[Updated on: Wed, 15 May 2013 07:17]

Report message to a moderator

Previous Topic:How to execute OCL constraint?
Next Topic:Why helper.createQuery() takes a considerable time?
Goto Forum:
  


Current Time: Tue Nov 25 01:01:26 GMT 2014

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

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