1. /*
  2. * @(#)UnionMember.java 1.19 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. /*
  8. * File: ./org/omg/CORBA/UnionMember.java
  9. * From: ./ir.idl
  10. * Date: Fri Aug 28 16:03:31 1998
  11. * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
  12. */
  13. package org.omg.CORBA;
  14. /**
  15. * A description in the Interface Repository of a member of an IDL union.
  16. */
  17. public final class UnionMember implements org.omg.CORBA.portable.IDLEntity {
  18. // instance variables
  19. /**
  20. * The name of the union member described by this
  21. * <code>UnionMember</code> object.
  22. * @serial
  23. */
  24. public String name;
  25. /**
  26. * The label of the union member described by this
  27. * <code>UnionMember</code> object.
  28. * @serial
  29. */
  30. public org.omg.CORBA.Any label;
  31. /**
  32. * The type of the union member described by this
  33. * <code>UnionMember</code> object.
  34. * @serial
  35. */
  36. public org.omg.CORBA.TypeCode type;
  37. /**
  38. * The typedef that represents the IDL type of the union member described by this
  39. * <code>UnionMember</code> object.
  40. * @serial
  41. */
  42. public org.omg.CORBA.IDLType type_def;
  43. // constructors
  44. /**
  45. * Constructs a new <code>UnionMember</code> object with its fields initialized
  46. * to null.
  47. */
  48. public UnionMember() { }
  49. /**
  50. * Constructs a new <code>UnionMember</code> object with its fields initialized
  51. * to the given values.
  52. *
  53. * @param __name a <code>String</code> object with the name of this
  54. * <code>UnionMember</code> object
  55. * @param __label an <code>Any</code> object with the label of this
  56. * <code>UnionMember</code> object
  57. * @param __type a <code>TypeCode</code> object describing the type of this
  58. * <code>UnionMember</code> object
  59. * @param __type_def an <code>IDLType</code> object that represents the
  60. * IDL type of this <code>UnionMember</code> object
  61. */
  62. public UnionMember(String __name, org.omg.CORBA.Any __label, org.omg.CORBA.TypeCode __type, org.omg.CORBA.IDLType __type_def) {
  63. name = __name;
  64. label = __label;
  65. type = __type;
  66. type_def = __type_def;
  67. }
  68. }