-
- All Superinterfaces:
- Object
Deprecated.Use the new DynAny instead
@Deprecated public interface DynAny extends Object
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
Methods Modifier and Type Method and Description voidassign(DynAny dyn_any)Deprecated.Copy the contents from one Dynamic Any into another.DynAnycopy()Deprecated.Clones thisDynAnyobject.DynAnycurrent_component()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.voidfrom_any(Any value)Deprecated.Make aDynAnyobject from anAnyobject.Anyget_any()Deprecated.Retrieves theorg.omg.CORBA.Anycontained in thisDynAnyobject.booleanget_boolean()Deprecated.Retrieves thebooleancontained in thisDynAnyobject.charget_char()Deprecated.Retrieves thecharcontained in thisDynAnyobject.doubleget_double()Deprecated.Retrieves thedoublecontained in thisDynAnyobject.floatget_float()Deprecated.Retrieves thefloatcontained in thisDynAnyobject.intget_long()Deprecated.Retrieves theintcontained in thisDynAnyobject.longget_longlong()Deprecated.Retrieves thelongcontained in thisDynAnyobject.byteget_octet()Deprecated.Retrieves thebytecontained in thisDynAnyobject.Objectget_reference()Deprecated.Retrieves theorg.omg.CORBA.Othercontained in thisDynAnyobject.shortget_short()Deprecated.Retrieves theshortcontained in thisDynAnyobject.Stringget_string()Deprecated.Retrieves theStringcontained in thisDynAnyobject.TypeCodeget_typecode()Deprecated.Retrieves theorg.omg.CORBA.TypeCodecontained in thisDynAnyobject.intget_ulong()Deprecated.Retrieves theintcontained in thisDynAnyobject.longget_ulonglong()Deprecated.Retrieves thelongcontained in thisDynAnyobject.shortget_ushort()Deprecated.Retrieves theshortcontained in thisDynAnyobject.Serializableget_val()Deprecated.Retrieves thejava.io.Serializableobject contained in thisDynAnyobject.charget_wchar()Deprecated.Retrieves thecharcontained in thisDynAnyobject.Stringget_wstring()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.Anyto_any()Deprecated.Convert aDynAnyobject to anAnyobject.TypeCodetype()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 Detail
-
type
TypeCode type()
Deprecated.Returns theTypeCodeof the object inserted into thisDynAny.- Returns:
- the
TypeCodeobject.
-
assign
void assign(DynAny dyn_any) throws Invalid
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 invalid
-
from_any
void from_any(Any value) throws Invalid
Deprecated.Make aDynAnyobject from anAnyobject.- Parameters:
value- theAnyobject.- Throws:
Invalid- if the sourceAnyobject is empty or bad
-
to_any
Any to_any() throws Invalid
Deprecated.Convert aDynAnyobject to anAnyobject.- Returns:
- the
Anyobject. - Throws:
Invalid- if thisDynAnyis empty or bad. created or does not contain a meaningful value
-
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
void insert_boolean(boolean value) throws InvalidValueDeprecated.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
void insert_octet(byte value) throws InvalidValueDeprecated.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
void insert_char(char value) throws InvalidValueDeprecated.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
void insert_short(short value) throws InvalidValueDeprecated.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
void insert_ushort(short value) throws InvalidValueDeprecated.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
void insert_long(int value) throws InvalidValueDeprecated.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
void insert_ulong(int value) throws InvalidValueDeprecated.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
void insert_float(float value) throws InvalidValueDeprecated.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
void insert_double(double value) throws InvalidValueDeprecated.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
void insert_string(String value) throws InvalidValue
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
void insert_reference(Object value) throws InvalidValue
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
void insert_typecode(TypeCode value) throws InvalidValue
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
void insert_longlong(long value) throws InvalidValueDeprecated.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
void insert_ulonglong(long value) throws InvalidValueDeprecated.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
void insert_wchar(char value) throws InvalidValueDeprecated.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
void insert_wstring(String value) throws InvalidValue
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
void insert_any(Any value) throws InvalidValue
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
void insert_val(Serializable value) throws InvalidValue
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
Serializable get_val() throws TypeMismatch
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
boolean get_boolean() throws TypeMismatchDeprecated.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
byte get_octet() throws TypeMismatchDeprecated.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
char get_char() throws TypeMismatchDeprecated.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
short get_short() throws TypeMismatchDeprecated.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
short get_ushort() throws TypeMismatchDeprecated.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
int get_long() throws TypeMismatchDeprecated.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
int get_ulong() throws TypeMismatchDeprecated.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
float get_float() throws TypeMismatchDeprecated.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
double get_double() throws TypeMismatchDeprecated.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
String get_string() throws TypeMismatch
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
Object get_reference() throws TypeMismatch
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
TypeCode get_typecode() throws TypeMismatch
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
long get_longlong() throws TypeMismatchDeprecated.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
long get_ulonglong() throws TypeMismatchDeprecated.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
char get_wchar() throws TypeMismatchDeprecated.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
String get_wstring() throws TypeMismatch
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
Any get_any() throws TypeMismatch
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.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
10/10/2025 03:31:24 Cette version de la page est en cache (à la date du 10/10/2025 03:31:24) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 29/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-org/omg/CORBA/DynAny.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.