1 26 27 package org.objectweb.ccm.IDL3; 28 29 37 38 public class AbstractInterfaceDeclImpl 39 extends InterfaceDeclImpl 40 implements AbstractInterfaceRef, AbstractInterfaceDecl 41 { 42 48 51 private org.omg.CORBA.ExtAbstractInterfaceDef ext_abstract_interface_def_; 52 53 59 64 protected 65 AbstractInterfaceDeclImpl(Repository rep, ScopeImpl parent) 66 { 67 super(rep, parent); 69 70 ext_abstract_interface_def_ = null; 72 the_declaration_kind_ = DeclarationKind._dk_abstract_interface; 73 } 74 75 81 86 protected void 87 load(org.omg.CORBA.Contained contained) 88 { 89 ext_abstract_interface_def_ = org.omg.CORBA.ExtAbstractInterfaceDefHelper.narrow(contained); 90 super.load(contained); 91 } 92 93 98 protected void 99 loadAsMapping(org.omg.CORBA.Contained contained) 100 { 101 ext_abstract_interface_def_ = org.omg.CORBA.ExtAbstractInterfaceDefHelper.narrow(contained); 102 super.load(contained); 103 } 104 105 111 117 public org.omg.CORBA.IDLType 118 getIDLType() 119 { 120 return ext_abstract_interface_def_; 121 } 122 123 126 public int 127 getTypeKind() 128 { 129 return TypeKind._tk_abstract_interface; 130 } 131 132 138 144 public org.omg.CORBA.ExtInterfaceDef 145 getExtInterfaceDef() 146 { 147 return ext_abstract_interface_def_; 148 } 149 150 156 public org.omg.CORBA.InterfaceDef 157 getInterfaceDef() 158 { 159 return ext_abstract_interface_def_; 160 } 161 162 168 173 187 188 194 200 public org.omg.CORBA.ExtAbstractInterfaceDef 201 getExtAbstractInterfaceDef() 202 { 203 return ext_abstract_interface_def_; 204 } 205 206 212 public org.omg.CORBA.AbstractInterfaceDef 213 getAbstractInterfaceDef() 214 { 215 return ext_abstract_interface_def_; 216 } 217 218 224 230 protected org.omg.CORBA.Contained 231 getContained() 232 { 233 return ext_abstract_interface_def_; 234 } 235 236 242 248 protected org.omg.CORBA.Container 249 getContainer() 250 { 251 return ext_abstract_interface_def_; 252 } 253 254 260 263 protected void 264 createContainer() 265 { 266 org.omg.CORBA.AbstractInterfaceDef[] itfs = 267 new org.omg.CORBA.AbstractInterfaceDef[inherited_interfaces_.size()]; 268 269 for(int i=0; i<itfs.length; i++) 270 itfs[i] = ((AbstractInterfaceDeclImpl)(inherited_interfaces_.get(i))).getExtAbstractInterfaceDef(); 271 272 ext_abstract_interface_def_ = the_parent_.getContainer().create_ext_abstract_interface(getId(), getName(), 273 getVersion(), itfs); 274 } 275 } 276 | Popular Tags |