KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gcc > org > omg > GIOP > TargetAddress


1 package gcc.org.omg.GIOP;
2
3
4 /**
5 * gcc/org/omg/GIOP/TargetAddress.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from ../idl/GIOP.idl
8 * Wednesday, December 8, 2004 11:54:39 AM EST
9 */

10
11 public final class TargetAddress implements org.omg.CORBA.portable.IDLEntity JavaDoc
12 {
13   private byte[] ___object_key;
14   private gcc.org.omg.IOP.TaggedProfile ___profile;
15   private gcc.org.omg.GIOP.IORAddressingInfo ___ior;
16   private short __discriminator;
17   private boolean __uninitialized = true;
18
19   public TargetAddress ()
20   {
21   }
22
23   public short discriminator ()
24   {
25     if (__uninitialized)
26       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
27     return __discriminator;
28   }
29
30   public byte[] object_key ()
31   {
32     if (__uninitialized)
33       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
34     verifyobject_key (__discriminator);
35     return ___object_key;
36   }
37
38   public void object_key (byte[] value)
39   {
40     __discriminator = gcc.org.omg.GIOP.KeyAddr.value;
41     ___object_key = value;
42     __uninitialized = false;
43   }
44
45   public void object_key (short discriminator, byte[] value)
46   {
47     verifyobject_key (discriminator);
48     __discriminator = discriminator;
49     ___object_key = value;
50     __uninitialized = false;
51   }
52
53   private void verifyobject_key (short discriminator)
54   {
55     if (discriminator != gcc.org.omg.GIOP.KeyAddr.value)
56       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
57   }
58
59   public gcc.org.omg.IOP.TaggedProfile profile ()
60   {
61     if (__uninitialized)
62       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
63     verifyprofile (__discriminator);
64     return ___profile;
65   }
66
67   public void profile (gcc.org.omg.IOP.TaggedProfile value)
68   {
69     __discriminator = gcc.org.omg.GIOP.ProfileAddr.value;
70     ___profile = value;
71     __uninitialized = false;
72   }
73
74   public void profile (short discriminator, gcc.org.omg.IOP.TaggedProfile value)
75   {
76     verifyprofile (discriminator);
77     __discriminator = discriminator;
78     ___profile = value;
79     __uninitialized = false;
80   }
81
82   private void verifyprofile (short discriminator)
83   {
84     if (discriminator != gcc.org.omg.GIOP.ProfileAddr.value)
85       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
86   }
87
88   public gcc.org.omg.GIOP.IORAddressingInfo ior ()
89   {
90     if (__uninitialized)
91       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
92     verifyior (__discriminator);
93     return ___ior;
94   }
95
96   public void ior (gcc.org.omg.GIOP.IORAddressingInfo value)
97   {
98     __discriminator = gcc.org.omg.GIOP.ReferenceAddr.value;
99     ___ior = value;
100     __uninitialized = false;
101   }
102
103   public void ior (short discriminator, gcc.org.omg.GIOP.IORAddressingInfo value)
104   {
105     verifyior (discriminator);
106     __discriminator = discriminator;
107     ___ior = value;
108     __uninitialized = false;
109   }
110
111   private void verifyior (short discriminator)
112   {
113     if (discriminator != gcc.org.omg.GIOP.ReferenceAddr.value)
114       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
115   }
116
117   public void _default ()
118   {
119     __discriminator = -32768;
120     __uninitialized = false;
121   }
122
123   public void _default (short discriminator)
124   {
125     verifyDefault( discriminator ) ;
126     __discriminator = discriminator ;
127     __uninitialized = false;
128   }
129
130   private void verifyDefault( short value )
131   {
132     switch (value) {
133       case gcc.org.omg.GIOP.KeyAddr.value:
134       case gcc.org.omg.GIOP.ProfileAddr.value:
135       case gcc.org.omg.GIOP.ReferenceAddr.value:
136         throw new org.omg.CORBA.BAD_OPERATION JavaDoc() ;
137
138       default:
139         return;
140     }
141   }
142
143 } // class TargetAddress
144
Popular Tags