KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > StructMember


1 /*
2  * @(#)StructMember.java 1.22 03/12/19
3  *
4  * Copyright 2004 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
14 package org.omg.CORBA;
15
16 /**
17  * Describes a member of an IDL <code>struct</code> in the
18  * Interface Repository, including
19  * the name of the <code>struct</code> member, the type of
20  * the <code>struct</code> member, and
21  * the typedef that represents the IDL type of the
22  * <code>struct</code> member
23  * described the <code>struct</code> member object.
24  */

25 public final class StructMember implements org.omg.CORBA.portable.IDLEntity JavaDoc {
26
27     // instance variables
28

29     /**
30      * The name of the struct member described by
31      * this <code>StructMember</code> object.
32      * @serial
33      */

34     public String JavaDoc name;
35
36     /**
37      * The type of the struct member described by
38      * this <code>StructMember</code> object.
39      * @serial
40      */

41     public org.omg.CORBA.TypeCode JavaDoc type;
42
43     /**
44      * The typedef that represents the IDL type of the struct member described by
45      * this <code>StructMember</code> object.
46      * @serial
47      */

48     public org.omg.CORBA.IDLType JavaDoc type_def;
49     // constructors
50

51     /**
52      * Constructs a default <code>StructMember</code> object.
53      */

54     public StructMember() { }
55
56     /**
57      * Constructs a <code>StructMember</code> object initialized with the
58      * given values.
59      * @param __name a <code>String</code> object with the name of the struct
60      * member
61      * @param __type a <code>TypeCode</code> object describing the type of the struct
62      * member
63      * @param __type_def an <code>IDLType</code> object representing the IDL type
64      * of the struct member
65      */

66     public StructMember(String JavaDoc __name, org.omg.CORBA.TypeCode JavaDoc __type, org.omg.CORBA.IDLType JavaDoc __type_def) {
67     name = __name;
68     type = __type;
69     type_def = __type_def;
70     }
71 }
72
Popular Tags