Package com.sun.corba.se.impl.corba
Class AnyImpl
java.lang.Object
org.omg.CORBA.Any
com.sun.corba.se.impl.corba.AnyImpl
- All Implemented Interfaces:
Serializable,IDLEntity
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns an input stream that an Any value can be marshaled out of.returns an output stream that an Any value can be marshaled into.createTypeCodeForClass(Class c, ORB tcORB) Utility method for insert_Value and Util.writeAny.booleanchecks for equality between Anys.See the description of the general Any operations.booleanSee the description of the general Any operations.charSee the description of the general Any operations.doubleSee the description of the general Any operations.Extracts thejava.math.BigDecimalobject in thisAnyobject'svaluefield.floatSee the description of the general Any operations.intSee the description of the general Any operations.longSee the description of the general Any operations.See the description of the general Any operations.byteSee the description of the general Any operations.Deprecated.shortSee the description of the general Any operations.Extracts aStreamablefrom thisAnyobject'svaluefield.See the description of the general Any operations.See the description of the general Any operations.intSee the description of the general Any operations.longSee the description of the general Any operations.shortSee the description of the general Any operations.Note that the Serializable really should be an IDLEntity of some kind.charSee the description of the general Any operations.See the description of the general Any operations.extractAny(TypeCode memberType, ORB orb) static AnyextractAnyFromStream(TypeCode memberType, InputStream input, ORB orb) voidinsert_any(Any a) See the description of the general Any operations.voidinsert_boolean(boolean b) See the description of the general Any operations.voidinsert_char(char c) See the description of the general Any operations.voidinsert_double(double d) See the description of the general Any operations.voidinsert_fixed(BigDecimal value) Throws anorg.omg.CORBA.NO_IMPLEMENTexception.voidinsert_fixed(BigDecimal value, TypeCode type) Throws anorg.omg.CORBA.NO_IMPLEMENTexception.voidinsert_float(float f) See the description of the general Any operations.voidinsert_long(int l) See the description of the general Any operations.voidinsert_longlong(long l) See the description of the general Any operations.voidSee the description of the general Any operations.voidinsert_Object(Object o, TypeCode tc) A variant of the insertion operation that takes a typecode argument as well.voidinsert_octet(byte b) See the description of the general Any operations.voidDeprecated.voidinsert_short(short s) See the description of the general Any operations.voidtakes a streamable and inserts its reference into the anyvoidSee the description of the general Any operations.voidSee the description of the general Any operations.voidinsert_ulong(int l) See the description of the general Any operations.voidinsert_ulonglong(long l) See the description of the general Any operations.voidinsert_ushort(short s) See the description of the general Any operations.voidInserts the givenjava.io.Serializableobject into thisAnyobject'svaluefield.voidinsert_Value(Serializable v, TypeCode t) Inserts the givenjava.io.Serializableobject into thisAnyobject'svaluefield.voidinsert_wchar(char c) See the description of the general Any operations.voidSee the description of the general Any operations.booleanvoidread_value(InputStream in, TypeCode tc) Reads off (unmarshals) the value of anAnyobject from the given input stream using the given typecode.type()returns the type of the element contained in the Any.voidsets the type of the element to be contained in the Any.voidwrite_value(OutputStream out) Writes out the value of thisAnyobject to the given output stream.
-
Field Details
-
orb
-
-
Constructor Details
-
AnyImpl
A constructor that sets the Any to contain a null. It also marks the value as being invalid so that extractions throw an exception until an insertion has been performed. -
AnyImpl
-
-
Method Details
-
type
returns the type of the element contained in the Any. -
type
sets the type of the element to be contained in the Any. -
equal
checks for equality between Anys. -
create_output_stream
returns an output stream that an Any value can be marshaled into.- Specified by:
create_output_streamin classAny- Returns:
- the newly-created
OutputStream
-
create_input_stream
returns an input stream that an Any value can be marshaled out of.- Specified by:
create_input_streamin classAny- Returns:
- the newly-created
InputStream
-
read_value
Description copied from class:AnyReads off (unmarshals) the value of anAnyobject from the given input stream using the given typecode.- Specified by:
read_valuein classAny- Parameters:
in- theorg.omg.CORBA.portable.InputStreamobject from which to read the value contained in thisAnyobjecttc- aTypeCodeobject containing type information about the value to be read
-
write_value
Description copied from class:AnyWrites out the value of thisAnyobject to the given output stream. If bothtypecodeandvalueneed to be written, usecreate_output_stream()to create anOutputStream, then usewrite_anyon theOutputStream.If this method is called on an
Anyobject that has not had a value inserted into itsvaluefield, it will throw the exceptionjava.lang.NullPointerException.- Specified by:
write_valuein classAny- Parameters:
out- theorg.omg.CORBA.portable.OutputStreamobject into which to marshal the value of thisAnyobject
-
insert_Streamable
takes a streamable and inserts its reference into the any- Overrides:
insert_Streamablein classAny- Parameters:
s- the streamable to insert- See Also:
-
extract_Streamable
Description copied from class:AnyExtracts aStreamablefrom thisAnyobject'svaluefield. This method allows the extraction of non-primitive IDL types.- Overrides:
extract_Streamablein classAny- Returns:
- the
Streamablestored in theAnyobject. - See Also:
-
insert_short
public void insert_short(short s) See the description of the general Any operations.- Specified by:
insert_shortin classAny- Parameters:
s- theshortto insert into thisAnyobject
-
extract_short
public short extract_short()See the description of the general Any operations.- Specified by:
extract_shortin classAny- Returns:
- the
shortstored in thisAnyobject
-
insert_long
public void insert_long(int l) See the description of the general Any operations.- Specified by:
insert_longin classAny- Parameters:
l- theintto insert into thisAnyobject
-
extract_long
public int extract_long()See the description of the general Any operations.- Specified by:
extract_longin classAny- Returns:
- the
intstored in thisAnyobject
-
insert_ushort
public void insert_ushort(short s) See the description of the general Any operations.- Specified by:
insert_ushortin classAny- Parameters:
s- theshortto insert into thisAnyobject
-
extract_ushort
public short extract_ushort()See the description of the general Any operations.- Specified by:
extract_ushortin classAny- Returns:
- the
shortstored in thisAnyobject
-
insert_ulong
public void insert_ulong(int l) See the description of the general Any operations.- Specified by:
insert_ulongin classAny- Parameters:
l- theintto insert into thisAnyobject
-
extract_ulong
public int extract_ulong()See the description of the general Any operations.- Specified by:
extract_ulongin classAny- Returns:
- the
intstored in thisAnyobject
-
insert_float
public void insert_float(float f) See the description of the general Any operations.- Specified by:
insert_floatin classAny- Parameters:
f- thefloatto insert into thisAnyobject
-
extract_float
public float extract_float()See the description of the general Any operations.- Specified by:
extract_floatin classAny- Returns:
- the
floatstored in thisAnyobject
-
insert_double
public void insert_double(double d) See the description of the general Any operations.- Specified by:
insert_doublein classAny- Parameters:
d- thedoubleto insert into thisAnyobject
-
extract_double
public double extract_double()See the description of the general Any operations.- Specified by:
extract_doublein classAny- Returns:
- the
doublestored in thisAnyobject
-
insert_longlong
public void insert_longlong(long l) See the description of the general Any operations.- Specified by:
insert_longlongin classAny- Parameters:
l- thelongto insert into thisAnyobject
-
extract_longlong
public long extract_longlong()See the description of the general Any operations.- Specified by:
extract_longlongin classAny- Returns:
- the
longstored in thisAnyobject
-
insert_ulonglong
public void insert_ulonglong(long l) See the description of the general Any operations.- Specified by:
insert_ulonglongin classAny- Parameters:
l- thelongto insert into thisAnyobject
-
extract_ulonglong
public long extract_ulonglong()See the description of the general Any operations.- Specified by:
extract_ulonglongin classAny- Returns:
- the
longstored in thisAnyobject
-
insert_boolean
public void insert_boolean(boolean b) See the description of the general Any operations.- Specified by:
insert_booleanin classAny- Parameters:
b- thebooleanto insert into thisAnyobject
-
extract_boolean
public boolean extract_boolean()See the description of the general Any operations.- Specified by:
extract_booleanin classAny- Returns:
- the
booleanstored in thisAnyobject
-
insert_char
public void insert_char(char c) See the description of the general Any operations.- Specified by:
insert_charin classAny- Parameters:
c- thecharto insert into thisAnyobject
-
extract_char
public char extract_char()See the description of the general Any operations.- Specified by:
extract_charin classAny- Returns:
- the
charstored in thisAnyobject
-
insert_wchar
public void insert_wchar(char c) See the description of the general Any operations.- Specified by:
insert_wcharin classAny- Parameters:
c- thecharto insert into thisAnyobject
-
extract_wchar
public char extract_wchar()See the description of the general Any operations.- Specified by:
extract_wcharin classAny- Returns:
- the
charstored in thisAnyobject
-
insert_octet
public void insert_octet(byte b) See the description of the general Any operations.- Specified by:
insert_octetin classAny- Parameters:
b- thebyteto insert into thisAnyobject
-
extract_octet
public byte extract_octet()See the description of the general Any operations.- Specified by:
extract_octetin classAny- Returns:
- the
bytestored in thisAnyobject
-
insert_string
See the description of the general Any operations.- Specified by:
insert_stringin classAny- Parameters:
s- theStringobject to insert into thisAnyobject
-
extract_string
See the description of the general Any operations.- Specified by:
extract_stringin classAny- Returns:
- the
Stringobject stored in thisAnyobject
-
insert_wstring
See the description of the general Any operations.- Specified by:
insert_wstringin classAny- Parameters:
s- theStringobject to insert into thisAnyobject
-
extract_wstring
See the description of the general Any operations.- Specified by:
extract_wstringin classAny- Returns:
- the
Stringobject stored in thisAnyobject
-
insert_any
See the description of the general Any operations.- Specified by:
insert_anyin classAny- Parameters:
a- theAnyobject to insert into thisAnyobject
-
extract_any
See the description of the general Any operations.- Specified by:
extract_anyin classAny- Returns:
- the
Anyobject stored in thisAnyobject
-
insert_Object
See the description of the general Any operations.- Specified by:
insert_Objectin classAny- Parameters:
o- theorg.omg.CORBA.Objectobject to insert into thisAnyobject
-
insert_Object
A variant of the insertion operation that takes a typecode argument as well.- Specified by:
insert_Objectin classAny- Parameters:
o- theorg.omg.CORBA.Objectinstance to insert into thisAnyobjecttc- theTypeCodeobject that is to be inserted into thisAnyobject and that describes theObjectbeing inserted
-
extract_Object
See the description of the general Any operations.- Specified by:
extract_Objectin classAny- Returns:
- the
org.omg.CORBA.Objectstored in thisAnyobject
-
insert_TypeCode
See the description of the general Any operations.- Specified by:
insert_TypeCodein classAny- Parameters:
tc- theTypeCodeobject to insert into thisAnyobject
-
extract_TypeCode
See the description of the general Any operations.- Specified by:
extract_TypeCodein classAny- Returns:
- the
TypeCodeobject stored in thisAnyobject
-
insert_Principal
Deprecated.Description copied from class:AnyInserts the givenPrincipalobject into thisAnyobject'svaluefield. Note that the classPrincipalhas been deprecated.- Overrides:
insert_Principalin classAny- Parameters:
p- thePrincipalobject to insert into thisAnyobject- See Also:
-
extract_Principal
Deprecated.Description copied from class:AnyExtracts thePrincipalobject in thisAnyobject'svaluefield. Note that the classPrincipalhas been deprecated.- Overrides:
extract_Principalin classAny- Returns:
- the
Principalobject stored in thisAnyobject - See Also:
-
extract_Value
Note that the Serializable really should be an IDLEntity of some kind. It shouldn't just be an RMI-IIOP type. Currently, we accept and will produce RMI repIds with the latest calculations if given a non-IDLEntity Serializable.- Specified by:
extract_Valuein classAny- Returns:
- the
java.io.Serializableobject stored in thisAnyobject
-
insert_Value
Description copied from class:AnyInserts the givenjava.io.Serializableobject into thisAnyobject'svaluefield.- Specified by:
insert_Valuein classAny- Parameters:
v- thejava.io.Serializableobject to insert into thisAnyobject
-
insert_Value
Description copied from class:AnyInserts the givenjava.io.Serializableobject into thisAnyobject'svaluefield.- Specified by:
insert_Valuein classAny- Parameters:
v- thejava.io.Serializableobject to insert into thisAnyobjectt- theTypeCodeobject that is to be inserted into thisAnyobject'stypefield and that describes thejava.io.Serializableobject being inserted
-
insert_fixed
Description copied from class:AnyThrows anorg.omg.CORBA.NO_IMPLEMENTexception.Inserts the given
java.math.BigDecimalobject into thisAnyobject'svaluefield.- Overrides:
insert_fixedin classAny- Parameters:
value- thejava.math.BigDecimalobject to insert into thisAnyobject- See Also:
-
insert_fixed
Description copied from class:AnyThrows anorg.omg.CORBA.NO_IMPLEMENTexception.Inserts the given
java.math.BigDecimalobject into thisAnyobject'svaluefield.- Overrides:
insert_fixedin classAny- Parameters:
value- thejava.math.BigDecimalobject to insert into thisAnyobjecttype- theTypeCodeobject that is to be inserted into thisAnyobject'stypefield and that describes thejava.math.BigDecimalobject being inserted- See Also:
-
extract_fixed
Description copied from class:AnyExtracts thejava.math.BigDecimalobject in thisAnyobject'svaluefield.- Overrides:
extract_fixedin classAny- Returns:
- the
java.math.BigDecimalobject stored in thisAnyobject - See Also:
-
createTypeCodeForClass
Utility method for insert_Value and Util.writeAny. The ORB passed in should have the desired ORBVersion. It is used to generate the type codes. -
extractAny
-
extractAnyFromStream
-
isInitialized
public boolean isInitialized()
-