1. /*
  2. * @(#)DynUnion.java 1.16 04/05/18
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The <code>DynUnion</code> interface represents a <code>DynAny</code> object
  10. * that is associated with an IDL union.
  11. * Union values can be traversed using the operations defined in <code>DynAny</code>.
  12. * The first component in the union corresponds to the discriminator;
  13. * the second corresponds to the actual value of the union.
  14. * Calling the method <code>next()</code> twice allows you to access both components.
  15. * @deprecated Use the new <a href="../DynamicAny/DynUnion.html">DynUnion</a> instead
  16. */
  17. @Deprecated
  18. public interface DynUnion extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
  19. {
  20. /**
  21. * Determines whether the discriminator associated with this union has been assigned
  22. * a valid default value.
  23. * @return <code>true</code> if the discriminator has a default value;
  24. * <code>false</code> otherwise
  25. */
  26. public boolean set_as_default();
  27. /**
  28. * Determines whether the discriminator associated with this union gets assigned
  29. * a valid default value.
  30. * @param arg <code>true</code> if the discriminator gets assigned a default value
  31. */
  32. public void set_as_default(boolean arg);
  33. /**
  34. * Returns a DynAny object reference that must be narrowed to the type
  35. * of the discriminator in order to insert/get the discriminator value.
  36. * @return a <code>DynAny</code> object reference representing the discriminator value
  37. */
  38. public org.omg.CORBA.DynAny discriminator();
  39. /**
  40. * Returns the TCKind object associated with the discriminator of this union.
  41. * @return the <code>TCKind</code> object associated with the discriminator of this union
  42. */
  43. public org.omg.CORBA.TCKind discriminator_kind();
  44. /**
  45. * Returns a DynAny object reference that is used in order to insert/get
  46. * a member of this union.
  47. * @return the <code>DynAny</code> object representing a member of this union
  48. */
  49. public org.omg.CORBA.DynAny member();
  50. /**
  51. * Allows for the inspection of the name of this union member
  52. * without checking the value of the discriminator.
  53. * @return the name of this union member
  54. */
  55. public String member_name();
  56. /**
  57. * Allows for the assignment of the name of this union member.
  58. * @param arg the new name of this union member
  59. */
  60. public void member_name(String arg);
  61. /**
  62. * Returns the TCKind associated with the member of this union.
  63. * @return the <code>TCKind</code> object associated with the member of this union
  64. */
  65. public org.omg.CORBA.TCKind member_kind();
  66. }