SequenceDef::element_type_def

Overview The element_type_def read and write operation allow the access and update of the element type definition of a sequence definition (SequenceDef) in the Interface Repository.
Original interface SequenceDef Interface
Exceptions CORBA::SystemException


Intended Usage

The type of the elements within a sequence definition is identified by the element_type_def attribute (a reference to a CORBA::IDLType *). Setting the element_type_def attribute also updates the element_type attribute as well as the inherited type attribute.

Syntax

  attribute IDL/Type element_type_def;

Read operations

Input parameters
None.
Return values
CORBA::IDLType_ptr

The returned object is a pointer to a copy of the IDLType referenced by the element_type_def attribute of the SequenceDef object. The returned object is owned by the caller and can be released using CORBA::release.

Write operations

Input parameters
CORBA::IDLType_ptr element_type_def

The element_type_def parameter represents the new sequence element definition for the SequenceDef.

Return values
None.

Example

  // C++
     // assume that 'this_sequence' and 'this_union' have already been 
     // initialized
     CORBA::SequenceDef * this_sequence;
     CORBA::UnionDef * this_union;
 
     // change the sequence element type definition to 'this_union'
     this_sequence-> element_type_def (this_union);
 
     // read the element type definition from 'this_sequence'
     CORBA::IDLType * returned_element_type_def;
     returned_element_type_def = this_sequence-> element_type_def ();

Related reference
CORBA module



Searchable topic ID:   rcor_modse3
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_modse3.html

Library | Support | Terms of Use | Feedback