1 26 package org.objectweb.openccm.explorer.Components; 27 28 import org.omg.Components.CCMObject; 29 import org.omg.Components.ReceptacleDescription; 30 import org.omg.Components.ConnectionDescription; 31 32 44 public class ConnectionContainer { 45 46 47 protected ConnectionDescription connection_; 48 49 50 protected ReceptacleContainer receptacleContainer_; 51 52 55 public ConnectionDescription getConnection() { 56 return connection_; 57 } 58 59 62 public void setConnection(ConnectionDescription connection) { 63 connection_ = connection; 64 } 65 66 69 public void setReceptacleContainer(ReceptacleContainer receptacleContainer) { 70 receptacleContainer_ = receptacleContainer; 71 } 72 73 76 public ReceptacleDescription getReceptacle() { 77 if (receptacleContainer_ != null) 78 return receptacleContainer_.getReceptacle(); 79 return null; 80 } 81 82 85 public CCMObject getComponent() { 86 if (receptacleContainer_ != null) 87 return receptacleContainer_.getComponent(); 88 return null; 89 } 90 91 } 92 | Popular Tags |