@Deprecated public interface DynAny extends Object
Modifier and Type | Method and Description |
---|---|
void |
assign(DynAny dyn_any)
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(Any value)
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(Any value)
Deprecated.
Inserts the given
org.omg.CORBA.Any object as the value for this
DynAny object. |
void |
insert_boolean(boolean value)
Deprecated.
Inserts the given
boolean as the value for this
DynAny object. |
void |
insert_char(char value)
Deprecated.
Inserts the given
char as the value for this
DynAny object. |
void |
insert_double(double value)
Deprecated.
Inserts the given
double as the value for this
DynAny object. |
void |
insert_float(float value)
Deprecated.
Inserts the given
float as the value for this
DynAny object. |
void |
insert_long(int value)
Deprecated.
Inserts the given
int as the value for this
DynAny object. |
void |
insert_longlong(long value)
Deprecated.
Inserts the given
long as the value for this
DynAny object. |
void |
insert_octet(byte value)
Deprecated.
Inserts the given
byte as the value for this
DynAny object. |
void |
insert_reference(Object value)
Deprecated.
Inserts the given
org.omg.CORBA.Object as the value for this
DynAny object. |
void |
insert_short(short value)
Deprecated.
Inserts the given
short as the value for this
DynAny object. |
void |
insert_string(String value)
Deprecated.
Inserts the given
String object as the value for this
DynAny object. |
void |
insert_typecode(TypeCode value)
Deprecated.
Inserts the given
org.omg.CORBA.TypeCode as the value for this
DynAny object. |
void |
insert_ulong(int value)
Deprecated.
Inserts the given
int as the value for this
DynAny object. |
void |
insert_ulonglong(long value)
Deprecated.
Inserts the given
long as the value for this
DynAny object. |
void |
insert_ushort(short value)
Deprecated.
Inserts the given
short as the value for this
DynAny object. |
void |
insert_val(Serializable value)
Deprecated.
Inserts the given
java.io.Serializable object as the value for this
DynAny object. |
void |
insert_wchar(char value)
Deprecated.
Inserts the given
char as the value for this
DynAny object. |
void |
insert_wstring(String value)
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(int index)
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 . |
_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
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
invalidvoid 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 badAny 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 valuevoid 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
objectvoid 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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()
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()
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)
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()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.