1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.TypeKind; 31 32 33 import org.objectweb.openccm.ast.api.DeclarationKind; 34 35 36 import org.omg.CORBA.ExtLocalInterfaceDefHelper; 37 38 50 51 public class LocalInterfaceDeclImpl 52 extends InterfaceDeclImpl 53 implements org.objectweb.openccm.ast.api.LocalInterfaceDecl 54 { 55 61 62 private org.omg.CORBA.ExtLocalInterfaceDef ext_local_interface_def_; 63 64 70 76 protected 77 LocalInterfaceDeclImpl(Repository rep, ScopeImpl parent) 78 { 79 super(rep, parent); 81 82 ext_local_interface_def_ = null; 84 } 85 86 92 98 103 protected void 104 load(org.omg.CORBA.Contained contained) 105 { 106 ext_local_interface_def_ = ExtLocalInterfaceDefHelper.narrow(contained); 107 super.load(contained); 108 } 109 110 115 protected void 116 loadAsMapping(org.omg.CORBA.Contained contained) 117 { 118 ext_local_interface_def_ = ExtLocalInterfaceDefHelper.narrow(contained); 119 super.loadAsMapping(contained); 120 } 121 122 128 protected org.omg.CORBA.Contained 129 getContained() 130 { 131 return ext_local_interface_def_; 132 } 133 134 140 146 protected org.omg.CORBA.Container 147 getContainer() 148 { 149 return ext_local_interface_def_; 150 } 151 152 158 161 protected void 162 createContainer() 163 { 164 ext_local_interface_def_ = the_parent_.getContainer(). 165 create_ext_local_interface(getId(), getName(), getVersion(), 166 inherited_interfaces_.getInterfaceDefSeq()); 167 } 168 169 175 181 public org.omg.CORBA.ExtInterfaceDef 182 getExtInterfaceDef() 183 { 184 return ext_local_interface_def_; 185 } 186 187 193 public org.omg.CORBA.InterfaceDef 194 getInterfaceDef() 195 { 196 return ext_local_interface_def_; 197 } 198 199 205 public org.omg.CORBA.ExtLocalInterfaceDef 206 getExtLocalInterfaceDef() 207 { 208 return ext_local_interface_def_; 209 } 210 211 217 public org.omg.CORBA.LocalInterfaceDef 218 getLocalInterfaceDef() 219 { 220 return ext_local_interface_def_; 221 } 222 223 229 235 240 public long 241 getDeclKind() 242 { 243 return DeclarationKind.dk_local_interface; 244 } 245 246 252 258 264 269 public TypeKind 270 getTypeKind() 271 { 272 return TypeKind.tk_local_interface; 273 } 274 275 281 287 293 298 public org.omg.CORBA.IDLType 299 getIDLType() 300 { 301 return ext_local_interface_def_; 302 } 303 } 304 | Popular Tags |