1 22 package org.jboss.iiop.rmi.ir; 23 24 import org.omg.CORBA.ContainerOperations ; 25 import org.omg.CORBA.Contained ; 26 import org.omg.CORBA.ContainerPackage.Description; 27 import org.omg.CORBA.IDLType ; 28 import org.omg.CORBA.DefinitionKind ; 29 import org.omg.CORBA.StructMember ; 30 import org.omg.CORBA.UnionMember ; 31 import org.omg.CORBA.InterfaceDef ; 32 import org.omg.CORBA.ConstantDef ; 33 import org.omg.CORBA.EnumDef ; 34 import org.omg.CORBA.ValueDef ; 35 import org.omg.CORBA.ValueBoxDef ; 36 import org.omg.CORBA.Initializer ; 37 import org.omg.CORBA.StructDef ; 38 import org.omg.CORBA.UnionDef ; 39 import org.omg.CORBA.ModuleDef ; 40 import org.omg.CORBA.NativeDef ; 41 import org.omg.CORBA.AliasDef ; 42 import org.omg.CORBA.Any ; 43 import org.omg.CORBA.ExceptionDef ; 44 45 51 abstract class ContainerImpl 52 extends IRObjectImpl 53 implements ContainerOperations , LocalContainer 54 { 55 57 59 61 63 ContainerImpl(DefinitionKind def_kind, RepositoryImpl repository) 64 { 65 super(def_kind, repository); 66 67 this.delegate = new ContainerImplDelegate(this); 68 } 69 70 72 74 public LocalContained _lookup(String search_name) 75 { 76 return delegate._lookup(search_name); 77 } 78 79 public LocalContained[] _contents(DefinitionKind limit_type, 80 boolean exclude_inherited) 81 { 82 return delegate._contents(limit_type, exclude_inherited); 83 } 84 85 public LocalContained[] _lookup_name(String search_name, 86 int levels_to_search, 87 DefinitionKind limit_type, 88 boolean exclude_inherited) 89 { 90 return delegate._lookup_name(search_name, levels_to_search, limit_type, 91 exclude_inherited); 92 } 93 94 public void add(String name, LocalContained contained) 95 throws IRConstructionException 96 { 97 delegate.add(name, contained); 98 } 99 100 public void allDone() 101 throws IRConstructionException 102 { 103 getReference(); 104 delegate.allDone(); 105 } 106 107 public void shutdown() 108 { 109 delegate.shutdown(); 110 super.shutdown(); 111 } 112 113 115 public Contained lookup(String search_name) 116 { 117 return delegate.lookup(search_name); 118 } 119 120 public Contained [] contents(DefinitionKind limit_type, 121 boolean exclude_inherited) 122 { 123 return delegate.contents(limit_type, exclude_inherited); 124 } 125 126 public Contained [] lookup_name(String search_name, int levels_to_search, 127 DefinitionKind limit_type, 128 boolean exclude_inherited) 129 { 130 return delegate.lookup_name(search_name, levels_to_search, limit_type, 131 exclude_inherited); 132 } 133 134 public Description[] describe_contents(DefinitionKind limit_type, 135 boolean exclude_inherited, 136 int max_returned_objs) 137 { 138 return delegate.describe_contents(limit_type, exclude_inherited, 139 max_returned_objs); 140 } 141 142 public ModuleDef create_module(String id, String name, String version) 143 { 144 return delegate.create_module(id, name, version); 145 } 146 147 public ConstantDef create_constant(String id, String name, String version, 148 IDLType type, Any value) 149 { 150 return delegate.create_constant(id, name, version, type, value); 151 } 152 153 public StructDef create_struct(String id, String name, String version, 154 StructMember [] members) 155 { 156 return delegate.create_struct(id, name, version, members); 157 } 158 159 public UnionDef create_union(String id, String name, String version, 160 IDLType discriminator_type, 161 UnionMember [] members) 162 { 163 return delegate.create_union(id, name, version, discriminator_type, 164 members); 165 } 166 167 public EnumDef create_enum(String id, String name, String version, 168 String [] members) 169 { 170 return delegate.create_enum(id, name, version, members); 171 } 172 173 public AliasDef create_alias(String id, String name, String version, 174 IDLType original_type) 175 { 176 return delegate.create_alias(id, name, version, original_type); 177 } 178 179 public InterfaceDef create_interface(String id, String name, String version, 180 InterfaceDef [] base_interfaces, 181 boolean is_abstract) 182 { 183 return delegate.create_interface(id, name, version, 184 base_interfaces, is_abstract); 185 } 186 187 public ValueDef create_value(String id, String name, String version, 188 boolean is_custom, boolean is_abstract, 189 ValueDef base_value, boolean is_truncatable, 190 ValueDef [] abstract_base_values, 191 InterfaceDef [] supported_interfaces, 192 Initializer [] initializers) 193 { 194 return delegate.create_value(id, name, version, is_custom, is_abstract, 195 base_value, is_truncatable, 196 abstract_base_values, supported_interfaces, 197 initializers); 198 } 199 200 public ValueBoxDef create_value_box(String id, String name, String version, 201 IDLType original_type_def) 202 { 203 return delegate.create_value_box(id, name, version, original_type_def); 204 } 205 206 public ExceptionDef create_exception(String id, String name, String version, 207 StructMember [] members) 208 { 209 return delegate.create_exception(id, name, version, members); 210 } 211 212 public NativeDef create_native(String id, String name, String version) 213 { 214 return delegate.create_native(id, name, version); 215 } 216 217 218 220 222 224 226 229 ContainerImplDelegate delegate; 230 231 } 233 234 | Popular Tags |