View Javadoc

1   /*
2    * $Id: PartnerLinkTypeImpl.java,v 1.1 2004/12/15 14:18:18 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.wsdl.extensions.partnerlinktype.impl;
10  
11  import javax.xml.namespace.QName;
12  
13  import bexee.wsdl.extensions.partnerlinktype.PartnerLinkType;
14  import bexee.wsdl.extensions.partnerlinktype.PartnerLinkTypeConstants;
15  import bexee.wsdl.extensions.partnerlinktype.Role;
16  
17  /***
18   * A default implementation of the <code>PartnerLinkType</code> BPEL extension
19   * to WSDL.
20   * 
21   * @author Patric Fornasier
22   * @author Pawel Kowalski
23   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:18 $
24   */
25  public class PartnerLinkTypeImpl extends AbstractExtensibilityElement implements
26          PartnerLinkType {
27  
28      private static final Boolean required = Boolean.TRUE;
29  
30      private String name;
31  
32      private Role myRole;
33  
34      private Role partnerRole;
35  
36      /***
37       * Create a new PartnerLinkTypeImpl instance.
38       */
39      public PartnerLinkTypeImpl() {
40          super(PartnerLinkTypeConstants.PLINK_TYPE_QNAME, required);
41      }
42  
43      /***
44       * @return Returns the myRole.
45       */
46      public Role getMyRole() {
47          return myRole;
48      }
49  
50      /***
51       * @param myRole
52       *            The myRole to set.
53       */
54      public void setMyRole(Role myRole) {
55          this.myRole = myRole;
56      }
57  
58      /***
59       * @return Returns the name.
60       */
61      public String getName() {
62          return name;
63      }
64  
65      /***
66       * @param name
67       *            The name to set.
68       */
69      public void setName(String name) {
70          this.name = name;
71      }
72  
73      /***
74       * @return Returns the partnerRole.
75       */
76      public Role getPartnerRole() {
77          return partnerRole;
78      }
79  
80      /***
81       * @param partnerRole
82       *            The partnerRole to set.
83       */
84      public void setPartnerRole(Role partnerRole) {
85          this.partnerRole = partnerRole;
86      }
87  
88      public void setElementType(QName elementType) {
89          //
90          // deliberately left empty: disable setting this property
91          //
92      }
93  
94      public void setRequired(Boolean required) {
95          //
96          // deliberately left empty: disable setting this property
97          //
98      }
99  }