Find container

Syntax

$object.container()

Description

Returns the container of the object. The container of an object is the object x that holds a reference to object in a composition reference.

Parameters

Name Type Description Mandatory Default
object Business object The object whose container is to be determined. yes

Return value

Type: Business object

The container of object. If object has no container, the function return null.

Examples

	{
   a = new(`my.module:MyClass`);
   b = new(`my.module:MyClass`);
   $a.add(`my.module:MyClass#children`, $b);
   $b.container();
}

Output: The object a.

b is entered here in the reference attribute children of a . a is the container of b.