OCLOperators OclType
No edit summary
No edit summary
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:OCLOperators]]
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]

Revision as of 07:18, 14 April 2023

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 91 days ago on 06/17/2024. What links here