View Javadoc

1   /*
2    * Jbi4CorbaPartnerLink.java
3    * 
4    * Created on 12-set-2007, 16.50.46
5    * 
6    * This class represents the PartnerLink 
7    */
8   
9   package it.imolinfo.jbi4corba.utils.plugin.wsdl;
10  
11  import java.io.Serializable;
12  import java.util.ArrayList;
13  import java.util.List;
14  import javax.wsdl.extensions.ExtensibilityElement;
15  import javax.xml.namespace.QName;
16  
17  /**
18   *
19   * @author mcastaldi
20   */
21  public class Jbi4CorbaPartnerLink implements ExtensibilityElement, Serializable {
22  
23      private Boolean required = false;
24      private QName elementType = null;
25      private String name = null;
26      private List<Role> roles = new ArrayList<Role>();
27      private String prefix = null;
28      
29  
30      public void setElementType(QName elementType) {
31          this.elementType = elementType;
32      }
33  
34      public QName getElementType() {
35          return this.elementType;
36      }
37  
38      public void setRequired(Boolean required) {
39          this.required = required;
40      }
41  
42      public Boolean getRequired() {
43          return this.required;
44      }
45  
46      public void addRole(Role role) {
47          this.roles.add(role);
48      }
49  
50      public void removeRole(Role role) {
51          this.roles.remove(role);
52      }
53  
54      public Role getRole(int i) {
55          return this.roles.get(i);
56      }
57  
58      public String getName() {
59          return name;
60      }
61  
62      public void setName(String name) {
63          this.name = name;
64      }
65  
66      public int getRolesNumber() {
67          return this.roles.size();
68      }
69  
70      public String getPrefix() {
71          return prefix;
72      }
73  
74      public void setPrefix(String prefix) {
75          this.prefix = prefix;
76      }
77  
78  }