org.omg.CORBA
Interface DynAny

All Superinterfaces:
Object
All Known Subinterfaces:
DynArray, DynEnum, DynFixed, DynSequence, DynStruct, DynUnion, DynValue

Deprecated. by DynAny

public interface DynAny
extends Object

The DynAny interface provides possibility to access the components of the CORBA object, stored inside the Any. The Any itself allows to read, write and pass as parameter the stored value without knowning its exact data type. The DynAny and derived classes additionally allows to access the members of the sequence, structure, union and get the data about enumeration, value type and CORBA fixed without knowing the exact type at the run time. The returned members are also wrapped into DynAny objects, allowing them to be the nested structures.


Method Summary
 void assign(DynAny from)
          Deprecated. Copy one DynAny into another.
 DynAny copy()
          Deprecated. Clones this DynAny.
 DynAny current_component()
          Deprecated. Returns the focused component of this DynAny.
 void destroy()
          Deprecated. Destroys this DynAny, freeing the used resources.
 void from_any(Any an_any)
          Deprecated. Makes a DynAny from the Any.
 Any get_any()
          Deprecated. Retrieves the Any, stored inside this DynAny.
 boolean get_boolean()
          Deprecated. Extract the boolean value that is expected to be stored in this DynAny.
 char get_char()
          Deprecated. Extract the char value that is expected to be stored in this DynAny.
 double get_double()
          Deprecated. Extract the double value that is expected to be stored in this DynAny.
 float get_float()
          Deprecated. Extract the float value that is expected to be stored in this DynAny.
 int get_long()
          Deprecated. Extract the int (CORBA long) value that is expected to be stored in this DynAny.
 long get_longlong()
          Deprecated. Extract the long (CORBA long long) value that is expected to be stored in this DynAny.
 byte get_octet()
          Deprecated. Extract the byte (CORBA octet) value that is expected to be stored in this DynAny.
 Object get_reference()
          Deprecated. Extract the CORBA object reference that is expected to be stored in this DynAny.
 short get_short()
          Deprecated. Extract the short value that is expected to be stored in this DynAny.
 String get_string()
          Deprecated. Extract the string value that is expected to be stored in this DynAny.
 TypeCode get_typecode()
          Deprecated. Extract the TypeCode value that is expected to be stored in this DynAny.
 int get_ulong()
          Deprecated. Extract the unsigned int (CORBA ulong) value that is expected to be stored in this DynAny.
 long get_ulonglong()
          Deprecated. Extract the unsingel long (CORBA unsigned long long )value that is expected to be stored in this DynAny.
 short get_ushort()
          Deprecated. Extract the unsigned short value that is expected to be stored in this DynAny.
 Serializable get_val()
          Deprecated. Extract the value that is expected to be stored in this DynAny.
 char get_wchar()
          Deprecated. Extract the wide (usually UTF-16) character value that is expected to be stored in this DynAny.
 String get_wstring()
          Deprecated. Extract the wide (usually UFT-16) string that is expected to be stored in this DynAny.
 void insert_any(Any an_any)
          Deprecated. Insert the Any value into the enclosed Any inside this DynAny.
 void insert_boolean(boolean a_x)
          Deprecated. Insert the boolean value into the enclosed Any inside this DynAny
 void insert_char(char a_x)
          Deprecated. Insert the char value into the enclosed Any inside this DynAny
 void insert_double(double a_x)
          Deprecated. Insert the double value into the enclosed Any inside this DynAny
 void insert_float(float a_x)
          Deprecated. Insert the float value into the enclosed Any inside this DynAny
 void insert_long(int a_x)
          Deprecated. Insert the int (CORBA long) value into the enclosed Any inside this DynAny
 void insert_longlong(long a_x)
          Deprecated. Insert the long (CORBA long long) value into the enclosed Any inside this DynAny
 void insert_octet(byte a_x)
          Deprecated. Insert the byte (CORBA octet) value into the enclosed Any inside this DynAny
 void insert_reference(Object a_x)
          Deprecated. Insert the object reference into the enclosed Any inside this DynAny
 void insert_short(short a_x)
          Deprecated. Insert the short value into the enclosed Any inside this DynAny
 void insert_string(String a_x)
          Deprecated. Insert the string value into the enclosed Any inside this DynAny
 void insert_typecode(TypeCode a_x)
          Deprecated. Insert the TypeCode value into the enclosed Any inside this DynAny
 void insert_ulong(int a_x)
          Deprecated. Insert the int (CORBA unsinged long) value into the enclosed Any inside this DynAny
 void insert_ulonglong(long a_x)
          Deprecated. Insert the long (CORBA unsigned long long) value into the enclosed Any inside this DynAny
 void insert_ushort(short a_x)
          Deprecated. Insert the short (CORBA unsigned short) value into the enclosed Any inside this DynAny
 void insert_val(Serializable a_x)
          Deprecated. Insert the value into the enclosed Any inside this DynAny
 void insert_wchar(char a_x)
          Deprecated. Insert the wide char (usually UTF-16) value into the enclosed Any inside this DynAny
 void insert_wstring(String a_x)
          Deprecated. Insert the wide string (usually UTF-16) into the enclosed Any inside this DynAny
 boolean next()
          Deprecated. Advances the internal pointer, described in the current_component(), one position forward.
 void rewind()
          Deprecated. Moves the internal pointer, described in the current_component(), to the first component.
 boolean seek(int p)
          Deprecated. Moves the internal pointer, described in the current_component(), to the given position.
 Any to_any()
          Deprecated. Returns the enclosed Any.
 TypeCode type()
          Deprecated. Returns the typecode of the object, inserted into this DynAny.
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

assign

void assign(DynAny from)
            throws Invalid
Deprecated. 
Copy one DynAny into another.

Parameters:
from - the DynAny to copy from.
Throws:
Invalid - if the source DynAny is invalid.

copy

DynAny copy()
Deprecated. 
Clones this DynAny.


current_component

DynAny current_component()
Deprecated. 
Returns the focused component of this DynAny. The DynAny has the internal pointer (reference) that can point to one of its components. The returned DynAny can be used to get or set the value of the focused component. If the DynAny holds a primitive type with no components, this implementation returns this.


destroy

void destroy()
Deprecated. 
Destroys this DynAny, freeing the used resources. In java, resources are freed by the garbage collectors, so this method typically returns without action.


from_any

void from_any(Any an_any)
              throws Invalid
Deprecated. 
Makes a DynAny from the Any. The passed Any becomes the enclosed instance of this DynAny, allowing to change/traverse the Any fields by the DynAny methods.

Throws:
Invalid

get_any

Any get_any()
            throws TypeMismatch
Deprecated. 
Retrieves the Any, stored inside this DynAny.

Throws:
TypeMismatch - if the typecode of the accessed Any is not the same as the typecode of this DynAny.

get_boolean

boolean get_boolean()
                    throws TypeMismatch
Deprecated. 
Extract the boolean value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_char

char get_char()
              throws TypeMismatch
Deprecated. 
Extract the char value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_double

double get_double()
                  throws TypeMismatch
Deprecated. 
Extract the double value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_float

float get_float()
                throws TypeMismatch
Deprecated. 
Extract the float value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_long

int get_long()
             throws TypeMismatch
Deprecated. 
Extract the int (CORBA long) value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_longlong

long get_longlong()
                  throws TypeMismatch
Deprecated. 
Extract the long (CORBA long long) value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_octet

byte get_octet()
               throws TypeMismatch
Deprecated. 
Extract the byte (CORBA octet) value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_reference

Object get_reference()
                     throws TypeMismatch
Deprecated. 
Extract the CORBA object reference that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_short

short get_short()
                throws TypeMismatch
Deprecated. 
Extract the short value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_string

String get_string()
                  throws TypeMismatch
Deprecated. 
Extract the string value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_typecode

TypeCode get_typecode()
                      throws TypeMismatch
Deprecated. 
Extract the TypeCode value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_ulong

int get_ulong()
              throws TypeMismatch
Deprecated. 
Extract the unsigned int (CORBA ulong) value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_ulonglong

long get_ulonglong()
                   throws TypeMismatch
Deprecated. 
Extract the unsingel long (CORBA unsigned long long )value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_ushort

short get_ushort()
                 throws TypeMismatch
Deprecated. 
Extract the unsigned short value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_val

Serializable get_val()
                     throws TypeMismatch
Deprecated. 
Extract the value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_wchar

char get_wchar()
               throws TypeMismatch
Deprecated. 
Extract the wide (usually UTF-16) character value that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

get_wstring

String get_wstring()
                   throws TypeMismatch
Deprecated. 
Extract the wide (usually UFT-16) string that is expected to be stored in this DynAny.

Throws:
TypeMismatch - if this DynAny holds the value of the different type.

insert_any

void insert_any(Any an_any)
                throws InvalidValue
Deprecated. 
Insert the Any value into the enclosed Any inside this DynAny.

Parameters:
an_any - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_boolean

void insert_boolean(boolean a_x)
                    throws InvalidValue
Deprecated. 
Insert the boolean value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_char

void insert_char(char a_x)
                 throws InvalidValue
Deprecated. 
Insert the char value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_double

void insert_double(double a_x)
                   throws InvalidValue
Deprecated. 
Insert the double value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_float

void insert_float(float a_x)
                  throws InvalidValue
Deprecated. 
Insert the float value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_long

void insert_long(int a_x)
                 throws InvalidValue
Deprecated. 
Insert the int (CORBA long) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_longlong

void insert_longlong(long a_x)
                     throws InvalidValue
Deprecated. 
Insert the long (CORBA long long) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_octet

void insert_octet(byte a_x)
                  throws InvalidValue
Deprecated. 
Insert the byte (CORBA octet) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_reference

void insert_reference(Object a_x)
                      throws InvalidValue
Deprecated. 
Insert the object reference into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_short

void insert_short(short a_x)
                  throws InvalidValue
Deprecated. 
Insert the short value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_string

void insert_string(String a_x)
                   throws InvalidValue
Deprecated. 
Insert the string value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_typecode

void insert_typecode(TypeCode a_x)
                     throws InvalidValue
Deprecated. 
Insert the TypeCode value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_ulong

void insert_ulong(int a_x)
                  throws InvalidValue
Deprecated. 
Insert the int (CORBA unsinged long) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_ulonglong

void insert_ulonglong(long a_x)
                      throws InvalidValue
Deprecated. 
Insert the long (CORBA unsigned long long) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_ushort

void insert_ushort(short a_x)
                   throws InvalidValue
Deprecated. 
Insert the short (CORBA unsigned short) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_val

void insert_val(Serializable a_x)
                throws InvalidValue
Deprecated. 
Insert the value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_wchar

void insert_wchar(char a_x)
                  throws InvalidValue
Deprecated. 
Insert the wide char (usually UTF-16) value into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

insert_wstring

void insert_wstring(String a_x)
                    throws InvalidValue
Deprecated. 
Insert the wide string (usually UTF-16) into the enclosed Any inside this DynAny

Parameters:
a_x - the value being inserted.
Throws:
InvalidValue - if the value type does not match the typecode of the enclosed Any.

next

boolean next()
Deprecated. 
Advances the internal pointer, described in the current_component(), one position forward.

Returns:
true if the pointer now points to the new component, false if there are no more components of this DynAny holds a basic type that is not divided into components.

rewind

void rewind()
Deprecated. 
Moves the internal pointer, described in the current_component(), to the first component.


seek

boolean seek(int p)
Deprecated. 
Moves the internal pointer, described in the current_component(), to the given position.

Parameters:
p - the number of the internal component on that the internal pointer must be focused.
Returns:
true on success or false if there is no component with the given number. If the DynAny holds the basic type, this method returs false p values other than 0.

to_any

Any to_any()
           throws Invalid
Deprecated. 
Returns the enclosed Any.

Returns:
the enclosed Any.
Throws:
Invalid

type

TypeCode type()
Deprecated. 
Returns the typecode of the object, inserted into this DynAny.

Returns:
the typecode of the inserted Any or null typecode if no has been yet inserted.