Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFScript] undefined properties
[MOFScript] undefined properties [message #596142] Fri, 11 May 2007 10:31
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
I have an input meta model for which one of the classes
has a property that does not required a value. Thus, I
want to make the generation of the output conditional
on whether or not a value is defined in the input model.

i.e something along the lines

if (self.p.oclIsDefined()) {
self.p.name
}

However, it appears that oclIsDefined is not among
the ocl functions defined in MOFScript. How is this
situation handled in MOFScript?

thanks
Andy.

--
-- ------------------------------------------------------------ -------------
Dr Andy Carpenter
School of Computer Science,
University of Manchester, Manchester M13 9PL, UK
Email: Andy.Carpenter@manchester.ac.uk
Tel: +44 161 275 6168
Fax: +44 161 275 6280
Previous Topic:[MOFScript] functions
Next Topic:[MOFScript] undefined properties
Goto Forum:
  


Current Time: Fri Apr 26 13:01:00 GMT 2024

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

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

Back to the top