J-Integra® Espresso Programming Documentation (API)

Any Interface

An Any object serves as a container for any user defined IDL data type or for any IDL primitive type.

It consists of two parts:

  1. a data value
  2. a TypeCode object describing the type of the data value contained in the Any object. For example, a TypeCode object for an array contains a field for the length of the array and a field for the type of elements in the array. (Note that in this case, the second field of the TypeCode object is itself a TypeCode object.)  

 

For a given primitive type A the Any class provides of a pair of methods for inserting and extracting values:

void insert_A( A arg )
This method allows the insertion of an instance arg of primitive type A into the value field of the Any object. The type field is set accordingly.
A extract_A()
This method allows the extraction of an instance of type A from the Any object.

This method throws the exception BAD_OPERATION under two conditions:

  1. the type of the element contained in the Any object is not A
  2. the method extract_A is called before the value field of the Any object has been set

 

List of members: Any Members.

System.Object
 Any

public interface Any

Requirements

Namespace: Ics Namespace

Assembly: Jintegra.Espresso.dll

See Also

Any Members | Ics.CORBA Namespace