org.omg.CORBA
DynAny
public interface DynAny extends Object
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.Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
_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
void assign(DynAny from) throws Invalid
from
- the DynAny to copy from.Invalid
- if the source DynAny is invalid.DynAny current_component()
this
.void destroy()
void from_any(Any an_any) throws Invalid
Any
. The passed Any
becomes the
enclosed instance of this DynAny, allowing to change/traverse the
Any
fields by the DynAny
methods.Invalid
Any get_any() throws TypeMismatch
Any
, stored inside this DynAny.TypeMismatch
- if the typecode of the accessed Any
is not the same as the typecode of this DynAny.boolean get_boolean() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.char get_char() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.double get_double() throws TypeMismatch
double
value that is expected to be
stored in this DynAny.TypeMismatch
- if this DynAny holds the value of the
different type.float get_float() throws TypeMismatch
float
value that is expected to be
stored in this DynAny.TypeMismatch
- if this DynAny holds the value of the
different type.int get_long() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.long get_longlong() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.byte get_octet() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.Object get_reference() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.short get_short() throws TypeMismatch
short
value that is expected to be
stored in this DynAny.TypeMismatch
- if this DynAny holds the value of the
different type.String get_string() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.TypeCode get_typecode() throws TypeMismatch
TypeCode
value that is expected to be
stored in this DynAny.TypeMismatch
- if this DynAny holds the value of the
different type.int get_ulong() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.long get_ulonglong() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.short get_ushort() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.Serializable get_val() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.char get_wchar() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.String get_wstring() throws TypeMismatch
TypeMismatch
- if this DynAny holds the value of the
different type.void insert_any(Any an_any) throws InvalidValue
an_any
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_boolean(boolean a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_char(char a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_double(double a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_float(float a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_long(int a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_longlong(long a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_octet(byte a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_reference(Object a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_short(short a_x) throws InvalidValue
short
value into the enclosed
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_string(String a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_typecode(TypeCode a_x) throws InvalidValue
a_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_ulong(int a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_ulonglong(long a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_ushort(short a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_val(Serializable a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_wchar(char a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.void insert_wstring(String a_x) throws InvalidValue
Any
inside this DynAnya_x
- the value being inserted.InvalidValue
- if the value type does not match the
typecode of the enclosed Any
.boolean next()
current_component()
,
one position forward.void rewind()
current_component()
,
to the first component.boolean seek(int p)
current_component()
,
to the given position.p
- the number of the internal component on that the internal
pointer must be focused.TypeCode type()
Any
or null typecode
if no has been yet inserted
.