1 26 27 package org.objectweb.openccm.ir3; 28 29 37 38 public abstract class EventPortDef_impl 39 extends FeatureContained 40 implements org.omg.CORBA.ComponentIR.EventPortDefOperations 41 { 42 48 49 protected EventDef_ref event_; 50 51 57 58 public 59 EventPortDef_impl(IFR ifr, 60 Container_impl container) 61 { 62 super(ifr, container); 64 65 event_ = new EventDef_ref(this); 67 } 68 69 75 78 public org.omg.CORBA.ComponentIR.EventPortDescription 79 describe_event_port() 80 { 81 org.omg.CORBA.ComponentIR.EventPortDescription description = new org.omg.CORBA.ComponentIR.EventPortDescription(); 83 description.name = name(); 84 description.id = id(); 85 description.defined_in = getContainerID(); 86 description.version = version(); 87 description.event = event().id(); 88 89 return description; 90 } 91 92 93 99 102 public void 103 setDescriptionValue(org.omg.CORBA.Any any) 104 { 105 org.omg.CORBA.ComponentIR.EventPortDescriptionHelper.insert(any, describe_event_port()); 107 } 108 109 115 118 protected void 119 cutDependencies() 120 { 121 event_.cutDependency(); 123 event_ = null; 124 125 super.cutDependencies(); 127 } 128 129 135 141 144 public boolean 145 is_a(String event_id) 146 { 147 return event_.getImpl().is_a(event_id); 149 } 150 151 154 public org.omg.CORBA.ComponentIR.EventDef 155 event() 156 { 157 return event_.asEventDef(); 159 } 160 161 169 public void 170 event(org.omg.CORBA.ComponentIR.EventDef val) 171 { 172 event_.setDependency(castToLocal(val)); 175 } 176 } 177 | Popular Tags |