Package org.omg.CORBA

Examples of org.omg.CORBA.INTF_REPOS


        def_kind = org.omg.CORBA.DefinitionKind.dk_Exception;
        containing_repository = ir;
        defined_in = _defined_in;
        if (defined_in == null)
        {
            throw new INTF_REPOS ("defined_in = null");
        }
        if (containing_repository == null)
        {
            throw new INTF_REPOS ("containing_repository = null");
        }

        try
        {
            String classId = c.getName();
            myClass = c;
            version( "1.0" );
            if( classId.indexOf('.') > 0 )
            {
                name( classId.substring( classId.lastIndexOf('.')+1));
                absolute_name =
                    org.omg.CORBA.ContainedHelper.narrow( defined_in ).absolute_name() + "::" + name;
            }
            else
            {
                name( classId );
                absolute_name = "::" + name;
            }

            helperClass = this.loader.loadClass(classId + "Helper") ;
            id( (String)helperClass.getDeclaredMethod("id", (Class[]) null).invoke( null, (Object[]) null ));
            type =
                TypeCodeUtil.getTypeCode(myClass, this.loader, null, classId, this.logger );
            try
            {
                members = new org.omg.CORBA.StructMember[ type.member_count() ];
                for( int i = 0; i < members.length; i++ )
                {
                    members[i] = new org.omg.CORBA.StructMember( type.member_name(i),
                                                                 type.member_type(i),
                                                                 null );
                }
            }
            catch( Exception e )
            {
                this.logger.error("Caught Exception", e);
            }

            if (this.logger.isDebugEnabled())
            {
                this.logger.debug("ExceptionDef: " + absolute_name);
            }
        }
        catch ( Exception e )
        {
            this.logger.error("Caught Exception", e);
            throw new INTF_REPOS( ErrorMsg.IR_Not_Implemented,
                                  org.omg.CORBA.CompletionStatus.COMPLETED_NO);
        }
    }
View Full Code Here


    public org.omg.CORBA.TypeCode type()
    {
        if (type == null)
        {
            throw new INTF_REPOS ("Exception TypeCode is null");
        }
        return type;
    }
View Full Code Here

    {
        return org.omg.CORBA.DefinitionKind.dk_Exception;
    }

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

    public void loadContents()
    {
        // read from the  class (operations and atributes)
        if (getReference() == null)
        {
            throw new INTF_REPOS ("getReference returns null");
        }

        org.omg.CORBA.UnionDef myReference =
            org.omg.CORBA.UnionDefHelper.narrow( getReference());

        if (myReference == null)
        {
            throw new INTF_REPOS ("narrow failed for " + getReference() );
        }

        /* load nested definitions from interfacePackage directory */

        String[] classes = null;
View Full Code Here

        defined_in = _defined_in;
        containing_repository = _containing_repository;

        if (containing_repository == null)
        {
            throw new INTF_REPOS ("containing_repository null");
        }
        if (defined_in == null)
        {
            throw new INTF_REPOS ("defined_in null");
        }

        org.omg.CORBA.Contained myContainer =
            org.omg.CORBA.ContainedHelper.narrow( defined_in );
        String interface_id = myContainer.id();
View Full Code Here

    public void type_def(org.omg.CORBA.IDLType a)
    {
        if (defined == false)
        {
            throw new INTF_REPOS ("Attribute not defined" );
        }
        type_def = a;
    }
View Full Code Here

        my_dir = new File( path + fileSeparator +
                           ( full_name != null ? full_name : "" ).replace('.', fileSeparator) );

        if ( ! my_dir.isDirectory())
        {
            throw new INTF_REPOS ("no directory : " + path + fileSeparator + full_name);
        }

        this.name = delegator.getName();

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

    {
        this_container =
            org.omg.CORBA.ContainerHelper.narrow( delegator.getReference());
        if (this_container == null)
        {
            throw new INTF_REPOS ("no container !");
        }

        if( delegator instanceof Contained )
        {
            containing_repository = ((Contained)delegator).containing_repository();
            defined_in = ((Contained)delegator).defined_in();
        }
        else
        {
            containing_repository = org.omg.CORBA.
                RepositoryHelper.narrow( delegator.getReference());
            defined_in = containing_repository;
        }

        if (containing_repository == null)
        {
            throw new INTF_REPOS ("no containing repository");
        }

        String[] classes;
        String[] dirs;
View Full Code Here

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

        Hashtable filtered = new Hashtable();

        if( limit_type.value() == org.omg.CORBA.DefinitionKind._dk_all )
View Full Code Here

{
    public WstringDef(org.omg.CORBA.TypeCode tc)
    {
        if (tc.kind () != org.omg.CORBA.TCKind.tk_wstring)
        {
            throw new INTF_REPOS ("Precondition volation: TypeCode must be of kind wstring, but is " +
                                        tc.kind().value());
        }
        def_kind = org.omg.CORBA.DefinitionKind.dk_Wstring;
        type = tc;
        try
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.