TargetAddress.java revision 608:7e06bf1dcb09
1/* 2 * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26package com.sun.corba.se.impl.protocol.giopmsgheaders; 27 28 29/** 30* com/sun/corba/se/impl/protocol/giopmsgheaders/TargetAddress.java 31* Generated by the IDL-to-Java compiler (portable), version "3.0" 32* from ../../../../../../../src/share/classes/com/sun/corba/se/GiopIDL/g.idl 33* Sunday, June 4, 2000 5:18:54 PM PDT 34*/ 35 36public final class TargetAddress implements org.omg.CORBA.portable.IDLEntity 37{ 38 private byte[] ___object_key; 39 private org.omg.IOP.TaggedProfile ___profile; 40 private com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo ___ior; 41 private short __discriminator; 42 private boolean __uninitialized = true; 43 44 public TargetAddress () 45 { 46 } 47 48 public short discriminator () 49 { 50 if (__uninitialized) 51 throw new org.omg.CORBA.BAD_OPERATION (); 52 return __discriminator; 53 } 54 55 public byte[] object_key () 56 { 57 if (__uninitialized) 58 throw new org.omg.CORBA.BAD_OPERATION (); 59 verifyobject_key (__discriminator); 60 return ___object_key; 61 } 62 63 public void object_key (byte[] value) 64 { 65 __discriminator = com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr.value; 66 ___object_key = value; 67 __uninitialized = false; 68 } 69 70 private void verifyobject_key (short discriminator) 71 { 72 if (discriminator != com.sun.corba.se.impl.protocol.giopmsgheaders.KeyAddr.value) 73 throw new org.omg.CORBA.BAD_OPERATION (); 74 } 75 76 public org.omg.IOP.TaggedProfile profile () 77 { 78 if (__uninitialized) 79 throw new org.omg.CORBA.BAD_OPERATION (); 80 verifyprofile (__discriminator); 81 return ___profile; 82 } 83 84 public void profile (org.omg.IOP.TaggedProfile value) 85 { 86 __discriminator = com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr.value; 87 ___profile = value; 88 __uninitialized = false; 89 } 90 91 private void verifyprofile (short discriminator) 92 { 93 if (discriminator != com.sun.corba.se.impl.protocol.giopmsgheaders.ProfileAddr.value) 94 throw new org.omg.CORBA.BAD_OPERATION (); 95 } 96 97 public com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo ior () 98 { 99 if (__uninitialized) 100 throw new org.omg.CORBA.BAD_OPERATION (); 101 verifyior (__discriminator); 102 return ___ior; 103 } 104 105 public void ior (com.sun.corba.se.impl.protocol.giopmsgheaders.IORAddressingInfo value) 106 { 107 __discriminator = com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr.value; 108 ___ior = value; 109 __uninitialized = false; 110 } 111 112 private void verifyior (short discriminator) 113 { 114 if (discriminator != com.sun.corba.se.impl.protocol.giopmsgheaders.ReferenceAddr.value) 115 throw new org.omg.CORBA.BAD_OPERATION (); 116 } 117 118 public void _default () 119 { 120 __discriminator = -32768; 121 __uninitialized = false; 122 } 123 124} // class TargetAddress 125