1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 32 40 41 public class ExtInitializer_impl 42 extends Initializer_impl 43 { 44 50 51 protected ExceptionDef_ref[] exceptions_; 52 53 59 60 public 61 ExtInitializer_impl(ValueDef_impl owner) 62 { 63 super(owner); 64 65 exceptions_ = null; 67 } 68 69 75 81 84 public Initializer 85 getInitializer() 86 { 87 return new Initializer(getStructMemberSeq(), name_); 88 } 89 90 93 public void 94 setInitializer(Initializer val) 95 { 96 setStructMemberSeq(val.members); 97 name_ = val.name; 98 exceptions_ = new ExceptionDef_ref[0]; 99 } 100 101 104 public ExtInitializer 105 getExtInitializer() 106 { 107 ExceptionDef[] exceptions = new ExceptionDef[exceptions_.length]; 108 for (int i=0;i<exceptions.length;i++) 109 exceptions[i] = exceptions_[i].asExceptionDef(); 110 111 return new ExtInitializer(getStructMemberSeq(), 112 exceptions, 113 ExceptionDef_impl.compute_ExcDescriptionSeq(exceptions_), 114 name_); 115 } 116 117 120 public void 121 setExtInitializer(ExtInitializer val) 122 { 123 setStructMemberSeq(val.members); 124 name_ = val.name; 125 126 ExceptionDef_impl[] exceptions = new ExceptionDef_impl[val.exceptions_def.length]; 127 for (int i=0; i<val.exceptions_def.length; i++) 128 exceptions[i] = contained_.castToLocal(val.exceptions_def[i]); 129 130 ExceptionDef_ref[] refs = new ExceptionDef_ref[exceptions.length]; 131 for (int i=0; i<exceptions.length; i++) 132 refs[i] = new ExceptionDef_ref(contained_, exceptions[i]); 133 134 ExceptionDef_ref.cutDependencies(exceptions_); 136 137 exceptions_ = refs; 138 } 139 } 140 | Popular Tags |