OCLOperators typename
No edit summary
(Updated Edited template to July 12, 2025.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]
{{Edited|July|12|2024}}Returns the data type information of an object as a string.
{{Edited|July|12|2025}}Returns the data type information of an object as a string.


  String.typeName
  String.typeName
Line 13: Line 13:
Returns
Returns
  System.String
  System.String
'''OclType.asString''' returns the same value as '''typeName.'''<br />
'''OclType.asString''' returns the same value as '''typeName.'''


==== See also: ====
==== See also: ====
[[Documentation:OCLOperators OclType|OCLOperators OclType]]
 
* [[Documentation:OCLOperators OclType|OCLOperators OclType]]

Latest revision as of 05:59, 20 January 2025

This page was created by Alexandra on 2017-08-13. Last edited by Edgar on 2025-01-20.

Returns the data type information of an object as a string.

String.typeName

Returns

System.String

Example:

vStringValue:String='SomeString'
vStringValue.OclType.typeName

Returns

System.String

OclType.asString returns the same value as typeName.

See also:

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments