KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > wsdl > def > PartnerLinkType


1 package org.jbpm.bpel.wsdl.def;
2
3 import java.io.Serializable JavaDoc;
4
5 import javax.wsdl.PortType;
6 import javax.wsdl.extensions.ExtensibilityElement;
7 import javax.xml.namespace.QName JavaDoc;
8
9 /**
10  * A partner link type characterizes the conversational relationship between
11  * two services. It does so by defining the <i>roles</i> played by each service in
12  * the conversation, and specifying the port type provided to receive messages.
13  * @see "WS-BPEL 2.0 &sect;7.1"
14  * @author Alejandro Guízar
15  * @version $Revision: 1.2 $ $Date: 2005/05/31 00:49:53 $
16  */

17 public interface PartnerLinkType extends ExtensibilityElement, Serializable JavaDoc {
18
19   /**
20    * Gets the name of this partner link type.
21    * @return the name in place
22    */

23   public QName JavaDoc getQName();
24
25   /**
26    * Sets the name of this partner link type.
27    * @param name the new name
28    */

29   public void setQName(QName JavaDoc name);
30   
31   /**
32    * Gets the first role of this partner link type.
33    * @return the first (mandatory) role in place
34    */

35   public Role getFirstRole();
36
37   /**
38    * Sets the first role of this partner link type.
39    * @param firstRole the new first (mandatory) role
40    */

41   public void setFirstRole(Role firstRole);
42
43   /**
44    * Gets the second role of this partner link type.
45    * @return the second (optional) role
46    */

47   public Role getSecondRole();
48
49   /**
50    * Sets the second role of this partner link type.
51    * @param secondRole the new second (optional) role
52    */

53   public void setSecondRole(Role secondRole);
54   
55   /**
56    * Creates a role.
57    * @return the newly created role
58    */

59   public Role createRole();
60   
61   /**
62    * The role played by each of the services in the conversation.
63    */

64   public static interface Role extends Serializable JavaDoc {
65     
66     /**
67      * Gets the name of this role.
68      * @return the name in place
69      */

70     public String JavaDoc getName();
71
72     /**
73      * Sets the name of this role.
74      * @param name the new name
75      */

76     public void setName(String JavaDoc name);
77
78     /**
79      * Gets the port type of this role.
80      * @return the port type in place
81      */

82     public PortType getPortType();
83
84     /**
85      * Sets the port type of this role.
86      * @param portType the new port type
87      */

88     public void setPortType(PortType portType);
89   }
90 }
Popular Tags