public abstract class Any extends Object implements Serializable, IDLEntity
| Constructor and Description |
|---|
Any() |
| Modifier and Type | Method and Description |
|---|---|
abstract InputStream |
create_input_stream()
Creates an input stream from that this Any object's value can be
read (unmarshalled).
|
abstract OutputStream |
create_output_stream()
Creates an output stream into which this
Any object's
value can be written (marshalled). |
abstract boolean |
equal(Any other)
Compare this
Any with another Any. |
abstract Any |
extract_any()
Extract another
Any from this Any. |
abstract boolean |
extract_boolean()
Extract the CORBA
boolean from this Any. |
abstract char |
extract_char()
Extract the CORBA
char from this Any. |
abstract double |
extract_double()
Extract the CORBA
double from this Any. |
BigDecimal |
extract_fixed()
Extract the CORBA
fixed from this Any. |
abstract float |
extract_float()
Extract the CORBA
float from this Any. |
abstract int |
extract_long()
Extract the CORBA
long from this Any. |
abstract long |
extract_longlong()
Extract the CORBA
long long from this Any. |
abstract Object |
extract_Object()
Extract the CORBA
Object from this Any |
abstract byte |
extract_octet()
Extract the CORBA
octet from this Any. |
Principal |
extract_Principal()
Deprecated.
by CORBA 2.2.
|
abstract short |
extract_short()
Extract the CORBA
short from this Any. |
Streamable |
extract_Streamable()
Extract an arbitrary
Streamable from
this Any. |
abstract String |
extract_string()
Extract the CORBA
string from this Any. |
abstract TypeCode |
extract_TypeCode()
Extract the TypeCode from this
Any value field. |
abstract int |
extract_ulong()
Extract the CORBA unsigned
long from this Any |
abstract long |
extract_ulonglong()
Extract the CORBA unsigned
long long from this
Any. |
abstract short |
extract_ushort()
Extract the CORBA unsigned
short from this Any |
abstract Serializable |
extract_Value()
Extract the CORBA
Value from this Any |
abstract char |
extract_wchar()
Extract the CORBA
wchar from this Any |
abstract String |
extract_wstring()
Extract the CORBA
wstring from this Any |
abstract void |
insert_any(Any x)
Insert the CORBA
any into this Any |
abstract void |
insert_boolean(boolean x)
Insert the CORBA
boolean into this Any |
abstract void |
insert_char(char x)
Insert the CORBA
char into this Any |
abstract void |
insert_double(double x)
Insert the CORBA
double into this Any |
void |
insert_fixed(BigDecimal x)
Insert the CORBA
fixed into this Any |
void |
insert_fixed(BigDecimal x,
TypeCode typecode)
Insert the CORBA
fixed into this Any |
abstract void |
insert_float(float x)
Insert the CORBA
float into this Any |
abstract void |
insert_long(int x)
Insert the CORBA
long into this Any |
abstract void |
insert_longlong(long x)
Insert the CORBA
longlong into this Any |
abstract void |
insert_Object(Object x)
Insert the CORBA
Object into this Any |
abstract void |
insert_Object(Object x,
TypeCode typecode)
Insert the CORBA
Object into this Any |
abstract void |
insert_octet(byte x)
Insert the CORBA
octet into this Any |
void |
insert_Principal(Principal x)
Deprecated.
by CORBA 2.2.
|
abstract void |
insert_short(short x)
Insert the CORBA
short into this Any |
void |
insert_Streamable(Streamable x)
Insert the CORBA
Streamable into this Any |
abstract void |
insert_string(String x)
Insert the CORBA
string into this Any |
abstract void |
insert_TypeCode(TypeCode typecode)
Insert the CORBA
TypeCode into this Any
value field. |
abstract void |
insert_ulong(int x)
Insert the CORBA
ulong into this Any |
abstract void |
insert_ulonglong(long x)
Insert the CORBA
ulonglong into this Any |
abstract void |
insert_ushort(short x)
Insert the CORBA
ushort into this Any |
abstract void |
insert_Value(Serializable x)
Insert the CORBA
Value into this Any. |
abstract void |
insert_Value(Serializable x,
TypeCode typecode)
Insert the CORBA
Value into this Any. |
abstract void |
insert_wchar(char x)
Insert the CORBA
wchar into this Any |
abstract void |
insert_wstring(String x)
Insert the CORBA
wstring into this Any |
abstract void |
read_value(InputStream input,
TypeCode type)
Read the value into this
Any from the given input stream. |
abstract TypeCode |
type()
Returns the TypeCode of the object, stored in this
Any |
abstract void |
type(TypeCode valueTypeCode)
Set the type of the object, stored in this
Any, to the
given TypeCode. |
abstract void |
write_value(OutputStream output)
Writes out the value (without the typecode of the value), stored in
this
Any. |
public Any()
public abstract InputStream create_input_stream()
public abstract OutputStream create_output_stream()
Any object's
value can be written (marshalled).public abstract boolean equal(Any other)
Any with another Any.other - the other instance to compare with.public abstract Object extract_Object() throws BAD_OPERATION
Object from this AnyBAD_OPERATION - if this instance contains value other
than Object or the value has not been set.public Principal extract_Principal()
Principal from this AnyNO_IMPLEMENT, - always.public Streamable extract_Streamable() throws BAD_INV_ORDER
Streamable from
this Any.BAD_INV_ORDER - if the caller has invoked operations in the
wrong order.NO_IMPLEMENT, - always (override to get functionality).public abstract TypeCode extract_TypeCode() throws BAD_OPERATION
Any value field.BAD_OPERATION - if this instance contains value other
than TypeCode or the value has not been set.public abstract Serializable extract_Value() throws BAD_OPERATION
Value from this AnyBAD_OPERATION - if this instance contains value other
than Value or the value has not been set.public abstract Any extract_any() throws BAD_OPERATION
Any from this Any.BAD_OPERATION - if this instance contains value other
than any or the value has not been set.public abstract boolean extract_boolean() throws BAD_OPERATION
boolean from this Any.BAD_OPERATION - if this instance contains value other
than boolean or the value has not been set.public abstract char extract_char() throws BAD_OPERATION
char from this Any.BAD_OPERATION - if this instance contains value other
than char or the value has not been set.public abstract double extract_double() throws BAD_OPERATION
double from this Any.BAD_OPERATION - if this instance contains value other
than double or the value has not been set.public BigDecimal extract_fixed() throws BAD_OPERATION
fixed from this Any.BAD_OPERATION - if this instance contains value other
than fixed or the value has not been set.NO_IMPLEMENT, - always (override to get functionality).public abstract float extract_float() throws BAD_OPERATION
float from this Any.BAD_OPERATION - if this instance contains value other
than float or the value has not been set.public abstract int extract_long() throws BAD_OPERATION
long from this Any.BAD_OPERATION - if this instance contains value other
than long or the value has not been set.public abstract long extract_longlong() throws BAD_OPERATION
long long from this Any.BAD_OPERATION - if this instance contains value other
than longlong or the value has not been set.public abstract byte extract_octet() throws BAD_OPERATION
octet from this Any.BAD_OPERATION - if this instance contains value other
than octet or the value has not been set.public abstract short extract_short() throws BAD_OPERATION
short from this Any.BAD_OPERATION - if this instance contains value other
than short or the value has not been set.public abstract String extract_string() throws BAD_OPERATION
string from this Any.BAD_OPERATION - if this instance contains value other
than string or the value has not been set.public abstract int extract_ulong() throws BAD_OPERATION
long from this AnyBAD_OPERATION - if this instance contains value other
than unsigned long or the value has not been set.public abstract long extract_ulonglong() throws BAD_OPERATION
long long from this
Any.BAD_OPERATION - if this instance contains value other
than unsigned long long or the value has not been set.public abstract short extract_ushort() throws BAD_OPERATION
short from this AnyBAD_OPERATION - if this instance contains value other
than unsigned short or the value has not been set.public abstract char extract_wchar() throws BAD_OPERATION
wchar from this AnyBAD_OPERATION - if this instance contains value other
than wchar or the value has not been set.public abstract String extract_wstring() throws BAD_OPERATION
wstring from this AnyBAD_OPERATION - if this instance contains value other
than wstring or the value has not been set.public abstract void insert_Object(Object x, TypeCode typecode)
Object into this Anypublic abstract void insert_Object(Object x)
Object into this Anypublic void insert_Principal(Principal x)
Principal into this Any.public void insert_Streamable(Streamable x)
Streamable into this Anypublic abstract void insert_TypeCode(TypeCode typecode)
TypeCode into this Any
value field.public abstract void insert_Value(Serializable x, TypeCode typecode)
Value into this Any.
The type of the Any should be set (by type(TypeCode))
before inserting the value.public abstract void insert_Value(Serializable x)
Value into this Any.
The type of the Any should be set (by type(TypeCode))
before inserting the value.public abstract void insert_any(Any x)
any into this Anypublic abstract void insert_boolean(boolean x)
boolean into this Anypublic abstract void insert_char(char x)
char into this Anypublic abstract void insert_double(double x)
double into this Anypublic void insert_fixed(BigDecimal x, TypeCode typecode)
fixed into this Anypublic void insert_fixed(BigDecimal x)
fixed into this Anypublic abstract void insert_float(float x)
float into this Anypublic abstract void insert_long(int x)
long into this Anypublic abstract void insert_longlong(long x)
longlong into this Anypublic abstract void insert_octet(byte x)
octet into this Anypublic abstract void insert_short(short x)
short into this Anypublic abstract void insert_string(String x)
string into this Anypublic abstract void insert_ulong(int x)
ulong into this Anypublic abstract void insert_ulonglong(long x)
ulonglong into this Anypublic abstract void insert_ushort(short x)
ushort into this Anypublic abstract void insert_wchar(char x)
wchar into this Anypublic abstract void insert_wstring(String x)
wstring into this Anypublic abstract void read_value(InputStream input, TypeCode type) throws MARSHAL
Any from the given input stream.input - a CORBA stream to read from.type - a TypeCode of the object being read.MARSHAL - if the given TypeCode does not match
the TypeCode of the object, found in the stream.public abstract void type(TypeCode valueTypeCode)
Any, to the
given TypeCode. Clear the value.valueTypeCode - the type of the object that is expected to be stored
in this any.public abstract TypeCode type()
Anypublic abstract void write_value(OutputStream output)
Any.output - the CORBA stream to write into.NullPointerException - if the value of this Any
has not been set.