1 package org.omg.DynamicAny; 2 3 4 /** 5 * org/omg/DynamicAny/DynAnyFactory.java . 6 * Generated by the IDL-to-Java compiler (portable), version "3.2" 7 * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl 8 * Saturday, February 9, 2008 9:40:12 AM GMT 9 */ 10 11 12 /** 13 * DynAny objects can be created by invoking operations on the DynAnyFactory object. 14 * Generally there are only two ways to create a DynAny object: 15 * <UL> 16 * <LI>invoking an operation on an existing DynAny object 17 * <LI>invoking an operation on a DynAnyFactory object 18 * </UL> 19 * A constructed DynAny object supports operations that enable the creation of new DynAny 20 * objects encapsulating access to the value of some constituent. 21 * DynAny objects also support the copy operation for creating new DynAny objects. 22 * A reference to the DynAnyFactory object is obtained by calling ORB.resolve_initial_references() 23 * with the identifier parameter set to the string constant "DynAnyFactory". 24 * <P>Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any() 25 * as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed 26 * to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference. 27 * <P>Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(), 28 * passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of 29 * the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of 30 * invoking operations on the resulting object. Finally, the to_any operation can be invoked 31 * to create an any value from the constructed DynAny. 32 */ 33 public interface DynAnyFactory extends DynAnyFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity 34 { 35 } // interface DynAnyFactory 36