Package org.omg.CORBA

Examples of org.omg.CORBA.INTF_REPOS


    public org.omg.CORBA.TypeCode type()
    {
        if (type == null)
        {
            throw new INTF_REPOS ("Struct TypeCode is null");
        }

        return type;
    }
View Full Code Here


    public org.omg.CORBA.StructMember[] members()
    {
        if ( ! defined)
        {
            throw new INTF_REPOS ("Struct " + full_name + " not defined! ");
        }

        return members;
    }
View Full Code Here



    public void destroy()
    {
        throw new INTF_REPOS(ErrorMsg.IR_Not_Implemented,
                             org.omg.CORBA.CompletionStatus.COMPLETED_NO);
    }
View Full Code Here

    public org.omg.CORBA.ContainedPackage.Description describe()
    {
        if ( ! defined)
        {
            throw new INTF_REPOS ("Struct " + full_name + " not defined! ");
        }

        org.omg.CORBA.Any a = orb.create_any();
        org.omg.CORBA.TypeDescription ed = describe_struct();
        org.omg.CORBA.TypeDescriptionHelper.insert( a, ed );
View Full Code Here

        this.logger = logger;
        this.poa = poa;

        if (tc.kind() != org.omg.CORBA.TCKind.tk_array)
        {
            throw new INTF_REPOS ("Precondition volation: TypeCode must be of kind array");
        }

         def_kind = org.omg.CORBA.DefinitionKind.dk_Array;
         this.ir = ir;
         type = tc;
         try
         {
             size = tc.length();
             element_type = tc.content_type();
             element_type_def = IDLType.createelement_type, ir,
                                                 this.logger, this.poa);
         }
         catch( org.omg.CORBA.TypeCodePackage.BadKind bk )
         {
             // cannot happen because of above test
         }

        if (element_type_def == null)
        {
            throw new INTF_REPOS ("Precondition volation: TypeCode must be of kind array");
        }

        this.logger.debug("New ArrayDef");
    }
View Full Code Here

    public org.omg.CORBA.IDLType original_type_def()
    {
        if (original_type_def == null)
        {
           throw new INTF_REPOS ("Alias " + name () + " has null original_type_def" );
        }
        return original_type_def;
    }
View Full Code Here

        def_kind = org.omg.CORBA.DefinitionKind.dk_Operation;
        name( m.getName());

        if (def_in == null)
        {
           throw new INTF_REPOS ("Class argument null");
        }
        if (i_def == null)
        {
           throw new INTF_REPOS ("Idef argument null" );
        }

        id( RepositoryID.toRepositoryID(
                RepositoryID.className( i_def.id(), loader) + "/" + name(),
                false,
View Full Code Here

        {
            uexc = this.loader.loadClass("org.omg.CORBA.UserException");
        }
        catch ( ClassNotFoundException e1)
        {
            throw new INTF_REPOS(ErrorMsg.IR_Definition_Not_Found,
                                               org.omg.CORBA.CompletionStatus.COMPLETED_NO);
        }

        Vector v = new Vector();
        for( int ix = 0; ix < ex_classes.length; ix++ )
View Full Code Here

        if( paramTypeNames.length > 0 )
        {
            if (paramTypeNames.length != m_params.length)
            {
                throw new INTF_REPOS ("Different parameter type numbers! " +
                                      paramTypeNames.length + " vs. " + m_params.length +
                                      " inforString: " + opInfo);
            }
        }


        for( int i = 0; i < params.length; i++)
        {
            String name = "arg_" + i;
            String paramInfo = null;
            org.omg.CORBA.ParameterMode mode = null;
            try
            {
                String parameterTypeName = m_params[i].getName();

                if( paramTypeNames.length != 0 )
                    paramInfo = paramTypeNames[i];

                if( ! parameterTypeName.endsWith("Holder")  )
                {
                    mode = org.omg.CORBA.ParameterMode.PARAM_IN;
                    if( paramInfo != null && paramInfo.indexOf(' ') > 0 )
                    {
                        parameterTypeName =
                            paramInfo.substring( paramInfo.indexOf(' ')+1);
                        name =
                            paramInfo.substring( paramInfo.indexOf(':')+1,
                                                 paramInfo.indexOf(' '));
                    }
                }
                else
                {
                    if ( ! (paramInfo != null && (paramInfo.indexOf(' ') > 0)))
                    {
                        throw new INTF_REPOS ("No param info for " + parameterTypeName);
                    }

                    if( paramInfo.substring(0, (paramInfo.indexOf(' ')-1)).startsWith("inout:"))
                        mode = org.omg.CORBA.ParameterMode.PARAM_INOUT;
                    else
                        mode = org.omg.CORBA.ParameterMode.PARAM_OUT;

                    name = paramInfo.substring( paramInfo.indexOf(':')+1,
                                                paramInfo.indexOf(' '));

                    parameterTypeName =
                       parameterTypeName.substring(0, parameterTypeName.indexOf("Holder"));
                }


                if (this.logger.isDebugEnabled())
                {
                    this.logger.debug("Operation " + name() + ", param #"+ i +
                                      "name: " + name +
                                      ", paramTypeName " + parameterTypeName +
                                      paramInfo);
                }

                tc = TypeCodeUtil.getTypeCode( m_params[i],
                                               this.loader,
                                               null,
                                               parameterTypeName,
                                               this.logger);
            }
            catch ( Exception e )
            {
                logger.error("Caught Exception", e);
                throw new INTF_REPOS( ErrorMsg.IR_Definition_Not_Found,
                org.omg.CORBA.CompletionStatus.COMPLETED_NO);
            }
            org.omg.CORBA.IDLType type_def =
                IDLType.create( tc, containing_repository,
                                this.logger, this.poa );
View Full Code Here

    public org.omg.CORBA.IDLType result_def()
    {
        if ( ! defined)
        {
            throw new INTF_REPOS ("OperationDef undefined");
        }
        if (result_def == null)
        {
            throw new INTF_REPOS ("Result def for op " + name () + " null");
        }
        return result_def;
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.INTF_REPOS

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.