Skip to main content



      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 03: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 06:17 Go to previous message
Eclipse UserFriend
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: Thu May 01 22:53:58 EDT 2025

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

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

Back to the top