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.
TypeCode type()
Deprecated.
Returns the TypeCode
of the object inserted into this DynAny
.
TypeCode
object.void assign(DynAny dyn_any) throws Invalid
Deprecated.
Copy the contents from one Dynamic Any into another.
dyn_any
- the DynAny
object whose contents are assigned to this DynAny
.Invalid
- if the source DynAny
is invalidvoid from_any(Any value) throws Invalid
Deprecated.
Make a DynAny
object from an Any
object.
value
- the Any
object.Invalid
- if the source Any
object is empty or badAny to_any() throws Invalid
Deprecated.
Convert a DynAny
object to an Any
object.
Any
object.Invalid
- if this DynAny
is empty or bad. created or does not contain a meaningful valuevoid destroy()
Deprecated.
Destroys this 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()
Deprecated.
Clones this DynAny
object.
DynAny
objectvoid insert_boolean(boolean value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_octet(byte value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_char(char value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_short(short value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_ushort(short value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_long(int value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_ulong(int value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_float(float value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_double(double value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_string(String value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_reference(Object value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_typecode(TypeCode value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_longlong(long value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_ulonglong(long value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_wchar(char value) throws InvalidValue
Deprecated.
Inserts the given 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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_wstring(String value) throws InvalidValue
Deprecated.
Inserts the given String
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
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_any(Any value) throws InvalidValue
Deprecated.
Inserts the given org.omg.CORBA.Any
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.Any
object to insert into this DynAny
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectvoid insert_val(Serializable value) throws InvalidValue
Deprecated.
Inserts the given java.io.Serializable
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 java.io.Serializable
object to insert into this DynAny
objectInvalidValue
- if the value inserted is not consistent with the type of the accessed component in this DynAny
objectSerializable get_val() throws TypeMismatch
Deprecated.
Retrieves the java.io.Serializable
object contained in this DynAny
object.
java.io.Serializable
object that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a java.io.Serializable
objectboolean get_boolean() throws TypeMismatch
Deprecated.
Retrieves the boolean
contained in this DynAny
object.
boolean
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a boolean
byte get_octet() throws TypeMismatch
Deprecated.
Retrieves the byte
contained in this DynAny
object.
byte
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a byte
char get_char() throws TypeMismatch
Deprecated.
Retrieves the char
contained in this DynAny
object.
char
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a char
short get_short() throws TypeMismatch
Deprecated.
Retrieves the short
contained in this DynAny
object.
short
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a short
short get_ushort() throws TypeMismatch
Deprecated.
Retrieves the short
contained in this DynAny
object.
short
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a short
int get_long() throws TypeMismatch
Deprecated.
Retrieves the int
contained in this DynAny
object.
int
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a int
int get_ulong() throws TypeMismatch
Deprecated.
Retrieves the int
contained in this DynAny
object.
int
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a int
float get_float() throws TypeMismatch
Deprecated.
Retrieves the float
contained in this DynAny
object.
float
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a float
double get_double() throws TypeMismatch
Deprecated.
Retrieves the double
contained in this DynAny
object.
double
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a double
String get_string() throws TypeMismatch
Deprecated.
Retrieves the String
contained in this DynAny
object.
String
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a String
Object get_reference() throws TypeMismatch
Deprecated.
Retrieves the org.omg.CORBA.Other
contained in this DynAny
object.
org.omg.CORBA.Other
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for an org.omg.CORBA.Other
TypeCode get_typecode() throws TypeMismatch
Deprecated.
Retrieves the org.omg.CORBA.TypeCode
contained in this DynAny
object.
org.omg.CORBA.TypeCode
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a org.omg.CORBA.TypeCode
long get_longlong() throws TypeMismatch
Deprecated.
Retrieves the long
contained in this DynAny
object.
long
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a long
long get_ulonglong() throws TypeMismatch
Deprecated.
Retrieves the long
contained in this DynAny
object.
long
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a long
char get_wchar() throws TypeMismatch
Deprecated.
Retrieves the char
contained in this DynAny
object.
char
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a char
String get_wstring() throws TypeMismatch
Deprecated.
Retrieves the String
contained in this DynAny
object.
String
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for a String
Any get_any() throws TypeMismatch
Deprecated.
Retrieves the org.omg.CORBA.Any
contained in this DynAny
object.
org.omg.CORBA.Any
that is the value for this DynAny
objectTypeMismatch
- if the type code of the accessed component in this DynAny
object is not equivalent to the type code for an org.omg.CORBA.Any
DynAny current_component()
Deprecated.
Returns a DynAny
object reference that can be used to get/set the value of the component currently accessed. The appropriate insert
method can be called on the resulting DynAny
object to initialize the component. The appropriate get
method can be called on the resulting DynAny
object to extract the value of the component.
DynAny
object reference that can be used to retrieve or set the value of the component currently accessedboolean next()
Deprecated.
Moves to the next component of this DynAny
object. 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 a DynAny
object is created.
true
if the pointer points to a component; false
if there are no more components or this DynAny
is associated with a basic type rather than a constructed typeboolean seek(int index)
Deprecated.
Moves the internal pointer to the given index. Logically, this method sets a new offset for this pointer.
index
- an int
indicating the position to which the pointer should move. The first position is 0.true
if the pointer points to a component; false
if there is no component at the designated index. If this DynAny
object is associated with a basic type, this method returns false
for any index other than 0.void rewind()
Deprecated.
Moves the internal pointer to the first component.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.