OCLOperators OclType
No edit summary
(Automatically adding template at the end of the page.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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|2024}}

Latest revision as of 15:39, 10 February 2024

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
This page was edited more than 11 months ago on 02/10/2024. What links here