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