org.jacorb.orb
Class Any

java.lang.Object
  extended byorg.omg.CORBA.Any
      extended byorg.jacorb.orb.Any
All Implemented Interfaces:
IDLEntity, java.io.Serializable

public final class Any
extends Any

CORBA any

Author:
Gerald Brose $Id: Any.java,v 1.42 2004/05/06 12:40:00 nicolas Exp $
See Also:
Serialized Form

Method Summary
 int _get_TCKind()
           
 InputStream create_input_stream()
           
 OutputStream create_output_stream()
           
 boolean equal(Any a)
           
 boolean equals(java.lang.Object obj)
           
 Any extract_any()
           
 boolean extract_boolean()
           
 char extract_char()
           
 double extract_double()
           
 java.math.BigDecimal extract_fixed()
           
 float extract_float()
           
 int extract_long()
           
 long extract_longlong()
           
 Object extract_Object()
           
 java.lang.Object extract_objref()
           
 byte extract_octet()
           
 Principal extract_Principal()
           
 short extract_short()
           
 Streamable extract_Streamable()
           
 java.lang.String extract_string()
           
 TypeCode extract_TypeCode()
           
 int extract_ulong()
           
 long extract_ulonglong()
           
 short extract_ushort()
           
 java.io.Serializable extract_Value()
           
 char extract_wchar()
           
 java.lang.String extract_wstring()
           
 int hashCode()
           
 void insert_any(Any a)
           
 void insert_boolean(boolean b)
          insert_boolean inserts a Boolean into this Any.
 void insert_char(char c)
           
 void insert_double(double d)
           
 void insert_fixed(java.math.BigDecimal _value)
           
 void insert_fixed(java.math.BigDecimal _value, TypeCode type)
           
 void insert_float(float f)
           
 void insert_long(int i)
           
 void insert_longlong(long l)
           
 void insert_Object(Object o)
           
 void insert_Object(Object o, TypeCode type)
           
 void insert_object(TypeCode typeCode, java.lang.Object value)
          Convenience method for making a shallow copy of an Any.
 void insert_object(TypeCode typeCode, ORB orb, java.lang.Object value)
          Convenience method for making a shallow copy of an Any.
 void insert_octet(byte b)
           
 void insert_Principal(Principal p)
           
 void insert_short(short s)
           
 void insert_Streamable(Streamable s)
           
 void insert_string(java.lang.String s)
           
 void insert_TypeCode(TypeCode tc)
           
 void insert_ulong(int i)
           
 void insert_ulonglong(long l)
           
 void insert_ushort(short s)
           
 void insert_Value(java.io.Serializable value)
           
 void insert_Value(java.io.Serializable value, TypeCode type)
           
 void insert_void()
           
 void insert_wchar(char c)
           
 void insert_wstring(java.lang.String s)
           
 TCKind kind()
           
 TypeCode originalType()
           
 void read_value(InputStream input, TypeCode type)
           
 java.lang.String toString()
           
 TypeCode type()
           
 void type(TypeCode t)
           
 java.lang.Object value()
           
 void write_value(OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

kind

public TCKind kind()

type

public TypeCode type()
Specified by:
type in class Any

originalType

public TypeCode originalType()

type

public void type(TypeCode t)
Specified by:
type in class Any

value

public java.lang.Object value()

_get_TCKind

public int _get_TCKind()

equal

public boolean equal(Any a)
Specified by:
equal in class Any

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

toString

public java.lang.String toString()

insert_short

public void insert_short(short s)
Specified by:
insert_short in class Any

extract_short

public short extract_short()
                    throws BAD_OPERATION
Specified by:
extract_short in class Any
Throws:
BAD_OPERATION

insert_ushort

public void insert_ushort(short s)
Specified by:
insert_ushort in class Any

extract_ushort

public short extract_ushort()
Specified by:
extract_ushort in class Any

insert_long

public void insert_long(int i)
Specified by:
insert_long in class Any

extract_long

public int extract_long()
Specified by:
extract_long in class Any

insert_ulong

public void insert_ulong(int i)
Specified by:
insert_ulong in class Any

extract_ulong

public int extract_ulong()
Specified by:
extract_ulong in class Any

insert_longlong

public void insert_longlong(long l)
Specified by:
insert_longlong in class Any

extract_longlong

public long extract_longlong()
Specified by:
extract_longlong in class Any

insert_ulonglong

public void insert_ulonglong(long l)
Specified by:
insert_ulonglong in class Any

extract_ulonglong

public long extract_ulonglong()
Specified by:
extract_ulonglong in class Any

insert_float

public void insert_float(float f)
Specified by:
insert_float in class Any

extract_float

public float extract_float()
Specified by:
extract_float in class Any

insert_double

public void insert_double(double d)
Specified by:
insert_double in class Any

extract_double

public double extract_double()
Specified by:
extract_double in class Any

insert_boolean

public void insert_boolean(boolean b)
insert_boolean inserts a Boolean into this Any.

Specified by:
insert_boolean in class Any
Parameters:
b - a boolean value

extract_boolean

public boolean extract_boolean()
Specified by:
extract_boolean in class Any

insert_char

public void insert_char(char c)
Specified by:
insert_char in class Any

extract_char

public char extract_char()
Specified by:
extract_char in class Any

insert_wchar

public void insert_wchar(char c)
Specified by:
insert_wchar in class Any

extract_wchar

public char extract_wchar()
Specified by:
extract_wchar in class Any

insert_octet

public void insert_octet(byte b)
Specified by:
insert_octet in class Any

extract_octet

public byte extract_octet()
Specified by:
extract_octet in class Any

insert_any

public void insert_any(Any a)
Specified by:
insert_any in class Any

extract_any

public Any extract_any()
Specified by:
extract_any in class Any

insert_TypeCode

public void insert_TypeCode(TypeCode tc)
Specified by:
insert_TypeCode in class Any

extract_TypeCode

public TypeCode extract_TypeCode()
Specified by:
extract_TypeCode in class Any

insert_string

public void insert_string(java.lang.String s)
Specified by:
insert_string in class Any

extract_string

public java.lang.String extract_string()
Specified by:
extract_string in class Any

insert_wstring

public void insert_wstring(java.lang.String s)
Specified by:
insert_wstring in class Any

extract_wstring

public java.lang.String extract_wstring()
Specified by:
extract_wstring in class Any

insert_fixed

public void insert_fixed(java.math.BigDecimal _value)

insert_fixed

public void insert_fixed(java.math.BigDecimal _value,
                         TypeCode type)
Overrides:
insert_fixed in class Any

extract_fixed

public java.math.BigDecimal extract_fixed()
Overrides:
extract_fixed in class Any

insert_Object

public void insert_Object(Object o)
Specified by:
insert_Object in class Any

insert_Object

public void insert_Object(Object o,
                          TypeCode type)
Specified by:
insert_Object in class Any

extract_Object

public Object extract_Object()
Specified by:
extract_Object in class Any

extract_objref

public java.lang.Object extract_objref()

insert_Principal

public void insert_Principal(Principal p)
Overrides:
insert_Principal in class Any

extract_Principal

public Principal extract_Principal()
Overrides:
extract_Principal in class Any

insert_Streamable

public void insert_Streamable(Streamable s)
Overrides:
insert_Streamable in class Any

extract_Streamable

public Streamable extract_Streamable()
                              throws BAD_INV_ORDER
Overrides:
extract_Streamable in class Any
Throws:
BAD_INV_ORDER

extract_Value

public java.io.Serializable extract_Value()
                                   throws BAD_OPERATION
Specified by:
extract_Value in class Any
Throws:
BAD_OPERATION

insert_Value

public void insert_Value(java.io.Serializable value)
Specified by:
insert_Value in class Any

insert_Value

public void insert_Value(java.io.Serializable value,
                         TypeCode type)
                  throws MARSHAL
Specified by:
insert_Value in class Any
Throws:
MARSHAL

create_output_stream

public OutputStream create_output_stream()
Specified by:
create_output_stream in class Any

create_input_stream

public InputStream create_input_stream()
Specified by:
create_input_stream in class Any

read_value

public void read_value(InputStream input,
                       TypeCode type)
                throws MARSHAL
Specified by:
read_value in class Any
Throws:
MARSHAL

write_value

public void write_value(OutputStream output)
Specified by:
write_value in class Any

insert_void

public void insert_void()

insert_object

public void insert_object(TypeCode typeCode,
                          java.lang.Object value)
Convenience method for making a shallow copy of an Any.


insert_object

public void insert_object(TypeCode typeCode,
                          ORB orb,
                          java.lang.Object value)
Convenience method for making a shallow copy of an Any.