Name

Any

Synopsis

A wrapper for any IDL type, whether user-defined or a basic type. You can access the TypeCode for the contents of the Any object using the type() methods, and you can access the data itself using the extract_XXX() and insert_XXX() methods.

The Any object is the “value” in a NamedValue object. Any objects are used often in the Dynamic Invocation Interface, to compose arguments to method requests. They are also used to retrieve the values in Context objects.

                  
public abstract class Any implements org.omg.CORBA.portable.IDLEntity {
// Public Constructors
   public Any();  
// Public Instance Methods
   public abstract org.omg.CORBA.portable.InputStream create_input_stream(
        );  
   public abstract org.omg.CORBA.portable.OutputStream create_output_stream(
        );  
   public abstract boolean equal( Any a);  
   public abstract Any extract_any() throws BAD_OPERATION;  
   public abstract boolean extract_boolean(
        ) throws BAD_OPERATION;  
   public abstract char extract_char() throws BAD_OPERATION;  
   public abstract double extract_double(
        ) throws BAD_OPERATION;  
   public java.math.BigDecimal extract_fixed();  
   public abstract float extract_float(
        ) throws BAD_OPERATION;  
   public abstract int extract_long() throws BAD_OPERATION;  
   public abstract long extract_longlong(
        ) throws BAD_OPERATION;  
   public abstract org.omg.CORBA.Object extract_Object(
        ) throws BAD_OPERATION;  
   public abstract byte extract_octet() throws BAD_OPERATION; ...

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.