KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > data > def > MessageTypeInfo


1 package org.jbpm.bpel.data.def;
2
3 import javax.wsdl.Message;
4 import javax.xml.namespace.QName JavaDoc;
5
6 import org.jbpm.bpel.data.exe.MessageVariableInstance;
7 import org.jbpm.bpel.data.exe.VariableInstance;
8
9 /**
10  * Provides information related to a WSDL message type.
11  * @see "WS-BPEL 2.0 §9.2"
12  * @author Alejandro Guízar
13  * @version $Revision: 1.3 $ $Date: 2005/05/31 00:49:52 $
14  */

15 public class MessageTypeInfo extends VariableTypeInfo {
16
17   private Message message;
18   
19   private static final long serialVersionUID = 1L;
20   
21   public MessageTypeInfo() {
22   }
23   
24   public MessageTypeInfo(Message message) {
25     this.message = message;
26   }
27   
28   public QName JavaDoc getName() {
29     return message.getQName();
30   }
31
32   public Message getMessage() {
33     return message;
34   }
35
36   public void setMessage(Message message) {
37     this.message = message;
38   }
39
40   /** {@inheritDoc} */
41   public VariableInstance createVariableInstance() {
42     return new MessageVariableInstance();
43   }
44 }
45
Popular Tags