Question to OCL-Constraints in MOF 2.0: Usage of "oclType"



Question to OCL-Constraints in MOF 2.0: Usage of "oclType"

From: Sascha Rüter ^lt;Sascha.Rueter@es.tu-darmstadt.de>
Date: Mon 19 Sep 2005 - 17:16:36 BST
Message-ID: <DFB921F3C927CC499F5B6F7E49832B1116B354@edoras.fg.es.e-technik.tu-darmstadt.de>
Dear all,

I'd like to find a solution to get access to the type of Classifier in OCL
2.0. The existing method below uses the expression "c.oclType", which seems
not to be valid in OCL 2.0:

context Classifier
def:    maySpecializeType(c: Classifier): Boolean
   =    self.oclIsKindOf(c.oclType)


I'm not an expert in OCL but in MOF, so I'm sorry if there is a simple
solution that I'm not aware of.

Thanks for your help!

Kind regards,
Sascha
Received on Mon Sep 19 17:16:42 2005