KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wsdl > impl > MessageReferenceImpl


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.wsdl.impl;
17
18 import org.apache.wsdl.MessageReference;
19
20 import javax.xml.namespace.QName JavaDoc;
21
22 /**
23  * @author Chathura Herath
24  */

25 public class MessageReferenceImpl extends ExtensibleComponentImpl
26         implements MessageReference {
27
28     // Referes to the MEP the Message relates to.
29

30     /**
31      * Field messageLabel
32      */

33     private String JavaDoc messageLabel;
34
35     // Can be "in" or "out" depending on the element name being "input" or "output" respectively;
36

37     /**
38      * Field Direction
39      */

40     private String JavaDoc Direction;
41
42     // TODO Do we need it "Message content model"
43

44     /**
45      * Field element
46      */

47     private QName JavaDoc element;
48
49     /**
50      * Method getDirection
51      *
52      * @return
53      */

54     public String JavaDoc getDirection() {
55         return Direction;
56     }
57
58     /**
59      * Method setDirection
60      *
61      * @param direction
62      */

63     public void setDirection(String JavaDoc direction) {
64         Direction = direction;
65     }
66
67     /**
68      * Returns an Element which refers to the actual message that will get transported. This Element
69      * Abstracts all the Message Parts that was defined in the WSDL 1.1.
70      *
71      * @return
72      */

73     public QName JavaDoc getElement() {
74         return element;
75     }
76
77     /**
78      * Sets the Element that will Abstract the actual message. All the parts defined in WSDL 1.1
79      * per message should be Encapsulated in this Element.
80      *
81      * @param element
82      */

83     public void setElement(QName JavaDoc element) {
84         this.element = element;
85     }
86
87     /**
88      * Method getMessageLabel
89      *
90      * @return
91      */

92     public String JavaDoc getMessageLabel() {
93         return messageLabel;
94     }
95
96     /**
97      * Method setMessageLabel
98      *
99      * @param messageLabel
100      */

101     public void setMessageLabel(String JavaDoc messageLabel) {
102         this.messageLabel = messageLabel;
103     }
104 }
105
Popular Tags