Examples of IORTemplateList


Examples of com.sun.corba.se.spi.ior.IORTemplateList

    public void add( int index, Object element )
    {
        if (element instanceof IORTemplate) {
            super.add( index, element ) ;
        } else if (element instanceof IORTemplateList) {
            IORTemplateList tl = (IORTemplateList)element ;
            addAll( index, tl ) ;
        } else
            throw new IllegalArgumentException() ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

    public boolean isEquivalent( IORFactory other )
    {
        if (!(other instanceof IORTemplateList))
            return false ;

        IORTemplateList list = (IORTemplateList)other ;

        Iterator thisIterator = iterator() ;
        Iterator listIterator = list.iterator() ;
        while (thisIterator.hasNext() && listIterator.hasNext()) {
            IORTemplate thisTemplate = (IORTemplate)thisIterator.next() ;
            IORTemplate listTemplate = (IORTemplate)listIterator.next() ;
            if (!thisTemplate.isEquivalent( listTemplate ))
                return false ;
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

    private byte[] internalReferenceToId(
        org.omg.CORBA.Object reference ) throws WrongAdapter
    {
        IOR ior = ORBUtility.getIOR( reference ) ;
        IORTemplateList thisTemplate = ior.getIORTemplates() ;

        ObjectReferenceFactory orf = getCurrentFactory() ;
        IORTemplateList poaTemplate =
            IORFactories.getIORTemplateList( orf ) ;

        if (!poaTemplate.isEquivalent( thisTemplate ))
            throw new WrongAdapter();

        // Extract the ObjectId from the first TaggedProfile in the IOR.
        // If ior was created in this POA, the same ID was used for
        // every profile through the profile templates in the currentFactory,
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

        return iorTemplate ;
    }

    public IORTemplateList getIORTemplateList()
    {
        IORTemplateList tl = IORFactories.makeIORTemplateList() ;
        tl.add( iorTemplate ) ;
        tl.makeImmutable() ;
        return tl ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

        return iorTemplate ;
    }

    public IORTemplateList getIORTemplateList()
    {
        IORTemplateList tl = IORFactories.makeIORTemplateList() ;
        tl.add( iorTemplate ) ;
        tl.makeImmutable() ;
        return tl ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

    public void add( int index, Object element )
    {
        if (element instanceof IORTemplate) {
            super.add( index, element ) ;
        } else if (element instanceof IORTemplateList) {
            IORTemplateList tl = (IORTemplateList)element ;
            addAll( index, tl ) ;
        } else
            throw new IllegalArgumentException() ;
    }
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

    public boolean isEquivalent( IORFactory other )
    {
        if (!(other instanceof IORTemplateList))
            return false ;

        IORTemplateList list = (IORTemplateList)other ;

        Iterator thisIterator = iterator() ;
        Iterator listIterator = list.iterator() ;
        while (thisIterator.hasNext() && listIterator.hasNext()) {
            IORTemplate thisTemplate = (IORTemplate)thisIterator.next() ;
            IORTemplate listTemplate = (IORTemplate)listIterator.next() ;
            if (!thisTemplate.isEquivalent( listTemplate ))
                return false ;
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IORTemplateList

    private byte[] internalReferenceToId(
        org.omg.CORBA.Object reference ) throws WrongAdapter
    {
        IOR ior = ORBUtility.getIOR( reference ) ;
        IORTemplateList thisTemplate = ior.getIORTemplates() ;

        ObjectReferenceFactory orf = getCurrentFactory() ;
        IORTemplateList poaTemplate =
            IORFactories.getIORTemplateList( orf ) ;

        if (!poaTemplate.isEquivalent( thisTemplate ))
            throw new WrongAdapter();

        // Extract the ObjectId from the first TaggedProfile in the IOR.
        // If ior was created in this POA, the same ID was used for
        // every profile through the profile templates in the currentFactory,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.