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

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

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

Thanks in advance.


[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: Thu Oct 08 20:20:45 GMT 2015

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

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