Accessing objects and navigating meta-levels in code
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=== Single-link === | |||
A single link in runtime is implemented in an IObject as an IObjectReference, i.e. a link that points to another object. | |||
Then one can write: | |||
Then one can write | |||
if ((destinationMember as IObjectReference).ObjectInstance.asObject == null) | if ((destinationMember as IObjectReference).ObjectInstance.asObject == null) | ||
I.e. the member as a single link - does it have an object | I.e. the member as a single link - does it have an object on the other end? | ||
Note! ObjectInstance is always non-null | Note! ObjectInstance is always non-null - it's the object holding information about the link-end. It can be a nullObjectImpl, which is an object. | ||
[[Category:Advanced]] | [[Category:Advanced]] | ||
[[Category:MDriven Framework]] | [[Category:MDriven Framework]] |
Revision as of 13:35, 8 February 2023
Single-link
A single link in runtime is implemented in an IObject as an IObjectReference, i.e. a link that points to another object.
Then one can write:
if ((destinationMember as IObjectReference).ObjectInstance.asObject == null)
I.e. the member as a single link - does it have an object on the other end?
Note! ObjectInstance is always non-null - it's the object holding information about the link-end. It can be a nullObjectImpl, which is an object.
This page was edited more than 1 years ago on 01/11/2024. What links here