|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

, DynEnum
, DynFixed
, DynSequence
, DynStruct
, DynUnion
, DynValue

@Deprecated public interface DynAny

Enables org.omg.CORBA.Any values to be dynamically interpreted (traversed) and constructed. A DynAny object is associated with a data value which may correspond to a copy of the value inserted into an Any. The DynAny APIs enable traversal of the data value associated with an Any at runtime and extraction of the primitive constituents of the data value.
| Method Summary | |
|---|---|
void |
assign
Deprecated. Copy the contents from one Dynamic Any into another. |
DynAny |
copy
Deprecated. Clones this DynAny object. |
DynAny |
current_component
Deprecated. Returns a DynAny object reference that can
be used to get/set the value of the component currently accessed. |
void |
destroy
Deprecated. Destroys this DynAny object and frees any resources
used to represent the data value associated with it. |
void |
from_any
Deprecated. Make a DynAny object from an Any
object. |
Any |
get_any
Deprecated. Retrieves the org.omg.CORBA.Any contained
in this DynAny object. |
boolean |
get_boolean
Deprecated. Retrieves the boolean contained
in this DynAny object. |
char |
get_char
Deprecated. Retrieves the char contained
in this DynAny object. |
double |
get_double
Deprecated. Retrieves the double contained
in this DynAny object. |
float |
get_float
Deprecated. Retrieves the float contained
in this DynAny object. |
int |
get_long
Deprecated. Retrieves the int contained
in this DynAny object. |
long |
get_longlong
Deprecated. Retrieves the long contained
in this DynAny object. |
byte |
get_octet
Deprecated. Retrieves the byte contained
in this DynAny object. |
Object |
get_reference
Deprecated. Retrieves the org.omg.CORBA.Other contained
in this DynAny object. |
short |
get_short
Deprecated. Retrieves the short contained
in this DynAny object. |
String |
get_string
Deprecated. Retrieves the String contained
in this DynAny object. |
TypeCode |
get_typecode
Deprecated. Retrieves the org.omg.CORBA.TypeCode contained
in this DynAny object. |
int |
get_ulong
Deprecated. Retrieves the int contained
in this DynAny object. |
long |
get_ulonglong
Deprecated. Retrieves the long contained
in this DynAny object. |
short |
get_ushort
Deprecated. Retrieves the short contained
in this DynAny object. |
Serializable |
get_val
Deprecated. Retrieves the java.io.Serializable object contained
in this DynAny object. |
char |
get_wchar
Deprecated. Retrieves the char contained
in this DynAny object. |
String |
get_wstring
Deprecated. Retrieves the String contained
in this DynAny object. |
void |
insert_any
Deprecated. Inserts the given org.omg.CORBA.Any object as the value for this
DynAny object. |
void |
insert_boolean
Deprecated. Inserts the given boolean as the value for this
DynAny object. |
void |
insert_char
Deprecated. Inserts the given char as the value for this
DynAny object. |
void |
insert_double
Deprecated. Inserts the given double as the value for this
DynAny object. |
void |
insert_float
Deprecated. Inserts the given float as the value for this
DynAny object. |
void |
insert_long
Deprecated. Inserts the given int as the value for this
DynAny object. |
void |
insert_longlong
Deprecated. Inserts the given long as the value for this
DynAny object. |
void |
insert_octet
Deprecated. Inserts the given byte as the value for this
DynAny object. |
void |
insert_reference
Deprecated. Inserts the given org.omg.CORBA.Object as the value for this
DynAny object. |
void |
insert_short
Deprecated. Inserts the given short as the value for this
DynAny object. |
void |
insert_string
Deprecated. Inserts the given String object as the value for this
DynAny object. |
void |
insert_typecode
Deprecated. Inserts the given org.omg.CORBA.TypeCode as the value for this
DynAny object. |
void |
insert_ulong
Deprecated. Inserts the given int as the value for this
DynAny object. |
void |
insert_ulonglong
Deprecated. Inserts the given long as the value for this
DynAny object. |
void |
insert_ushort
Deprecated. Inserts the given short as the value for this
DynAny object. |
void |
insert_val
Deprecated. Inserts the given java.io.Serializable object as the value for this
DynAny object. |
void |
insert_wchar
Deprecated. Inserts the given char as the value for this
DynAny object. |
void |
insert_wstring
Deprecated. Inserts the given String as the value for this
DynAny object. |
boolean |
next
Deprecated. Moves to the next component of this DynAny object. |
void |
rewind
Deprecated. Moves the internal pointer to the first component. |
boolean |
seek
Deprecated. Moves the internal pointer to the given index. |
Any |
to_any
Deprecated. Convert a DynAny object to an Any
object. |
TypeCode |
type
Deprecated. Returns the TypeCode of the object inserted into
this DynAny. |
Methods inherited from interface org.omg.CORBA.Object ![]() |
|---|
_create_request |
| Method Detail |
|---|

TypeCode![]()
![]()
type()
TypeCode of the object inserted into
this DynAny.
TypeCode object.

void assign(DynAny![]()
![]()
dyn_any) throws Invalid
![]()
![]()
dyn_any - the DynAny object whose contents
are assigned to this DynAny.
Invalid - if the source DynAny is
invalid

void from_any(Any![]()
![]()
value) throws Invalid
![]()
![]()
DynAny object from an Any
object.
value - the Any object.
Invalid - if the source Any object is
empty or bad

Any![]()
![]()
to_any() throws Invalid
![]()
![]()
DynAny object to an Any
object.
Any object.
Invalid - if this DynAny is empty or
bad.
created or does not contain a meaningful value

void destroy()
DynAny object and frees any resources
used to represent the data value associated with it. This method
also destroys all DynAny objects obtained from it.
Destruction of DynAny objects should be handled with
care, taking into account issues dealing with the representation of
data values associated with DynAny objects. A programmer
who wants to destroy a DynAny object but still be able
to manipulate some component of the data value associated with it,
should first create a DynAny object for the component
and then make a copy of the created DynAny object.

DynAny![]()
![]()
copy()
DynAny object.
DynAny object

void insert_boolean(boolean value)
throws InvalidValue

boolean as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the boolean to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_octet(byte value)
throws InvalidValue

byte as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the byte to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_char(char value)
throws InvalidValue

char as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the char to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_short(short value)
throws InvalidValue

short as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the short to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_ushort(short value)
throws InvalidValue

short as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the short to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_long(int value)
throws InvalidValue

int as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the int to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_ulong(int value)
throws InvalidValue

int as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the int to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_float(float value)
throws InvalidValue

float as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the float to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_double(double value)
throws InvalidValue

double as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the double to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_string(String![]()
![]()
value) throws InvalidValue
![]()
![]()
String object as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the String to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_reference(Object![]()
![]()
value) throws InvalidValue
![]()
![]()
org.omg.CORBA.Object as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the org.omg.CORBA.Object to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_typecode(TypeCode![]()
![]()
value) throws InvalidValue
![]()
![]()
org.omg.CORBA.TypeCode as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the org.omg.CORBA.TypeCode to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_longlong(long value)
throws InvalidValue

long as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the long to insert into this
DynAny object
InvalidValue

- if the value inserted is not consistent with the type
of the accessed component in this DynAny object

void insert_ulonglong(long value)
throws InvalidValue

long as the value for this
DynAny object.
If this method is called on a constructed DynAny
object, it initializes the next component of the constructed data
value associated with this DynAny object.
value - the long to inser