1. /*
  2. * @(#)StructMember.java 1.21 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/StructMember.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. * Describes a member of an IDL <code>struct</code> in the
  16. * Interface Repository, including
  17. * the name of the <code>struct</code> member, the type of
  18. * the <code>struct</code> member, and
  19. * the typedef that represents the IDL type of the
  20. * <code>struct</code> member
  21. * described the <code>struct</code> member object.
  22. */
  23. public final class StructMember implements org.omg.CORBA.portable.IDLEntity {
  24. // instance variables
  25. /**
  26. * The name of the struct member described by
  27. * this <code>StructMember</code> object.
  28. * @serial
  29. */
  30. public String name;
  31. /**
  32. * The type of the struct member described by
  33. * this <code>StructMember</code> object.
  34. * @serial
  35. */
  36. public org.omg.CORBA.TypeCode type;
  37. /**
  38. * The typedef that represents the IDL type of the struct member described by
  39. * this <code>StructMember</code> object.
  40. * @serial
  41. */
  42. public org.omg.CORBA.IDLType type_def;
  43. // constructors
  44. /**
  45. * Constructs a default <code>StructMember</code> object.
  46. */
  47. public StructMember() { }
  48. /**
  49. * Constructs a <code>StructMember</code> object initialized with the
  50. * given values.
  51. * @param __name a <code>String</code> object with the name of the struct
  52. * member
  53. * @param __type a <code>TypeCode</code> object describing the type of the struct
  54. * member
  55. * @param __type_def an <code>IDLType</code> object representing the IDL type
  56. * of the struct member
  57. */
  58. public StructMember(String __name, org.omg.CORBA.TypeCode __type, org.omg.CORBA.IDLType __type_def) {
  59. name = __name;
  60. type = __type;
  61. type_def = __type_def;
  62. }
  63. }