Accessing objects and navigating meta-levels in code
(Created page with " Single-link A single link in runtime is implemented in a IObject as a IObjectReference, i.e. a link which points to another object. Then one can write; if ((destinationMe...")
 
m ((username removed) (log details removed))
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
=== Single-link ===
A single link in runtime is implemented in an IObject as an IObjectReference, i.e., a link that points to another object.


Single-link
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?


A single link in runtime is implemented in a IObject as a IObjectReference, i.e. a link which points to another object.  
'''Note!''' ObjectInstance is always non-null; it is the object holding information about the link-end. It can be a nullObjectImpl, which is an object.
 
[[Category:Advanced]]
Then one can write;
[[Category:MDriven Framework]]
 
if ((destinationMember as IObjectReference).ObjectInstance == null)
 
I.e. the member as a single link - does it have an object in the other end?

Latest revision as of 05:28, 23 August 2024

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 is the object holding information about the link-end. It can be a nullObjectImpl, which is an object.

This page was edited 27 days ago on 08/23/2024. What links here