OCLOperators ViewModels
(Adding message template to the top of the page)
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
A tuple with the ViewModels for this class as members.
A tuple with the ViewModels for this class as members.
'''Note:''' Use this OCL operator whenever a ViewModel name is required as an argument for an expression as this ensures proper error checking when the ViewModel name changes compared to supplying the ViewModel name argument as a String.


For example, use it like this:
For example, use it like this:
  self.opendocumentreportshow(<classname>.ViewModels.<myviewmodelname>)
  self.opendocumentreportshow(<classname>.ViewModels.<myviewmodelname>)
[[Category:OCL General Operators]]
A name change to a ViewModel will break this expression and show an error in the model validation.
A name change to a ViewModel will break this expression and show an error in the model validation.
[[Category:OCL General Operators]]
 
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 05:07, 25 March 2025

This page was created by Alexandra on 2017-08-13. Last edited by Stephanie@mdriven.net on 2025-03-25.

A tuple with the ViewModels for this class as members.

Note: Use this OCL operator whenever a ViewModel name is required as an argument for an expression as this ensures proper error checking when the ViewModel name changes compared to supplying the ViewModel name argument as a String.

For example, use it like this:

self.opendocumentreportshow(<classname>.ViewModels.<myviewmodelname>)

A name change to a ViewModel will break this expression and show an error in the model validation.