public org.omg.CORBA.UnionDef create_union( java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType discriminator_type, org.omg.CORBA.UnionMember[] members) { org.omg.CORBA.Request _request = this._request("create_union"); _request.set_return_type(org.omg.CORBA.UnionDefHelper.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 $discriminator_type = _request.add_named_in_arg("discriminator_type"); org.omg.CORBA.IDLTypeHelper.insert($discriminator_type, discriminator_type); org.omg.CORBA.Any $members = _request.add_named_in_arg("members"); org.omg.CORBA.UnionMemberSeqHelper.insert($members, members); _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.UnionDef _result; _result = org.omg.CORBA.UnionDefHelper.extract(_request.return_value()); return _result; }
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 org.omg.CORBA.ConstantDef create_constant( java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType type, org.omg.CORBA.Any value) { org.omg.CORBA.Request _request = this._request("create_constant"); _request.set_return_type(org.omg.CORBA.ConstantDefHelper.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 $type = _request.add_named_in_arg("type"); org.omg.CORBA.IDLTypeHelper.insert($type, type); org.omg.CORBA.Any $value = _request.add_named_in_arg("value"); $value.insert_any(value); _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.ConstantDef _result; _result = org.omg.CORBA.ConstantDefHelper.extract(_request.return_value()); return _result; }
public org.omg.CORBA.Contained[] lookup_name( java.lang.String search_name, int levels_to_search, org.omg.CORBA.DefinitionKind limit_type, boolean exclude_inherited) { org.omg.CORBA.Request _request = this._request("lookup_name"); _request.set_return_type(org.omg.CORBA.ContainedSeqHelper.type()); org.omg.CORBA.Any $search_name = _request.add_named_in_arg("search_name"); $search_name.insert_string(search_name); org.omg.CORBA.Any $levels_to_search = _request.add_named_in_arg("levels_to_search"); $levels_to_search.insert_long(levels_to_search); org.omg.CORBA.Any $limit_type = _request.add_named_in_arg("limit_type"); org.omg.CORBA.DefinitionKindHelper.insert($limit_type, limit_type); org.omg.CORBA.Any $exclude_inherited = _request.add_named_in_arg("exclude_inherited"); $exclude_inherited.insert_boolean(exclude_inherited); _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.Contained[] _result; _result = org.omg.CORBA.ContainedSeqHelper.extract(_request.return_value()); return _result; }
public org.omg.CORBA.ValueBoxDef create_value_box( java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType original_type_def) { org.omg.CORBA.Request _request = this._request("create_value_box"); _request.set_return_type(org.omg.CORBA.ValueBoxDefHelper.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 $original_type_def = _request.add_named_in_arg("original_type_def"); org.omg.CORBA.IDLTypeHelper.insert($original_type_def, original_type_def); _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.ValueBoxDef _result; _result = org.omg.CORBA.ValueBoxDefHelper.extract(_request.return_value()); return _result; }
public void base_interfaces(org.omg.CORBA.InterfaceDef[] value) { org.omg.CORBA.Request _request = this._request("_set_base_interfaces"); org.omg.CORBA.Any $value = _request.add_in_arg(); org.omg.CORBA.InterfaceDefSeqHelper.insert($value, value); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; }
public void version(java.lang.String value) { org.omg.CORBA.Request _request = this._request("_set_version"); org.omg.CORBA.Any $value = _request.add_in_arg(); $value.insert_string(value); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; }
public void is_abstract(boolean value) { org.omg.CORBA.Request _request = this._request("_set_is_abstract"); org.omg.CORBA.Any $value = _request.add_in_arg(); $value.insert_boolean(value); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; }
public org.omg.CORBA.TypeCode type() { org.omg.CORBA.Request _request = this._request("_get_type"); _request.set_return_type(org.omg.CORBA.TypeCodeHelper.type()); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; org.omg.CORBA.TypeCode _result; _result = org.omg.CORBA.TypeCodeHelper.extract(_request.return_value()); return _result; }
public org.omg.CORBA.InterfaceDef[] base_interfaces() { org.omg.CORBA.Request _request = this._request("_get_base_interfaces"); _request.set_return_type(org.omg.CORBA.InterfaceDefSeqHelper.type()); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; org.omg.CORBA.InterfaceDef[] _result; _result = org.omg.CORBA.InterfaceDefSeqHelper.extract(_request.return_value()); return _result; }
public void destroy() { org.omg.CORBA.Request _request = this._request("destroy"); _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; } ; }
public org.omg.CORBA.Repository containing_repository() { org.omg.CORBA.Request _request = this._request("_get_containing_repository"); _request.set_return_type(org.omg.CORBA.RepositoryHelper.type()); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; org.omg.CORBA.Repository _result; _result = org.omg.CORBA.RepositoryHelper.extract(_request.return_value()); return _result; }
public boolean is_abstract() { org.omg.CORBA.Request _request = this._request("_get_is_abstract"); _request.set_return_type( org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean)); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; boolean _result; _result = _request.return_value().extract_boolean(); return _result; }
public java.lang.String version() { org.omg.CORBA.Request _request = this._request("_get_version"); _request.set_return_type( org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_string)); _request.invoke(); java.lang.Exception _exception = _request.env().exception(); if (_exception != null) { throw (org.omg.CORBA.SystemException) _exception; } ; java.lang.String _result; _result = _request.return_value().extract_string(); return _result; }
/** See RequestInfoImpl for javadoc. */ public String[] contexts() { checkAccess(MID_CONTEXTS); if (cachedContexts == null) { if (request == null) { throw stdWrapper.piOperationNotSupported3(); } // Get the list of contexts from DII request data, If there are // no contexts then this method will return null. ContextList ctxList = request.contexts(); int count = ctxList.count(); String[] ctxListToReturn = new String[count]; try { for (int i = 0; i < count; i++) { ctxListToReturn[i] = ctxList.item(i); } } catch (Exception e) { throw wrapper.exceptionInContexts(e); } cachedContexts = ctxListToReturn; } // Good citizen: In the interest of efficiency, we assume // interceptors will be "good citizens" in that they will not // modify the contents of the String[] array. return cachedContexts; }
/** See RequestInfoImpl for javadoc. */ public TypeCode[] exceptions() { checkAccess(MID_EXCEPTIONS); if (cachedExceptions == null) { if (request == null) { throw stdWrapper.piOperationNotSupported2(); } // Get the list of exceptions from DII request data, If there are // no exceptions raised then this method will return null. ExceptionList excList = request.exceptions(); int count = excList.count(); TypeCode[] excTCList = new TypeCode[count]; try { for (int i = 0; i < count; i++) { excTCList[i] = excList.item(i); } } catch (Exception e) { throw wrapper.exceptionInExceptions(e); } cachedExceptions = excTCList; } // Good citizen: In the interest of efficiency, we assume // interceptors will be "good citizens" in that they will not // modify the contents of the TypeCode[] array. We also assume // they will not change the values of the containing TypeCodes. return cachedExceptions; }
public org.omg.CORBA.ContainedPackage.Description describe() { org.omg.CORBA.Request _request = this._request("describe"); _request.set_return_type(org.omg.CORBA.ContainedPackage.DescriptionHelper.type()); _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.ContainedPackage.Description _result; _result = org.omg.CORBA.ContainedPackage.DescriptionHelper.extract(_request.return_value()); return _result; }
/** See RequestInfoImpl for javadoc. */ public String[] operation_context() { checkAccess(MID_OPERATION_CONTEXT); if (cachedOperationContext == null) { if (request == null) { throw stdWrapper.piOperationNotSupported4(); } // Get the list of contexts from DII request data, If there are // no contexts then this method will return null. Context ctx = request.ctx(); // _REVISIT_ The API for get_values is not compliant with the spec, // Revisit this code once it's fixed. // _REVISIT_ Our ORB doesn't support Operation Context, This code // will not be excerscised until it's supported. // The first parameter in get_values is the start_scope which // if blank makes it as a global scope. // The second parameter is op_flags which is set to RESTRICT_SCOPE // As there is only one defined in the spec. // The Third param is the pattern which is '*' requiring it to // get all the contexts. NVList nvList = ctx.get_values("", CTX_RESTRICT_SCOPE.value, "*"); String[] context = new String[(nvList.count() * 2)]; if ((nvList != null) && (nvList.count() != 0)) { // The String[] array will contain Name and Value for each // context and hence double the size in the array. int index = 0; for (int i = 0; i < nvList.count(); i++) { NamedValue nv; try { nv = nvList.item(i); } catch (Exception e) { return (String[]) null; } context[index] = nv.name(); index++; context[index] = nv.value().extract_string(); index++; } } cachedOperationContext = context; } // Good citizen: In the interest of efficiency, we assume // interceptors will be "good citizens" in that they will not // modify the contents of the String[] array. return cachedOperationContext; }
/** See RequestInfoImpl for javadoc. */ public Parameter[] arguments() { checkAccess(MID_ARGUMENTS); if (cachedArguments == null) { if (request == null) { throw stdWrapper.piOperationNotSupported1(); } // If it is DII request then get the arguments from the DII req // and convert that into parameters. cachedArguments = nvListToParameterArray(request.arguments()); } // Good citizen: In the interest of efficiency, we assume // interceptors will be "good citizens" in that they will not // modify the contents of the Parameter[] array. We also assume // they will not change the values of the containing Anys. return cachedArguments; }
public org.omg.CORBA.ContainerPackage.Description[] describe_contents( org.omg.CORBA.DefinitionKind limit_type, boolean exclude_inherited, int max_returned_objs) { org.omg.CORBA.Request _request = this._request("describe_contents"); _request.set_return_type(org.omg.CORBA.ContainerPackage.DescriptionSeqHelper.type()); org.omg.CORBA.Any $limit_type = _request.add_named_in_arg("limit_type"); org.omg.CORBA.DefinitionKindHelper.insert($limit_type, limit_type); org.omg.CORBA.Any $exclude_inherited = _request.add_named_in_arg("exclude_inherited"); $exclude_inherited.insert_boolean(exclude_inherited); org.omg.CORBA.Any $max_returned_objs = _request.add_named_in_arg("max_returned_objs"); $max_returned_objs.insert_long(max_returned_objs); _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.ContainerPackage.Description[] _result; _result = org.omg.CORBA.ContainerPackage.DescriptionSeqHelper.extract(_request.return_value()); return _result; }
/** See RequestInfoImpl for javadoc. */ public Any result() { checkAccess(MID_RESULT); if (cachedResult == null) { if (request == null) { throw stdWrapper.piOperationNotSupported5(); } // Get the result from the DII request data. NamedValue nvResult = request.result(); if (nvResult == null) { throw wrapper.piDiiResultIsNull(); } cachedResult = nvResult.value(); } // Good citizen: In the interest of efficiency, we assume that // interceptors will not modify the contents of the result Any. // Otherwise, we would need to create a deep copy of the Any. return cachedResult; }
public org.omg.CORBA.Contained lookup(java.lang.String search_name) { org.omg.CORBA.Request _request = this._request("lookup"); _request.set_return_type(org.omg.CORBA.ContainedHelper.type()); org.omg.CORBA.Any $search_name = _request.add_named_in_arg("search_name"); $search_name.insert_string(search_name); _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.Contained _result; _result = org.omg.CORBA.ContainedHelper.extract(_request.return_value()); return _result; }
public boolean is_a(java.lang.String interface_id) { org.omg.CORBA.Request _request = this._request("is_a"); _request.set_return_type( org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean)); org.omg.CORBA.Any $interface_id = _request.add_named_in_arg("interface_id"); $interface_id.insert_string(interface_id); _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; } ; boolean _result; _result = _request.return_value().extract_boolean(); return _result; }
public void move( org.omg.CORBA.Container new_container, java.lang.String new_name, java.lang.String new_version) { org.omg.CORBA.Request _request = this._request("move"); org.omg.CORBA.Any $new_container = _request.add_named_in_arg("new_container"); org.omg.CORBA.ContainerHelper.insert($new_container, new_container); org.omg.CORBA.Any $new_name = _request.add_named_in_arg("new_name"); $new_name.insert_string(new_name); org.omg.CORBA.Any $new_version = _request.add_named_in_arg("new_version"); $new_version.insert_string(new_version); _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; } ; }
public org.omg.CORBA.OperationDef create_operation( java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType result, org.omg.CORBA.OperationMode mode, org.omg.CORBA.ParameterDescription[] params, org.omg.CORBA.ExceptionDef[] exceptions, java.lang.String[] contexts) { org.omg.CORBA.Request _request = this._request("create_operation"); _request.set_return_type(org.omg.CORBA.OperationDefHelper.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 $result = _request.add_named_in_arg("result"); org.omg.CORBA.IDLTypeHelper.insert($result, result); org.omg.CORBA.Any $mode = _request.add_named_in_arg("mode"); org.omg.CORBA.OperationModeHelper.insert($mode, mode); org.omg.CORBA.Any $params = _request.add_named_in_arg("params"); org.omg.CORBA.ParDescriptionSeqHelper.insert($params, params); org.omg.CORBA.Any $exceptions = _request.add_named_in_arg("exceptions"); org.omg.CORBA.ExceptionDefSeqHelper.insert($exceptions, exceptions); org.omg.CORBA.Any $contexts = _request.add_named_in_arg("contexts"); org.omg.CORBA.ContextIdSeqHelper.insert($contexts, contexts); _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.OperationDef _result; _result = org.omg.CORBA.OperationDefHelper.extract(_request.return_value()); return _result; }
public org.omg.CORBA.ValueDef create_value( java.lang.String id, java.lang.String name, java.lang.String version, boolean is_custom, boolean is_abstract, org.omg.CORBA.ValueDef base_value, boolean is_truncatable, org.omg.CORBA.ValueDef[] abstract_base_values, org.omg.CORBA.InterfaceDef[] supported_interfaces, org.omg.CORBA.Initializer[] initializers) { org.omg.CORBA.Request _request = this._request("create_value"); _request.set_return_type(org.omg.CORBA.ValueDefHelper.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 $is_custom = _request.add_named_in_arg("is_custom"); $is_custom.insert_boolean(is_custom); org.omg.CORBA.Any $is_abstract = _request.add_named_in_arg("is_abstract"); $is_abstract.insert_boolean(is_abstract); org.omg.CORBA.Any $base_value = _request.add_named_in_arg("base_value"); org.omg.CORBA.ValueDefHelper.insert($base_value, base_value); org.omg.CORBA.Any $is_truncatable = _request.add_named_in_arg("is_truncatable"); $is_truncatable.insert_boolean(is_truncatable); org.omg.CORBA.Any $abstract_base_values = _request.add_named_in_arg("abstract_base_values"); org.omg.CORBA.ValueDefSeqHelper.insert($abstract_base_values, abstract_base_values); org.omg.CORBA.Any $supported_interfaces = _request.add_named_in_arg("supported_interfaces"); org.omg.CORBA.InterfaceDefSeqHelper.insert($supported_interfaces, supported_interfaces); org.omg.CORBA.Any $initializers = _request.add_named_in_arg("initializers"); org.omg.CORBA.InitializerSeqHelper.insert($initializers, initializers); _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.ValueDef _result; _result = org.omg.CORBA.ValueDefHelper.extract(_request.return_value()); return _result; }