KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > TR > Connector > TR2InOutSRole


1 /**
2  * TR2InOutSRole.java is a part of the SOFA project.
3  * This file was created by pepan on 19.3.2003.
4  */

5 package SOFA.SOFAnode.TR.Connector;
6
7 import SOFA.Connector.RoleBaseImpl;
8 import SOFA.SOFAnode.InOut.Bundle;
9 import SOFA.SOFAnode.TR.ComponentInfo;
10 import SOFA.SOFAnode.TR.TR2InOut;
11 import SOFA.SOFAnode.TR.TRException;
12
13 /**
14  * @author Petr Panuska
15  */

16 public class TR2InOutSRole extends RoleBaseImpl implements CNTR2InOut {
17   private TR2InOut target;
18
19   public void link (Object JavaDoc target) throws SOFA.Connector.LinkException {
20     this.target = (TR2InOut) target;
21   }
22
23   public void storeBundle (Bundle bundle) throws TRException {
24     target.storeBundle(bundle);
25   }
26
27   public Bundle getBundle (ComponentInfo[] descs, ComponentInfo[] comps, boolean inferiors) throws TRException {
28     return target.getBundle(descs, comps, inferiors);
29   }
30
31   public boolean contains (ComponentInfo descrs) {
32     return target.contains(descrs);
33   }
34
35   public Bundle list () {
36     return target.list();
37   }
38 }
39
Popular Tags