1 26 package org.objectweb.openccm.explorer.Components; 27 28 import org.omg.Components.CCMObject; 29 import org.omg.Components.PublisherDescription; 30 import org.omg.Components.SubscriberDescription; 31 32 44 public class SubscriberContainer { 45 46 47 protected SubscriberDescription subscriber_; 48 49 50 protected PublisherContainer publisherContainer_; 51 52 55 public SubscriberDescription getSubscriber() { 56 return subscriber_; 57 } 58 59 62 public void setSubscriber_(SubscriberDescription subscriber) { 63 subscriber_ = subscriber; 64 } 65 66 69 public void setPublisherContainer_(PublisherContainer publisherContainer) { 70 publisherContainer_ = publisherContainer; 71 } 72 73 76 public PublisherDescription getPublisher() { 77 if (publisherContainer_ != null) 78 return publisherContainer_.getPublisher(); 79 return null; 80 } 81 82 85 public CCMObject getComponent() { 86 if (publisherContainer_ != null) 87 return publisherContainer_.getComponent(); 88 return null; 89 } 90 91 } 92 | Popular Tags |