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 Any
otherAny
- 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 Any
OutputStream
public InputStream create_input_stream()
create_input_stream
in class Any
InputStream
public void read_value(InputStream in, TypeCode tc)
Any
Any
object from
the given input stream using the given typecode.read_value
in class Any
in
- 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)
Any
Any
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 Any
out
- 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 Any
s
- the streamable to insertCORBA
package
comments for unimplemented featurespublic Streamable extract_Streamable()
Any
Streamable
from this Any
object's
value
field. This method allows the extraction of
non-primitive IDL types.extract_Streamable
in class Any
Streamable
stored in the Any
object.CORBA
package
comments for unimplemented featurespublic void insert_short(short s)
insert_short
in class Any
s
- the short
to insert into this
Any
objectpublic short extract_short()
extract_short
in class Any
short
stored in this Any
objectpublic void insert_long(int l)
insert_long
in class Any
l
- the int
to insert into this
Any
objectpublic int extract_long()
extract_long
in class Any
int
stored in this Any
objectpublic void insert_ushort(short s)
insert_ushort
in class Any
s
- the short
to insert into this
Any
objectpublic short extract_ushort()
extract_ushort
in class Any
short
stored in this Any
objectpublic void insert_ulong(int l)
insert_ulong
in class Any
l
- the int
to insert into this
Any
objectpublic int extract_ulong()
extract_ulong
in class Any
int
stored in this Any
objectpublic void insert_float(float f)
insert_float
in class Any
f
- the float
to insert into this
Any
objectpublic float extract_float()
extract_float
in class Any
float
stored in this Any
objectpublic void insert_double(double d)
insert_double
in class Any
d
- the double
to insert into this
Any
objectpublic double extract_double()
extract_double
in class Any
double
stored in this Any
objectpublic void insert_longlong(long l)
insert_longlong
in class Any
l
- the long
to insert into this
Any
objectpublic long extract_longlong()
extract_longlong
in class Any
long
stored in this Any
objectpublic void insert_ulonglong(long l)
insert_ulonglong
in class Any
l
- the long
to insert into this
Any
objectpublic long extract_ulonglong()
extract_ulonglong
in class Any
long
stored in this Any
objectpublic void insert_boolean(boolean b)
insert_boolean
in class Any
b
- the boolean
to insert into this
Any
objectpublic boolean extract_boolean()
extract_boolean
in class Any
boolean
stored in this Any
objectpublic void insert_char(char c)
insert_char
in class Any
c
- the char
to insert into this
Any
objectpublic char extract_char()
extract_char
in class Any
char
stored in this Any
objectpublic void insert_wchar(char c)
insert_wchar
in class Any
c
- the char
to insert into this
Any
objectpublic char extract_wchar()
extract_wchar
in class Any
char
stored in this Any
objectpublic void insert_octet(byte b)
insert_octet
in class Any
b
- the byte
to insert into this
Any
objectpublic byte extract_octet()
extract_octet
in class Any
byte
stored in this Any
objectpublic void insert_string(String s)
insert_string
in class Any
s
- the String
object to insert into this
Any
objectpublic String extract_string()
extract_string
in class Any
String
object stored in this Any
objectpublic void insert_wstring(String s)
insert_wstring
in class Any
s
- the String
object to insert into this
Any
objectpublic String extract_wstring()
extract_wstring
in class Any
String
object stored in this Any
objectpublic void insert_any(Any a)
insert_any
in class Any
a
- the Any
object to insert into this
Any
objectpublic Any extract_any()
extract_any
in class Any
Any
object stored in this Any
objectpublic void insert_Object(Object o)
insert_Object
in class Any
o
- the org.omg.CORBA.Object
object to insert into this
Any
objectpublic void insert_Object(Object o, TypeCode tc)
insert_Object
in class Any
o
- 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 Any
org.omg.CORBA.Object
stored in
this Any
objectpublic void insert_TypeCode(TypeCode tc)
insert_TypeCode
in class Any
tc
- the TypeCode
object to insert into this
Any
objectpublic TypeCode extract_TypeCode()
extract_TypeCode
in class Any
TypeCode
object stored in this Any
object@Deprecated public void insert_Principal(Principal p)
Any
Principal
object
into this Any
object's value
field.
Note that the class Principal
has been deprecated.insert_Principal
in class Any
p
- the Principal
object to insert into this
Any
objectCORBA
package
comments for unimplemented features@Deprecated public Principal extract_Principal()
Any
Principal
object in this
Any
object's value
field.
Note that the class Principal
has been deprecated.extract_Principal
in class Any
Principal
object stored in this Any
objectCORBA
package
comments for unimplemented featurespublic Serializable extract_Value()
extract_Value
in class Any
java.io.Serializable
object stored in
this Any
objectpublic void insert_Value(Serializable v)
Any
java.io.Serializable
object
into this Any
object's value
field.insert_Value
in class Any
v
- the java.io.Serializable
object to insert into this
Any
objectpublic void insert_Value(Serializable v, TypeCode t)
Any
java.io.Serializable
object
into this Any
object's value
field.insert_Value
in class Any
v
- 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)
Any
org.omg.CORBA.NO_IMPLEMENT
exception.
Inserts the given java.math.BigDecimal
object
into this Any
object's value
field.
insert_fixed
in class Any
value
- the java.math.BigDecimal
object
to insert into this Any
objectCORBA
package
comments for unimplemented featurespublic void insert_fixed(BigDecimal value, TypeCode type)
Any
org.omg.CORBA.NO_IMPLEMENT
exception.
Inserts the given java.math.BigDecimal
object
into this Any
object's value
field.
insert_fixed
in class Any
value
- 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()
Any
java.math.BigDecimal
object in this
Any
object's value
field.extract_fixed
in class Any
java.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 © 2021 JBoss by Red Hat. All rights reserved.