|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.omg.CORBA.Any values can be dynamically interpreted (traversed) and constructed through DynAny objects. 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(DynAny dyn_any)
Copy the contents from one Dynamic Any into another. |
DynAny |
copy()
Clone this DnyAny. |
DynAny |
current_component()
During traversal or iteration of a DynAny , inspect
the current component in the DynAny . |
void |
destroy()
Destroy this DynAny . |
void |
from_any(Any value)
Make a DynAny object from an Any
object. |
Any |
get_any()
|
boolean |
get_boolean()
|
char |
get_char()
|
double |
get_double()
|
float |
get_float()
|
int |
get_long()
|
long |
get_longlong()
|
byte |
get_octet()
|
Object |
get_reference()
|
short |
get_short()
|
String |
get_string()
|
TypeCode |
get_typecode()
|
int |
get_ulong()
|
long |
get_ulonglong()
|
short |
get_ushort()
|
Serializable |
get_val()
|
char |
get_wchar()
|
String |
get_wstring()
|
void |
insert_any(Any value)
|
void |
insert_boolean(boolean value)
|
void |
insert_char(char value)
|
void |
insert_double(double value)
|
void |
insert_float(float value)
|
void |
insert_long(int value)
|
void |
insert_longlong(long value)
|
void |
insert_octet(byte value)
|
void |
insert_reference(Object value)
|
void |
insert_short(short value)
|
void |
insert_string(String value)
|
void |
insert_typecode(TypeCode value)
|
void |
insert_ulong(int value)
|
void |
insert_ulonglong(long value)
|
void |
insert_ushort(short value)
|
void |
insert_val(Serializable value)
|
void |
insert_wchar(char value)
|
void |
insert_wstring(String value)
|
boolean |
next()
Logically advance the pointer to the next component. |
void |
rewind()
Rewind the internal pointer to point to the first component. |
boolean |
seek(int index)
Advance to the component at a specified index. |
Any |
to_any()
Convert a DynAny object to an Any
object. |
TypeCode |
type()
Returns the TypeCode of the object inserted into
this DynAny . |
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 |
public TypeCode type()
TypeCode
of the object inserted into
this DynAny
.TypeCode
object.public void assign(DynAny dyn_any) throws Invalid
dyn_any
- the DynAny
object whose contents
are assigned to this DynAny
.DynAny
is
invalid.public void from_any(Any value) throws Invalid
DynAny
object from an Any
object.value
- the Any
object.Any
object is
empty or bad.public Any to_any() throws Invalid
DynAny
object to an Any
object.Any
object.DynAny
is empty or
bad.public void destroy()
DynAny
.public DynAny copy()
DynAny
.public void insert_boolean(boolean value) throws InvalidValue
public void insert_octet(byte value) throws InvalidValue
public void insert_char(char value) throws InvalidValue
public void insert_short(short value) throws InvalidValue
public void insert_ushort(short value) throws InvalidValue
public void insert_long(int value) throws InvalidValue
public void insert_ulong(int value) throws InvalidValue
public void insert_float(float value) throws InvalidValue
public void insert_double(double value) throws InvalidValue
public void insert_string(String value) throws InvalidValue
public void insert_reference(Object value) throws InvalidValue
public void insert_typecode(TypeCode value) throws InvalidValue
public void insert_longlong(long value) throws InvalidValue
public void insert_ulonglong(long value) throws InvalidValue
public void insert_wchar(char value) throws InvalidValue
public void insert_wstring(String value) throws InvalidValue
public void insert_any(Any value) throws InvalidValue
public void insert_val(Serializable value) throws InvalidValue
public Serializable get_val() throws TypeMismatch
public boolean get_boolean() throws TypeMismatch
public byte get_octet() throws TypeMismatch
public char get_char() throws TypeMismatch
public short get_short() throws TypeMismatch
public short get_ushort() throws TypeMismatch
public int get_long() throws TypeMismatch
public int get_ulong() throws TypeMismatch
public float get_float() throws TypeMismatch
public double get_double() throws TypeMismatch
public String get_string() throws TypeMismatch
public Object get_reference() throws TypeMismatch
public TypeCode get_typecode() throws TypeMismatch
public long get_longlong() throws TypeMismatch
public long get_ulonglong() throws TypeMismatch
public char get_wchar() throws TypeMismatch
public String get_wstring() throws TypeMismatch
public Any get_any() throws TypeMismatch
public DynAny current_component()
DynAny
, inspect
the current component in the DynAny
.DynAny
public boolean next()
public boolean seek(int index)
index
- the index of the component to advance to.index
,
false otherwise.public void rewind()
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |