Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » String trim function in an GMF Audit environment
String trim function in an GMF Audit environment [message #200012] Mon, 04 August 2008 07:04 Go to next message
Eclipse UserFriend
Originally posted by: taus.proceedinnovation.com

Hi,
I am trying to write Audits in a EMF/GMF context and looking for a
function to trim leading blanks from a String. Is there such a function
available?
I tried to work with def: but could not get it to run in my environment.
Even the most simple version "def: trim(s:String): String = s" did
produce an error saying Invalid OCL. Can you pls tell me what I am doing
wrong here.

Walter
Re: String trim function in an GMF Audit environment [message #200057 is a reply to message #200012] Mon, 04 August 2008 10:17 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Walter,

You can not use "def" in GMF OCL AFAIK.
So, AFAIK to plug in "trim" function into the OCL you have to extend existing
set of OCL operations with additional set of operations (unfortunately I
do not know how to achieve it).
In addition you should be able to use java-based audits in GMF.

-----------------
Alex Shatalin
Previous Topic:Validation OK, Generate diagram code failed
Next Topic:package name in generated model code
Goto Forum:
  


Current Time: Fri Apr 19 15:17:18 GMT 2024

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

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

Back to the top