Contained::defined_in

Overview The defined_in operation returns the Container object of a Contained object.
Original interface CORBA module: Contained Interface
Exceptions CORBA::SystemException


Intended Usage

Contained objects have a defined_in attribute that identifies the Container within which they are defined. Objects can be contained either because they are defined within the containing object (for example, an interface is defined within a module) or because they are inherited by the containing object (for example, an operation may be contained by an interface because the interface inherits the operation from another interface). If an object is contained through inheritance, the defined_in attribute identifies the InterfaceDef from which the object is inherited.

The defined_in operation is read-only and returns a pointer to a copy of the Container object identified by the defined_in attribute.

Syntax

  readonly attribute Container defined_in;

Input parameters

None

Return values

Container *
A pointer to the Container object of the defined_in attribute is returned. The caller owns the memory associated with this object, that can later be released using CORBA::release.

Example

  // C++
     // assume the interface_def_ptr has already been initialized
     CORBA::InterfaceDef * interface_def_ptr;
 
     // the following call returns the defined_in Container * for the interface
     CORBA::Container * defined_in_container;
     defined_in_container = interface_def_ptr-> defined_in ();

Related reference
CORBA module



Searchable topic ID:   rcor_modct3
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modct3.html

Library | Support | Terms of Use | Feedback