OCLOperators OclType
No edit summary
(Updated Edited template to July 12, 2025.)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
When used on an object, you get the type of the object.
When used on an object, you get the type of the object.


Use asString to get the name of type - i.e. the class name if it's a class.
Use asString to get the name of type - i.e. the class name if it is a class.


For example:
For example:
  self.oclType.asString
  self.oclType.asString
  [[Category:OCLOperators]]
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]
{{Edited|July|12|2025}}

Latest revision as of 05:55, 20 January 2025

This page was created by Peter on 2019-11-11. Last edited by Edgar on 2025-01-20.

When used on an object, you get the type of the object.

Use asString to get the name of type - i.e. the class name if it is a class.

For example:

self.oclType.asString