1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.InterfaceDef ; 31 32 40 41 public class InterfaceDef_ref 42 extends IDLType_ref 43 { 44 50 53 public 54 InterfaceDef_ref(IRObject_impl owner) 55 { 56 super(owner); 58 } 59 60 63 public 64 InterfaceDef_ref(IRObject_impl owner, 65 InterfaceDef_impl object) 66 { 67 super(owner, object); 69 } 70 71 77 83 86 static public void 87 cutDependencies(InterfaceDef_ref[] itfs) 88 { 89 if (itfs != null) 90 { 91 for(int i=0; i<itfs.length; i++) 92 itfs[i].cutDependency(); 93 } 94 } 95 96 99 static public String [] 100 computeRepositoryIdSeq(InterfaceDef_ref[] itfs) 101 { 102 String [] result = new String [itfs.length]; 103 104 for(int i=0; i<itfs.length; i++) 105 result[i] = itfs[i].getId(); 106 107 return result; 108 } 109 110 113 static public InterfaceDef [] 114 computeInterfaceDefSeq(InterfaceDef_ref[] itfs) 115 { 116 InterfaceDef [] result = new InterfaceDef [itfs.length]; 117 118 for(int i=0; i<itfs.length; i++) 119 result[i] = itfs[i].asInterfaceDef(); 120 121 return result; 122 } 123 124 130 133 public InterfaceDef_impl 134 getImpl() 135 { 136 return (InterfaceDef_impl)(super.getBaseImpl()); 137 } 138 139 142 public InterfaceDef 143 asInterfaceDef() 144 { 145 if (getTarget() == null) return null; 146 return getImpl().asInterfaceDef(); 147 } 148 149 152 public String 153 getId() 154 { 155 if (getTarget() == null) return ""; 156 return getImpl().id(); 157 } 158 } 159 | Popular Tags |