1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.Initializer; 31 32 33 import org.omg.CORBA.ExtInitializer; 34 35 51 52 public class InitializerListImpl 53 extends ListBaseImpl 54 implements org.objectweb.openccm.ast.api.InitializerList 55 { 56 62 68 71 public 72 InitializerListImpl() 73 { 74 super(); 76 } 77 78 84 90 95 public ExtInitializer[] 96 getExtInitializerSeq() 97 { 98 ExtInitializer[] result = new ExtInitializer[getSize()]; 100 101 java.util.Iterator it = iterator(); 103 for(int i=0; it.hasNext(); i++) 104 { 105 InitializerImpl init = (InitializerImpl)it.next(); 107 108 result[i] = init.getExtInitializer(); 110 } 111 112 return result; 114 } 115 116 122 127 public void 128 add(Initializer init) 129 { 130 super.addObject(init); 131 } 132 133 138 public Initializer[] 139 getInitializers() 140 { 141 return (Initializer[])super.toArray(new Initializer[0]); 142 } 143 } 144 | Popular Tags |