1 26 27 package org.objectweb.openccm.ast.lib; 28 29 30 import org.objectweb.openccm.ast.api.InterfaceDecl; 31 32 33 import org.objectweb.openccm.ast.api.InterfaceList; 34 35 36 import org.omg.CORBA.InterfaceDef ; 37 38 60 61 public abstract class ComponentBaseImpl 62 extends InterfaceDeclImpl 63 implements org.objectweb.openccm.ast.api.ComponentBase 64 { 65 71 72 protected InterfaceListImpl supported_interfaces_; 73 74 75 protected InterfaceDeclImpl client_mapping_; 76 77 83 89 protected 90 ComponentBaseImpl(Repository rep, 91 ScopeImpl parent) 92 { 93 super(rep, parent); 95 96 supported_interfaces_ = new InterfaceListImpl(); 98 client_mapping_ = null; 99 } 100 101 107 112 protected void 113 addSupportedInterfaces(InterfaceDef [] supported_interfaces) 114 { 115 for (int i=0; i<supported_interfaces.length; i++) 116 { 117 supported_interfaces_.add( 119 (InterfaceDecl)getRepository(). 120 lookupId(supported_interfaces[i].id())); 121 } 122 } 123 124 130 136 141 public InterfaceList 142 getSupportedInterfaceList() 143 { 144 return supported_interfaces_; 145 } 146 } 147 | Popular Tags |