1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 32 40 41 public class ExtAbstractInterfaceDef_impl 42 extends ExtInterfaceDef_impl 43 implements ExtAbstractInterfaceDefOperations 44 { 45 51 54 public 55 ExtAbstractInterfaceDef_impl(IFR ifr, 56 Container_impl container) 57 { 58 super(ifr, container, false); 60 61 setServant(new ExtAbstractInterfaceDefPOATie(this)); 63 } 64 65 71 77 80 public ExtAbstractInterfaceDef 81 asExtAbstractInterfaceDef() 82 { 83 return ExtAbstractInterfaceDefHelper.narrow(asObject()); 84 } 85 86 89 public void 90 base_interfaces(AbstractInterfaceDef[] val) 91 { 92 InterfaceDef[] tmp = new InterfaceDef[val.length]; 93 for(int i=0; i<tmp.length; i++) 94 tmp[i] = val[i]; 95 96 super.base_interfaces(tmp); 97 } 98 99 105 108 public DefinitionKind 109 def_kind() 110 { 111 return DefinitionKind.dk_AbstractInterface; 112 } 113 114 120 123 public TypeCode 124 type() 125 { 126 return getIFR().getTCF().create_abstract_interface_tc(id(), name()); 128 } 129 130 136 139 public void 140 base_interfaces(InterfaceDef[] itfs) 141 { 142 for(int i=0; i<itfs.length; i++) 144 if(itfs[i].def_kind() != DefinitionKind.dk_AbstractInterface) 145 throw exceptionInvalidAbstractInterfaceInheritance( 146 itfs[i].absolute_name()); 147 148 super.base_interfaces(itfs); 149 } 150 151 154 public boolean 155 is_a(String interface_id) 156 { 157 if(interface_id.equals(id())) 158 return true; 159 160 if(interface_id.equals("IDL:omg.org/CORBA/AbstractBase:1.0")) 161 return true; 162 163 for(int i=0; i<base_interfaces_.length; i++) 164 if (base_interfaces_[i].getImpl().is_a(interface_id)) 165 return true; 166 167 return false; 168 } 169 } 170 | Popular Tags |