public class AnyImpl extends Any
| Constructor and Description |
|---|
AnyImpl(ORB orb)
A constructor that sets the Any to contain a null.
|
AnyImpl(ORB orb,
Any obj) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
create_input_stream()
returns an input stream that an Any value can be marshaled out of.
|
OutputStream |
create_output_stream()
returns an output stream that an Any value can be marshaled into.
|
TypeCode |
createTypeCodeForClass(Class c,
ORB tcORB)
Utility method for insert_Value and Util.writeAny.
|
boolean |
equal(Any otherAny)
checks for equality between Anys.
|
Any |
extract_any()
See the description of the general Any operations.
|
boolean |
extract_boolean()
See the description of the general Any operations.
|
char |
extract_char()
See the description of the general Any operations.
|
double |
extract_double()
See the description of the general Any operations.
|
BigDecimal |
extract_fixed()
Extracts the
java.math.BigDecimal object in this
Any object's value field. |
float |
extract_float()
See the description of the general Any operations.
|
int |
extract_long()
See the description of the general Any operations.
|
long |
extract_longlong()
See the description of the general Any operations.
|
Object |
extract_Object()
See the description of the general Any operations.
|
byte |
extract_octet()
See the description of the general Any operations.
|
Principal |
extract_Principal()
Deprecated.
|
short |
extract_short()
See the description of the general Any operations.
|
Streamable |
extract_Streamable()
Extracts a
Streamable from this Any object's
value field. |
String |
extract_string()
See the description of the general Any operations.
|
TypeCode |
extract_TypeCode()
See the description of the general Any operations.
|
int |
extract_ulong()
See the description of the general Any operations.
|
long |
extract_ulonglong()
See the description of the general Any operations.
|
short |
extract_ushort()
See the description of the general Any operations.
|
Serializable |
extract_Value()
Note that the Serializable really should be an IDLEntity of
some kind.
|
char |
extract_wchar()
See the description of the general Any operations.
|
String |
extract_wstring()
See the description of the general Any operations.
|
Any |
extractAny(TypeCode memberType,
ORB orb) |
static Any |
extractAnyFromStream(TypeCode memberType,
InputStream input,
ORB orb) |
void |
insert_any(Any a)
See the description of the general Any operations.
|
void |
insert_boolean(boolean b)
See the description of the general Any operations.
|
void |
insert_char(char c)
See the description of the general Any operations.
|
void |
insert_double(double d)
See the description of the general Any operations.
|
void |
insert_fixed(BigDecimal value)
Throws an
org.omg.CORBA.NO_IMPLEMENT exception. |
void |
insert_fixed(BigDecimal value,
TypeCode type)
Throws an
org.omg.CORBA.NO_IMPLEMENT exception. |
void |
insert_float(float f)
See the description of the general Any operations.
|
void |
insert_long(int l)
See the description of the general Any operations.
|
void |
insert_longlong(long l)
See the description of the general Any operations.
|
void |
insert_Object(Object o)
See the description of the general Any operations.
|
void |
insert_Object(Object o,
TypeCode tc)
A variant of the insertion operation that takes a typecode
argument as well.
|
void |
insert_octet(byte b)
See the description of the general Any operations.
|
void |
insert_Principal(Principal p)
Deprecated.
|
void |
insert_short(short s)
See the description of the general Any operations.
|
void |
insert_Streamable(Streamable s)
takes a streamable and inserts its reference into the any
|
void |
insert_string(String s)
See the description of the general Any operations.
|
void |
insert_TypeCode(TypeCode tc)
See the description of the general Any operations.
|
void |
insert_ulong(int l)
See the description of the general Any operations.
|
void |
insert_ulonglong(long l)
See the description of the general Any operations.
|
void |
insert_ushort(short s)
See the description of the general Any operations.
|
void |
insert_Value(Serializable v)
Inserts the given
java.io.Serializable object
into this Any object's value field. |
void |
insert_Value(Serializable v,
TypeCode t)
Inserts the given
java.io.Serializable object
into this Any object's value field. |
void |
insert_wchar(char c)
See the description of the general Any operations.
|
void |
insert_wstring(String s)
See the description of the general Any operations.
|
boolean |
isInitialized() |
void |
read_value(InputStream in,
TypeCode tc)
Reads off (unmarshals) the value of an
Any object from
the given input stream using the given typecode. |
TypeCode |
type()
returns the type of the element contained in the Any.
|
void |
type(TypeCode tc)
sets the type of the element to be contained in the Any.
|
void |
write_value(OutputStream out)
Writes out the value of this
Any object
to the given output stream. |
protected ORB orb
public AnyImpl(ORB orb)
public TypeCode type()
public void type(TypeCode tc)
public boolean equal(Any otherAny)
equal in class AnyotherAny - the Any to be compared with.true if the Any objects are equal;
false otherwiseCORBA package
comments for unimplemented featurespublic OutputStream create_output_stream()
create_output_stream in class AnyOutputStreampublic InputStream create_input_stream()
create_input_stream in class AnyInputStreampublic void read_value(InputStream in, TypeCode tc)
AnyAny object from
the given input stream using the given typecode.read_value in class Anyin - the org.omg.CORBA.portable.InputStream
object from which to read
the value contained in this Any objecttc - a TypeCode object containing type information
about the value to be readpublic void write_value(OutputStream out)
AnyAny object
to the given output stream. If both typecode
and value need to be written, use
create_output_stream() to create an OutputStream,
then use write_any on the OutputStream.
If this method is called on an Any object that has not
had a value inserted into its value field, it will throw
the exception java.lang.NullPointerException.
write_value in class Anyout - the org.omg.CORBA.portable.OutputStream
object into which to marshal the value
of this Any objectpublic void insert_Streamable(Streamable s)
insert_Streamable in class Anys - the streamable to insertCORBA package
comments for unimplemented featurespublic Streamable extract_Streamable()
AnyStreamable from this Any object's
value field. This method allows the extraction of
non-primitive IDL types.extract_Streamable in class AnyStreamable stored in the Any object.CORBA package
comments for unimplemented featurespublic void insert_short(short s)
insert_short in class Anys - the short to insert into this
Any objectpublic short extract_short()
extract_short in class Anyshort stored in this Any objectpublic void insert_long(int l)
insert_long in class Anyl - the int to insert into this
Any objectpublic int extract_long()
extract_long in class Anyint stored in this Any objectpublic void insert_ushort(short s)
insert_ushort in class Anys - the short to insert into this
Any objectpublic short extract_ushort()
extract_ushort in class Anyshort stored in this Any objectpublic void insert_ulong(int l)
insert_ulong in class Anyl - the int to insert into this
Any objectpublic int extract_ulong()
extract_ulong in class Anyint stored in this Any objectpublic void insert_float(float f)
insert_float in class Anyf - the float to insert into this
Any objectpublic float extract_float()
extract_float in class Anyfloat stored in this Any objectpublic void insert_double(double d)
insert_double in class Anyd - the double to insert into this
Any objectpublic double extract_double()
extract_double in class Anydouble stored in this Any objectpublic void insert_longlong(long l)
insert_longlong in class Anyl - the long to insert into this
Any objectpublic long extract_longlong()
extract_longlong in class Anylong stored in this Any objectpublic void insert_ulonglong(long l)
insert_ulonglong in class Anyl - the long to insert into this
Any objectpublic long extract_ulonglong()
extract_ulonglong in class Anylong stored in this Any objectpublic void insert_boolean(boolean b)
insert_boolean in class Anyb - the boolean to insert into this
Any objectpublic boolean extract_boolean()
extract_boolean in class Anyboolean stored in this Any objectpublic void insert_char(char c)
insert_char in class Anyc - the char to insert into this
Any objectpublic char extract_char()
extract_char in class Anychar stored in this Any objectpublic void insert_wchar(char c)
insert_wchar in class Anyc - the char to insert into this
Any objectpublic char extract_wchar()
extract_wchar in class Anychar stored in this Any objectpublic void insert_octet(byte b)
insert_octet in class Anyb - the byte to insert into this
Any objectpublic byte extract_octet()
extract_octet in class Anybyte stored in this Any objectpublic void insert_string(String s)
insert_string in class Anys - the String object to insert into this
Any objectpublic String extract_string()
extract_string in class AnyString object stored in this Any objectpublic void insert_wstring(String s)
insert_wstring in class Anys - the String object to insert into this
Any objectpublic String extract_wstring()
extract_wstring in class AnyString object stored in this Any objectpublic void insert_any(Any a)
insert_any in class Anya - the Any object to insert into this
Any objectpublic Any extract_any()
extract_any in class AnyAny object stored in this Any objectpublic void insert_Object(Object o)
insert_Object in class Anyo - the org.omg.CORBA.Object object to insert into this
Any objectpublic void insert_Object(Object o, TypeCode tc)
insert_Object in class Anyo - the org.omg.CORBA.Object instance to insert into this
Any objecttc - the TypeCode object that is to be inserted into
this Any object and that describes
the Object being insertedpublic Object extract_Object()
extract_Object in class Anyorg.omg.CORBA.Object stored in
this Any objectpublic void insert_TypeCode(TypeCode tc)
insert_TypeCode in class Anytc - the TypeCode object to insert into this
Any objectpublic TypeCode extract_TypeCode()
extract_TypeCode in class AnyTypeCode object stored in this Any object@Deprecated public void insert_Principal(Principal p)
AnyPrincipal object
into this Any object's value field.
Note that the class Principal has been deprecated.insert_Principal in class Anyp - the Principal object to insert into this
Any objectCORBA package
comments for unimplemented features@Deprecated public Principal extract_Principal()
AnyPrincipal object in this
Any object's value field.
Note that the class Principal has been deprecated.extract_Principal in class AnyPrincipal object stored in this Any objectCORBA package
comments for unimplemented featurespublic Serializable extract_Value()
extract_Value in class Anyjava.io.Serializable object stored in
this Any objectpublic void insert_Value(Serializable v)
Anyjava.io.Serializable object
into this Any object's value field.insert_Value in class Anyv - the java.io.Serializable object to insert into this
Any objectpublic void insert_Value(Serializable v, TypeCode t)
Anyjava.io.Serializable object
into this Any object's value field.insert_Value in class Anyv - the java.io.Serializable object to insert into this
Any objectt - the TypeCode object that is to be inserted into
this Any object's type field
and that describes the java.io.Serializable
object being insertedpublic void insert_fixed(BigDecimal value)
Anyorg.omg.CORBA.NO_IMPLEMENT exception.
Inserts the given java.math.BigDecimal object
into this Any object's value field.
insert_fixed in class Anyvalue - the java.math.BigDecimal object
to insert into this Any objectCORBA package
comments for unimplemented featurespublic void insert_fixed(BigDecimal value, TypeCode type)
Anyorg.omg.CORBA.NO_IMPLEMENT exception.
Inserts the given java.math.BigDecimal object
into this Any object's value field.
insert_fixed in class Anyvalue - the java.math.BigDecimal object
to insert into this Any objecttype - the TypeCode object that is to be inserted into
this Any object's type field
and that describes the java.math.BigDecimal
object being insertedCORBA package
comments for unimplemented featurespublic BigDecimal extract_fixed()
Anyjava.math.BigDecimal object in this
Any object's value field.extract_fixed in class Anyjava.math.BigDecimal object
stored in this Any objectCORBA package
comments for unimplemented featurespublic TypeCode createTypeCodeForClass(Class c, ORB tcORB)
public static Any extractAnyFromStream(TypeCode memberType, InputStream input, ORB orb)
public boolean isInitialized()
Copyright © 2018 JBoss by Red Hat. All rights reserved.