KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > protocol > giopmsgheaders > TargetAddress


1 /*
2  * @(#)TargetAddress.java 1.8 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 package com.sun.corba.se.impl.protocol.giopmsgheaders;
9
10
11 /**
12 * com/sun/corba/se/impl/protocol/giopmsgheaders/TargetAddress.java
13 * Generated by the IDL-to-Java compiler (portable), version "3.0"
14 * from ../../../../../../../src/share/classes/com/sun/corba/se/GiopIDL/g.idl
15 * Sunday, June 4, 2000 5:18:54 PM PDT
16 */

17
18 public final class TargetAddress implements org.omg.CORBA.portable.IDLEntity JavaDoc
19 {
20   private byte[] ___object_key;
21   private org.omg.IOP.TaggedProfile JavaDoc ___profile;
22   private com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo ___ior;
23   private short __discriminator;
24   private boolean __uninitialized = true;
25
26   public TargetAddress ()
27   {
28   }
29
30   public short discriminator ()
31   {
32     if (__uninitialized)
33       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
34     return __discriminator;
35   }
36
37   public byte[] object_key ()
38   {
39     if (__uninitialized)
40       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
41     verifyobject_key (__discriminator);
42     return ___object_key;
43   }
44
45   public void object_key (byte[] value)
46   {
47     __discriminator = com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr.value;
48     ___object_key = value;
49     __uninitialized = false;
50   }
51
52   private void verifyobject_key (short discriminator)
53   {
54     if (discriminator != com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr.value)
55       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
56   }
57
58   public org.omg.IOP.TaggedProfile JavaDoc profile ()
59   {
60     if (__uninitialized)
61       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
62     verifyprofile (__discriminator);
63     return ___profile;
64   }
65
66   public void profile (org.omg.IOP.TaggedProfile JavaDoc value)
67   {
68     __discriminator = com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr.value;
69     ___profile = value;
70     __uninitialized = false;
71   }
72
73   private void verifyprofile (short discriminator)
74   {
75     if (discriminator != com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr.value)
76       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
77   }
78
79   public com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo ior ()
80   {
81     if (__uninitialized)
82       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
83     verifyior (__discriminator);
84     return ___ior;
85   }
86
87   public void ior (com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo value)
88   {
89     __discriminator = com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr.value;
90     ___ior = value;
91     __uninitialized = false;
92   }
93
94   private void verifyior (short discriminator)
95   {
96     if (discriminator != com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr.value)
97       throw new org.omg.CORBA.BAD_OPERATION JavaDoc ();
98   }
99
100   public void _default ()
101   {
102     __discriminator = -32768;
103     __uninitialized = false;
104   }
105
106 } // class TargetAddress
107
Popular Tags