OCLOperators OclType
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
