KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > bar > BarScope


1 package org.jbpm.bpel.bar;
2
3 import java.util.*;
4
5 /**
6  * @author Alejandro Guízar
7  * @version $Revision: 1.1 $ $Date: 2005/06/04 00:08:20 $
8  */

9 public class BarScope {
10   
11   private String JavaDoc name;
12   private String JavaDoc destinationName;
13   private Map partnerLinks = new HashMap();
14   private List scopes = new ArrayList();
15   
16   public String JavaDoc getName() {
17     return name;
18   }
19   
20   public void setName(String JavaDoc name) {
21     this.name = name;
22   }
23   
24   public String JavaDoc getDestinationName() {
25     return destinationName;
26   }
27   
28   public void setDestinationName(String JavaDoc destinationName) {
29     this.destinationName = destinationName;
30   }
31   
32   public Map getPartnerLinks() {
33     return partnerLinks;
34   }
35   
36   public void addPartnerLink(BarPartnerLink partnerLink) {
37     partnerLinks.put(partnerLink.getName(), partnerLink);
38   }
39   
40   public List getScopes() {
41     return scopes;
42   }
43   
44   public void addScope(BarScope scope) {
45     scopes.add(scope);
46   }
47
48   public void accept(BarVisitor visitor) {
49     visitor.visit(this);
50   }
51 }
52
Popular Tags