SequenceDef::bound

Overview The bound read and write operation provide the means to access and update the bound attribute of a sequence definition (CORBA::SequenceDef) within the Interface Repository.
Original interface SequenceDef Interface
Exceptions CORBA::SystemException


Intended Usage

The bound attribute specifies the maximum number of elements in the sequence. A bound of zero indicates an unbounded sequence. Read and write bound operations are supported with parameters as defined below.

Syntax

  attribute unsigned longbound;

Read operations

Input parameters
None
Return values
CORBA::ULong

The returned value is the current value of the bound attribute of the sequence definition (CORBA::SequenceDef) object.

Write operations

Input parameters
CORBA::ULong bound

The bound parameter is the new value to which the bound attribute of the CORBA::SequenceDef object is set.

Return values
None.

Example

  // C++
     // assume that 'this_sequence' has already been initialized
     CORBA::SequenceDef * this_sequence;
 
     // change the bound attribute of the sequence definition
     CORBA::ULong new_bound = 409;
     this_sequence-> bound (new_bound);
 
     // obtain the bound of a sequence definition
     CORBA::ULong returned_bound;
     returned_bound = this_sequence-> bound ();

Related reference
CORBA module



Searchable topic ID:   rcor_modse1
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_modse1.html

Library | Support | Terms of Use | Feedback