Java Code Examples for com.sun.corba.se.spi.ior.IOR#iterator()
The following examples show how to use
com.sun.corba.se.spi.ior.IOR#iterator() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: POAImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 2
Source File: POAImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 3
Source File: POAImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 4
Source File: POAImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 5
Source File: POAImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 6
Source File: POAImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 7
Source File: POAImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 8
Source File: POAImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 9
Source File: POAImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 10
Source File: POAImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
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, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 11
Source File: IORImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 12
Source File: IORImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 13
Source File: IORImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 14
Source File: IORImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 15
Source File: IORImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 16
Source File: IORImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 17
Source File: IORImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 18
Source File: IORImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 19
Source File: IORImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }
Example 20
Source File: IORImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public boolean isEquivalent(IOR ior) { Iterator myIterator = iterator() ; Iterator otherIterator = ior.iterator() ; while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile)(myIterator.next()) ; TaggedProfile otherProfile = (TaggedProfile)(otherIterator.next()) ; if (!myProfile.isEquivalent( otherProfile )) return false ; } return myIterator.hasNext() == otherIterator.hasNext() ; }