/** * Read the data into a (presumably) empty ObjectReferenceFactoryImpl. This sets the orb to the ORB of the * InputStream. */ public void _read(InputStream is) { org.omg.CORBA_2_3.portable.InputStream istr = (org.omg.CORBA_2_3.portable.InputStream) is; iorTemplates = IORFactories.makeIORTemplateList(istr); }
/** * Read the data into a (presumably) empty ObjectReferenceFactoryImpl. This sets the orb to the ORB of the * InputStream. */ public void _read(InputStream is) { org.omg.CORBA_2_3.portable.InputStream istr = (org.omg.CORBA_2_3.portable.InputStream) is; iorTemplates = IORFactories.makeIORTemplateList(istr); }
public IORTemplateList getIORTemplateList() { IORTemplateList tl = IORFactories.makeIORTemplateList(); tl.add(iorTemplate); tl.makeImmutable(); return tl; } }
public IORTemplateList getIORTemplateList() { IORTemplateList tl = IORFactories.makeIORTemplateList(); tl.add(iorTemplate); tl.makeImmutable(); return tl; } }
/** * Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the * IORTemplate. */ public IORImpl(ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this(orb, typeId); this.iortemps = IORFactories.makeIORTemplateList(); this.iortemps.add(iortemp); addTaggedProfiles(iortemp, id); makeImmutable(); }
/** * Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the * IORTemplate. */ public IORImpl(ORB orb, String typeId, IORTemplate iortemp, ObjectId id) { this(orb, typeId); this.iortemps = IORFactories.makeIORTemplateList(); this.iortemps.add(iortemp); addTaggedProfiles(iortemp, id); makeImmutable(); }
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map<ObjectKeyTemplate, IORTemplate> oktempToIORTemplate = new HashMap<ObjectKeyTemplate, IORTemplate>(); iortemps = IORFactories.makeIORTemplateList(); Iterator<Object> iter = iterator(); ObjectId oid = null; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile) (iter.next()); TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate(); ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate(); // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId(); else if (!oid.equals(prof.getObjectId())) throw wrapper.badOidInIorTemplateList(); // Find or create the IORTemplate for oktemp. IORTemplate iortemp = oktempToIORTemplate.get(oktemp); if (iortemp == null) { iortemp = IORFactories.makeIORTemplate(oktemp); oktempToIORTemplate.put(oktemp, iortemp); iortemps.add(iortemp); } iortemp.add(ptemp); } iortemps.makeImmutable(); }
private void initializeIORTemplateList() { // Maps ObjectKeyTemplate to IORTemplate Map<ObjectKeyTemplate, IORTemplate> oktempToIORTemplate = new HashMap<ObjectKeyTemplate, IORTemplate>(); iortemps = IORFactories.makeIORTemplateList(); Iterator<Object> iter = iterator(); ObjectId oid = null; // used to check that all profiles have the same oid. while (iter.hasNext()) { TaggedProfile prof = (TaggedProfile) (iter.next()); TaggedProfileTemplate ptemp = prof.getTaggedProfileTemplate(); ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate(); // Check that all oids for all profiles are the same: if they are not, // throw exception. if (oid == null) oid = prof.getObjectId(); else if (!oid.equals(prof.getObjectId())) throw wrapper.badOidInIorTemplateList(); // Find or create the IORTemplate for oktemp. IORTemplate iortemp = oktempToIORTemplate.get(oktemp); if (iortemp == null) { iortemp = IORFactories.makeIORTemplate(oktemp); oktempToIORTemplate.put(oktemp, iortemp); iortemps.add(iortemp); } iortemp.add(ptemp); } iortemps.makeImmutable(); }