Interface DynAny
- All Superinterfaces:
Object
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Copy the contents from one Dynamic Any into another.copy()Deprecated.Clones thisDynAnyobject.Deprecated.Returns aDynAnyobject reference that can be used to get/set the value of the component currently accessed.voiddestroy()Deprecated.Destroys thisDynAnyobject and frees any resources used to represent the data value associated with it.voidDeprecated.Make aDynAnyobject from anAnyobject.get_any()Deprecated.Retrieves theorg.omg.CORBA.Anycontained in thisDynAnyobject.booleanDeprecated.Retrieves thebooleancontained in thisDynAnyobject.charget_char()Deprecated.Retrieves thecharcontained in thisDynAnyobject.doubleDeprecated.Retrieves thedoublecontained in thisDynAnyobject.floatDeprecated.Retrieves thefloatcontained in thisDynAnyobject.intget_long()Deprecated.Retrieves theintcontained in thisDynAnyobject.longDeprecated.Retrieves thelongcontained in thisDynAnyobject.byteDeprecated.Retrieves thebytecontained in thisDynAnyobject.Deprecated.Retrieves theorg.omg.CORBA.Othercontained in thisDynAnyobject.shortDeprecated.Retrieves theshortcontained in thisDynAnyobject.Deprecated.Retrieves theStringcontained in thisDynAnyobject.Deprecated.Retrieves theorg.omg.CORBA.TypeCodecontained in thisDynAnyobject.intDeprecated.Retrieves theintcontained in thisDynAnyobject.longDeprecated.Retrieves thelongcontained in thisDynAnyobject.shortDeprecated.Retrieves theshortcontained in thisDynAnyobject.get_val()Deprecated.Retrieves thejava.io.Serializableobject contained in thisDynAnyobject.charDeprecated.Retrieves thecharcontained in thisDynAnyobject.Deprecated.Retrieves theStringcontained in thisDynAnyobject.voidinsert_any(Any value) Deprecated.Inserts the givenorg.omg.CORBA.Anyobject as the value for thisDynAnyobject.voidinsert_boolean(boolean value) Deprecated.Inserts the givenbooleanas the value for thisDynAnyobject.voidinsert_char(char value) Deprecated.Inserts the givencharas the value for thisDynAnyobject.voidinsert_double(double value) Deprecated.Inserts the givendoubleas the value for thisDynAnyobject.voidinsert_float(float value) Deprecated.Inserts the givenfloatas the value for thisDynAnyobject.voidinsert_long(int value) Deprecated.Inserts the givenintas the value for thisDynAnyobject.voidinsert_longlong(long value) Deprecated.Inserts the givenlongas the value for thisDynAnyobject.voidinsert_octet(byte value) Deprecated.Inserts the givenbyteas the value for thisDynAnyobject.voidinsert_reference(Object value) Deprecated.Inserts the givenorg.omg.CORBA.Objectas the value for thisDynAnyobject.voidinsert_short(short value) Deprecated.Inserts the givenshortas the value for thisDynAnyobject.voidinsert_string(String value) Deprecated.Inserts the givenStringobject as the value for thisDynAnyobject.voidinsert_typecode(TypeCode value) Deprecated.Inserts the givenorg.omg.CORBA.TypeCodeas the value for thisDynAnyobject.voidinsert_ulong(int value) Deprecated.Inserts the givenintas the value for thisDynAnyobject.voidinsert_ulonglong(long value) Deprecated.Inserts the givenlongas the value for thisDynAnyobject.voidinsert_ushort(short value) Deprecated.Inserts the givenshortas the value for thisDynAnyobject.voidinsert_val(Serializable value) Deprecated.Inserts the givenjava.io.Serializableobject as the value for thisDynAnyobject.voidinsert_wchar(char value) Deprecated.Inserts the givencharas the value for thisDynAnyobject.voidinsert_wstring(String value) Deprecated.Inserts the givenStringas the value for thisDynAnyobject.booleannext()Deprecated.Moves to the next component of thisDynAnyobject.voidrewind()Deprecated.Moves the internal pointer to the first component.booleanseek(int index) Deprecated.Moves the internal pointer to the given index.to_any()Deprecated.Convert aDynAnyobject to anAnyobject.type()Deprecated.Returns theTypeCodeof the object inserted into thisDynAny.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 Details
-
type
TypeCode type()Deprecated.Returns theTypeCodeof the object inserted into thisDynAny.- Returns:
- the
TypeCodeobject.
-
assign
Deprecated.Copy the contents from one Dynamic Any into another.- Parameters:
dyn_any- theDynAnyobject whose contents are assigned to thisDynAny.- Throws:
Invalid- if the sourceDynAnyis invalidInvalid
-
from_any
Deprecated.Make aDynAnyobject from anAnyobject.- Parameters:
value- theAnyobject.- Throws:
Invalid- if the sourceAnyobject is empty or badInvalid
-
to_any
Deprecated.Convert aDynAnyobject to anAnyobject.- Returns:
- the
Anyobject. - Throws:
Invalid- if thisDynAnyis empty or bad. created or does not contain a meaningful valueInvalid
-
destroy
void destroy()Deprecated.Destroys thisDynAnyobject and frees any resources used to represent the data value associated with it. This method also destroys allDynAnyobjects obtained from it.Destruction of
DynAnyobjects should be handled with care, taking into account issues dealing with the representation of data values associated withDynAnyobjects. A programmer who wants to destroy aDynAnyobject but still be able to manipulate some component of the data value associated with it, should first create aDynAnyobject for the component and then make a copy of the createdDynAnyobject. -
copy
DynAny copy()Deprecated.Clones thisDynAnyobject.- Returns:
- a copy of this
DynAnyobject
-
insert_boolean
Deprecated.Inserts the givenbooleanas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thebooleanto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_octet
Deprecated.Inserts the givenbyteas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thebyteto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_char
Deprecated.Inserts the givencharas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thecharto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_short
Deprecated.Inserts the givenshortas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theshortto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_ushort
Deprecated.Inserts the givenshortas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theshortto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_long
Deprecated.Inserts the givenintas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theintto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_ulong
Deprecated.Inserts the givenintas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theintto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_float
Deprecated.Inserts the givenfloatas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thefloatto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_double
Deprecated.Inserts the givendoubleas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thedoubleto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_string
Deprecated.Inserts the givenStringobject as the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theStringto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_reference
Deprecated.Inserts the givenorg.omg.CORBA.Objectas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theorg.omg.CORBA.Objectto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_typecode
Deprecated.Inserts the givenorg.omg.CORBA.TypeCodeas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theorg.omg.CORBA.TypeCodeto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_longlong
Deprecated.Inserts the givenlongas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thelongto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_ulonglong
Deprecated.Inserts the givenlongas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thelongto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_wchar
Deprecated.Inserts the givencharas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thecharto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_wstring
Deprecated.Inserts the givenStringas the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theStringto insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_any
Deprecated.Inserts the givenorg.omg.CORBA.Anyobject as the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- theorg.omg.CORBA.Anyobject to insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
insert_val
Deprecated.Inserts the givenjava.io.Serializableobject as the value for thisDynAnyobject.If this method is called on a constructed
DynAnyobject, it initializes the next component of the constructed data value associated with thisDynAnyobject.- Parameters:
value- thejava.io.Serializableobject to insert into thisDynAnyobject- Throws:
InvalidValue- if the value inserted is not consistent with the type of the accessed component in thisDynAnyobject
-
get_val
Deprecated.Retrieves thejava.io.Serializableobject contained in thisDynAnyobject.- Returns:
- the
java.io.Serializableobject that is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for ajava.io.Serializableobject
-
get_boolean
Deprecated.Retrieves thebooleancontained in thisDynAnyobject.- Returns:
- the
booleanthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for aboolean
-
get_octet
Deprecated.Retrieves thebytecontained in thisDynAnyobject.- Returns:
- the
bytethat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for abyte
-
get_char
Deprecated.Retrieves thecharcontained in thisDynAnyobject.- Returns:
- the
charthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for achar
-
get_short
Deprecated.Retrieves theshortcontained in thisDynAnyobject.- Returns:
- the
shortthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for ashort
-
get_ushort
Deprecated.Retrieves theshortcontained in thisDynAnyobject.- Returns:
- the
shortthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for ashort
-
get_long
Deprecated.Retrieves theintcontained in thisDynAnyobject.- Returns:
- the
intthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for aint
-
get_ulong
Deprecated.Retrieves theintcontained in thisDynAnyobject.- Returns:
- the
intthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for aint
-
get_float
Deprecated.Retrieves thefloatcontained in thisDynAnyobject.- Returns:
- the
floatthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for afloat
-
get_double
Deprecated.Retrieves thedoublecontained in thisDynAnyobject.- Returns:
- the
doublethat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for adouble
-
get_string
Deprecated.Retrieves theStringcontained in thisDynAnyobject.- Returns:
- the
Stringthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for aString
-
get_reference
Deprecated.Retrieves theorg.omg.CORBA.Othercontained in thisDynAnyobject.- Returns:
- the
org.omg.CORBA.Otherthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for anorg.omg.CORBA.Other
-
get_typecode
Deprecated.Retrieves theorg.omg.CORBA.TypeCodecontained in thisDynAnyobject.- Returns:
- the
org.omg.CORBA.TypeCodethat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for aorg.omg.CORBA.TypeCode
-
get_longlong
Deprecated.Retrieves thelongcontained in thisDynAnyobject.- Returns:
- the
longthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for along
-
get_ulonglong
Deprecated.Retrieves thelongcontained in thisDynAnyobject.- Returns:
- the
longthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for along
-
get_wchar
Deprecated.Retrieves thecharcontained in thisDynAnyobject.- Returns:
- the
charthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for achar
-
get_wstring
Deprecated.Retrieves theStringcontained in thisDynAnyobject.- Returns:
- the
Stringthat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for aString
-
get_any
Deprecated.Retrieves theorg.omg.CORBA.Anycontained in thisDynAnyobject.- Returns:
- the
org.omg.CORBA.Anythat is the value for thisDynAnyobject - Throws:
TypeMismatch- if the type code of the accessed component in thisDynAnyobject is not equivalent to the type code for anorg.omg.CORBA.Any
-
current_component
DynAny current_component()Deprecated.Returns aDynAnyobject reference that can be used to get/set the value of the component currently accessed. The appropriateinsertmethod can be called on the resultingDynAnyobject to initialize the component. The appropriategetmethod can be called on the resultingDynAnyobject to extract the value of the component.- Returns:
- a
DynAnyobject reference that can be used to retrieve or set the value of the component currently accessed
-
next
boolean next()Deprecated.Moves to the next component of thisDynAnyobject. This method is used for iterating through the components of a constructed type, effectively moving a pointer from one component to the next. The pointer starts out on the first component when aDynAnyobject is created.- Returns:
trueif the pointer points to a component;falseif there are no more components or thisDynAnyis associated with a basic type rather than a constructed type
-
seek
boolean seek(int index) Deprecated.Moves the internal pointer to the given index. Logically, this method sets a new offset for this pointer.- Parameters:
index- anintindicating the position to which the pointer should move. The first position is 0.- Returns:
trueif the pointer points to a component;falseif there is no component at the designated index. If thisDynAnyobject is associated with a basic type, this method returnsfalsefor any index other than 0.
-
rewind
void rewind()Deprecated.Moves the internal pointer to the first component.
-