1 7 8 package com.sun.corba.se.spi.ior; 9 10 import java.util.Iterator ; 11 12 import org.omg.CORBA_2_3.portable.OutputStream ; 13 14 import com.sun.corba.se.spi.orb.ORB ; 15 16 import com.sun.corba.se.impl.ior.EncapsulationUtility ; 17 18 public abstract class TaggedProfileTemplateBase 19 extends IdentifiableContainerBase 20 implements TaggedProfileTemplate 21 { 22 public void write( OutputStream os ) 23 { 24 EncapsulationUtility.writeEncapsulation( this, os ) ; 25 } 26 27 public org.omg.IOP.TaggedComponent [] getIOPComponents( ORB orb, int id ) 28 { 29 int count = 0 ; 30 Iterator iter = iteratorById( id ) ; 31 while (iter.hasNext()) { 32 iter.next() ; 33 count++ ; 34 } 35 36 org.omg.IOP.TaggedComponent [] result = new 37 org.omg.IOP.TaggedComponent [count] ; 38 39 int index = 0 ; 40 iter = iteratorById( id ) ; 41 while (iter.hasNext()) { 42 TaggedComponent comp = (TaggedComponent)(iter.next()) ; 43 result[index++] = comp.getIOPComponent( orb ) ; 44 } 45 46 return result ; 47 } 48 } 49 | Popular Tags |