OCLOperators OclType
Created by Peter on 2019-11-11 · Last edited by Colline.ssali on 2026-02-24.
The oclType() operator returns the runtime type (class) of an object in OCL. It is mainly used for type inspection and type comparison, especially when working with inheritance hierarchies.
Syntax
self.oclType()For example:
self.oclType.asString
