1 package gcc.org.omg.GIOP; 2 3 4 10 11 public final class TargetAddress implements org.omg.CORBA.portable.IDLEntity 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 (); 27 return __discriminator; 28 } 29 30 public byte[] object_key () 31 { 32 if (__uninitialized) 33 throw new org.omg.CORBA.BAD_OPERATION (); 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 (); 57 } 58 59 public gcc.org.omg.IOP.TaggedProfile profile () 60 { 61 if (__uninitialized) 62 throw new org.omg.CORBA.BAD_OPERATION (); 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 (); 86 } 87 88 public gcc.org.omg.GIOP.IORAddressingInfo ior () 89 { 90 if (__uninitialized) 91 throw new org.omg.CORBA.BAD_OPERATION (); 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 (); 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 () ; 137 138 default: 139 return; 140 } 141 } 142 143 } | Popular Tags |