Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Checking the syntax of EMF query...
Checking the syntax of EMF query... [message #636851] Wed, 03 November 2010 06:18
Carlos  is currently offline Carlos Friend
Messages: 6
Registered: November 2010
Junior Member
Hello.

I want to check the syntax (programatically) of an EMF query, before its execution:

// Build the select query statement
SELECT statement = new SELECT(SELECT.UNBOUNDED, false,
new FROM(context), new WHERE(condition), monitor);


where "condition" has the type: "BooleanOCLCondition".

I need to check the syntax before because I get empty results with wrong expressions, and I would like to make the distinction between empty result by one right OCL expression, and empty result by an OCL expression with wrong syntax.

Have you got any suggestion?

Thanks in advance.
Best regards.
Carlos.

Previous Topic:Ordering Siblings
Next Topic:How to use EType "Sequence"
Goto Forum:
  


Current Time: Thu Apr 25 19:02:25 GMT 2024

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

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

Back to the top