public org.omg.CORBA.InterfaceDef create_interface( java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.InterfaceDef[] base_interfaces, boolean is_abstract) { org.omg.CORBA.Request _request = this._request("create_interface"); _request.set_return_type(org.omg.CORBA.InterfaceDefHelper.type()); org.omg.CORBA.Any $id = _request.add_named_in_arg("id"); $id.insert_string(id); org.omg.CORBA.Any $name = _request.add_named_in_arg("name"); $name.insert_string(name); org.omg.CORBA.Any $version = _request.add_named_in_arg("version"); $version.insert_string(version); org.omg.CORBA.Any $base_interfaces = _request.add_named_in_arg("base_interfaces"); org.omg.CORBA.InterfaceDefSeqHelper.insert($base_interfaces, base_interfaces); org.omg.CORBA.Any $is_abstract = _request.add_named_in_arg("is_abstract"); $is_abstract.insert_boolean(is_abstract); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { if (_exception instanceof org.omg.CORBA.UnknownUserException) { org.omg.CORBA.UnknownUserException _userException = (org.omg.CORBA.UnknownUserException) _exception; } throw (org.omg.CORBA.SystemException) _exception; } ; org.omg.CORBA.InterfaceDef _result; _result = org.omg.CORBA.InterfaceDefHelper.extract(_request.return_value()); return _result; }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.InterfaceDefHelper.narrow(servantToReference(new InterfaceDefPOATie(this))); } return ref; }
/** * print the IDL definition for a contained objec * * @param c the contained object * @param indentation how many spaces to use for indentation */ public void printContained(org.omg.CORBA.Contained c, int indentation) { org.omg.CORBA.ContainedPackage.Description descr = c.describe(); switch (descr.kind.value()) { case org.omg.CORBA.DefinitionKind._dk_Module: { printModule(org.omg.CORBA.ModuleDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Interface: { org.omg.CORBA.InterfaceDef idef = org.omg.CORBA.InterfaceDefHelper.narrow( ir.lookup_id(org.omg.CORBA.InterfaceDescriptionHelper.extract(descr.value).id)); printInterface(idef, indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Attribute: { printAttribute( org.omg.CORBA.AttributeDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Operation: { printOperation( org.omg.CORBA.OperationDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Exception: { printException( org.omg.CORBA.ExceptionDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Constant: { printConstant( org.omg.CORBA.ConstantDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Struct: { printStruct(org.omg.CORBA.TypeDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Enum: { printEnum(org.omg.CORBA.TypeDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Union: { printUnion(org.omg.CORBA.TypeDescriptionHelper.extract(descr.value), indentation + 3); break; } case org.omg.CORBA.DefinitionKind._dk_Alias: { printAlias(org.omg.CORBA.TypeDescriptionHelper.extract(descr.value), indentation + 3); break; } } }