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.
|
static 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() |
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() |
short |
extract_short()
See the description of the general Any operations.
|
Streamable |
extract_Streamable() |
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.
|
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) |
void |
insert_fixed(BigDecimal value,
TypeCode type) |
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) |
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) |
void |
insert_Value(Serializable v,
TypeCode t) |
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) |
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) |
@Copy(value=IDENTITY) protected transient ORB orb
public AnyImpl(ORB orb)
orb - ORB to use for this anypublic TypeCode type()
public void type(TypeCode tc)
public boolean equal(Any otherAny)
public OutputStream create_output_stream()
create_output_stream in class Anypublic InputStream create_input_stream()
create_input_stream in class Anypublic void read_value(InputStream in, TypeCode tc)
read_value in class Anypublic void write_value(OutputStream out)
write_value in class Anypublic void insert_Streamable(Streamable s)
insert_Streamable in class Anys - the streamable to insertpublic Streamable extract_Streamable()
extract_Streamable in class Anypublic void insert_short(short s)
insert_short in class Anypublic short extract_short()
extract_short in class Anypublic void insert_long(int l)
insert_long in class Anypublic int extract_long()
extract_long in class Anypublic void insert_ushort(short s)
insert_ushort in class Anypublic short extract_ushort()
extract_ushort in class Anypublic void insert_ulong(int l)
insert_ulong in class Anypublic int extract_ulong()
extract_ulong in class Anypublic void insert_float(float f)
insert_float in class Anypublic float extract_float()
extract_float in class Anypublic void insert_double(double d)
insert_double in class Anypublic double extract_double()
extract_double in class Anypublic void insert_longlong(long l)
insert_longlong in class Anypublic long extract_longlong()
extract_longlong in class Anypublic void insert_ulonglong(long l)
insert_ulonglong in class Anypublic long extract_ulonglong()
extract_ulonglong in class Anypublic void insert_boolean(boolean b)
insert_boolean in class Anypublic boolean extract_boolean()
extract_boolean in class Anypublic void insert_char(char c)
insert_char in class Anypublic char extract_char()
extract_char in class Anypublic void insert_wchar(char c)
insert_wchar in class Anypublic char extract_wchar()
extract_wchar in class Anypublic void insert_octet(byte b)
insert_octet in class Anypublic byte extract_octet()
extract_octet in class Anypublic void insert_string(String s)
insert_string in class Anypublic String extract_string()
extract_string in class Anypublic void insert_wstring(String s)
insert_wstring in class Anypublic String extract_wstring()
extract_wstring in class Anypublic void insert_any(Any a)
insert_any in class Anypublic Any extract_any()
extract_any in class Anypublic void insert_Object(Object o)
insert_Object in class Anypublic void insert_Object(Object o, TypeCode tc)
insert_Object in class Anytc - TypeCode to insert into o.public Object extract_Object()
extract_Object in class Anypublic void insert_TypeCode(TypeCode tc)
insert_TypeCode in class Anytc - TypeCode to insert.public TypeCode extract_TypeCode()
extract_TypeCode in class Anypublic void insert_Principal(Principal p)
insert_Principal in class Anypublic Principal extract_Principal()
extract_Principal in class Anypublic Serializable extract_Value()
extract_Value in class Anypublic void insert_Value(Serializable v)
insert_Value in class Anypublic void insert_Value(Serializable v, TypeCode t)
insert_Value in class Anypublic void insert_fixed(BigDecimal value)
insert_fixed in class Anypublic void insert_fixed(BigDecimal value, TypeCode type)
insert_fixed in class Anypublic BigDecimal extract_fixed()
extract_fixed in class Anypublic static TypeCode createTypeCodeForClass(Class c, ORB tcORB)
c - The Class for which a TypeCode is needed.tcORB - ORB to use when creating TypeCode.public static Any extractAnyFromStream(TypeCode memberType, InputStream input, ORB orb)
public boolean isInitialized()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.