Package org.omg.CORBA

Examples of org.omg.CORBA.INTF_REPOS


    public org.omg.CORBA.Contained[] contents(org.omg.CORBA.DefinitionKind limit_type,
                                              boolean exclude_inherited)
    {
        if ( ! defined)
        {
            throw new INTF_REPOS ("InterfaceDef " + name + " not defined.");
        }

        Hashtable limited = new Hashtable();

        // analog constants, exceptions etc.
View Full Code Here


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

        org.omg.CORBA.Any a = orb.create_any();

        String def_in = null;
View Full Code Here

        myContainer =
            org.omg.CORBA.ContainedHelper.narrow( defined_in );

        if (myContainer == null)
        {
            throw new INTF_REPOS ("Constant should be in an interface!");
        }

        String def_in_id = myContainer.id();
        id = def_in_id.substring(0,def_in_id.lastIndexOf(":")) +
            "/" + name + ":" + version;
View Full Code Here

                                                 this.logger );
        }
        catch ( Exception e )
        {
            logger.debug("unexpected exception", e);
            throw new INTF_REPOS( ErrorMsg.IR_Not_Implemented,
                                  org.omg.CORBA.CompletionStatus.COMPLETED_NO);
        }

        if (this.logger.isDebugEnabled())
        {
View Full Code Here

        value = (org.jacorb.orb.Any) orb.create_any();
        type_def = IDLType.create( typeCode, containing_repository,
                                   this.logger, this.poa);
        if (typeCode == null)
        {
            throw new INTF_REPOS ("typeCode is null!");
        }
        if (type_def == null)
        {
            throw new INTF_REPOS ("type_def is null!");
        }

        try
        {
            value.insert_object(typeCode,
View Full Code Here

    org.omg.CORBA.ConstantDescription describe_constant()
    {
        if ( ! defined)
        {
            throw new INTF_REPOS ("ConstantDef " + name + " not defined!");
        }
        if( description == null )
        {
            String def_in = null;
            if( myContainer == null )
View Full Code Here

    public org.omg.CORBA.Object getReference()
    {
        if( myRef == null )
        {
            throw new INTF_REPOS ("Reference undefined!");
        }
        return myRef;
    }
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

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.