1 26 27 package org.objectweb.ccm.IDL3; 28 29 37 38 public class LocalInterfaceDeclImpl 39 extends InterfaceDeclImpl 40 implements LocalInterfaceRef, LocalInterfaceDecl 41 { 42 48 51 private org.omg.CORBA.ExtLocalInterfaceDef ext_local_interface_def_; 52 53 59 64 protected 65 LocalInterfaceDeclImpl(Repository rep, ScopeImpl parent) 66 { 67 super(rep, parent); 69 70 ext_local_interface_def_ = null; 72 the_declaration_kind_ = DeclarationKind._dk_local_interface; 73 } 74 75 81 86 protected void 87 load(org.omg.CORBA.Contained contained) 88 { 89 ext_local_interface_def_ = org.omg.CORBA.ExtLocalInterfaceDefHelper.narrow(contained); 90 super.load(contained); 91 } 92 93 98 protected void 99 loadAsMapping(org.omg.CORBA.Contained contained) 100 { 101 ext_local_interface_def_ = org.omg.CORBA.ExtLocalInterfaceDefHelper.narrow(contained); 102 super.loadAsMapping(contained); 103 } 104 105 111 116 public org.omg.CORBA.IDLType 117 getIDLType() 118 { 119 return ext_local_interface_def_; 120 } 121 122 125 public int 126 getTypeKind() 127 { 128 return TypeKind._tk_local_interface; 129 } 130 131 137 143 public org.omg.CORBA.ExtInterfaceDef 144 getExtInterfaceDef() 145 { 146 return ext_local_interface_def_; 147 } 148 149 155 public org.omg.CORBA.InterfaceDef 156 getInterfaceDef() 157 { 158 return ext_local_interface_def_; 159 } 160 161 167 172 185 186 192 198 public org.omg.CORBA.ExtLocalInterfaceDef 199 getExtLocalInterfaceDef() 200 { 201 return ext_local_interface_def_; 202 } 203 204 210 public org.omg.CORBA.LocalInterfaceDef 211 getLocalInterfaceDef() 212 { 213 return ext_local_interface_def_; 214 } 215 216 222 228 protected org.omg.CORBA.Contained 229 getContained() 230 { 231 return ext_local_interface_def_; 232 } 233 234 240 246 protected org.omg.CORBA.Container 247 getContainer() 248 { 249 return ext_local_interface_def_; 250 } 251 252 258 261 protected void 262 createContainer() 263 { 264 org.omg.CORBA.InterfaceDef [] itfs = 265 new org.omg.CORBA.InterfaceDef [inherited_interfaces_.size()]; 266 267 for(int i=0; i<itfs.length; i++) 268 itfs[i] = ((InterfaceDeclImpl)(inherited_interfaces_.get(i))).getExtInterfaceDef(); 269 270 ext_local_interface_def_ = the_parent_.getContainer().create_ext_local_interface(getId(), getName(), 271 getVersion(), itfs); 272 } 273 } 274 | Popular Tags |