1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 import org.omg.CORBA.ExtInterfaceDefPackage.ExtFullInterfaceDescription; 32 33 41 42 public class ExtInterfaceDef_impl 43 extends InterfaceDef_impl 44 implements ExtInterfaceDefOperations 45 { 46 52 55 public 56 ExtInterfaceDef_impl(IFR ifr, 57 Container_impl container) 58 { 59 this(ifr, container, false); 60 61 setServant(new ExtInterfaceDefPOATie(this)); 63 } 64 65 68 public 69 ExtInterfaceDef_impl(IFR ifr, 70 Container_impl container, 71 boolean dummy) 72 { 73 super(ifr, container, dummy); 75 } 76 77 83 89 92 public ExtInterfaceDef 93 asExtInterfaceDef() 94 { 95 return ExtInterfaceDefHelper.narrow(asObject()); 96 } 97 98 104 107 public AttributeDef 108 create_attribute(String id, 109 String name, 110 String version, 111 IDLType type, 112 AttributeMode mode) 113 { 114 ExtAttributeDef_impl attr = new ExtAttributeDef_impl(getIFR(), this); 115 116 try 117 { 118 addContained(attr, id, name, version); 119 attr.type_def(type); 120 attr.mode(mode); 121 attr.get_exceptions(new ExceptionDef[0]); 122 attr.set_exceptions(new ExceptionDef[0]); 123 } 124 catch(SystemException exc) 125 { 126 attr.destroy(); 127 throw exc; 128 } 129 130 attr.whenCreated(); 131 return attr.asAttributeDef(); 132 } 133 134 140 143 public ExtAttributeDef 144 create_ext_attribute(String id, 145 String name, 146 String version, 147 IDLType type, 148 AttributeMode mode, 149 ExceptionDef[] get_exceptions, 150 ExceptionDef[] set_exceptions) 151 { 152 ExtAttributeDef_impl attr = new ExtAttributeDef_impl(getIFR(), this); 153 154 try 155 { 156 addContained(attr, id, name, version); 157 attr.type_def(type); 158 attr.mode(mode); 159 attr.get_exceptions(get_exceptions); 160 attr.set_exceptions(set_exceptions); 161 } 162 catch(SystemException exc) 163 { 164 attr.destroy(); 165 throw exc; 166 } 167 168 attr.whenCreated(); 169 return attr.asExtAttributeDef(); 170 } 171 172 175 public ExtFullInterfaceDescription 176 describe_ext_interface() 177 { 178 ExtFullInterfaceDescription description = new ExtFullInterfaceDescription(); 179 description.name = name(); 180 description.id = id(); 181 description.defined_in = getContainerID(); 182 description.version = version(); 183 description.operations = getOpDescriptionSeq(); 184 description.attributes = getExtAttrDescriptionSeq(); 185 description.base_interfaces = 186 InterfaceDef_ref.computeRepositoryIdSeq(base_interfaces_); 187 description.type = type(); 188 return description; 189 } 190 } 191 | Popular Tags |