KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > component > common > wsdl > JbiEndpoint


1 /*
2  * Copyright 2005-2006 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.objectweb.petals.component.common.wsdl;
17
18 import javax.jbi.messaging.MessageExchange.Role;
19 import javax.wsdl.extensions.ExtensibilityElement;
20 import javax.xml.namespace.QName JavaDoc;
21
22 import java.io.Serializable JavaDoc;
23 import java.net.URI JavaDoc;
24
25 public class JbiEndpoint implements ExtensibilityElement, Serializable JavaDoc {
26
27     /**
28      * Generated serial version UID
29      */

30     private static final long serialVersionUID = -3118867357618475968L;
31     
32     protected Boolean JavaDoc required;
33     protected QName JavaDoc elementType;
34     
35     protected Role role;
36     protected URI JavaDoc defaultMep;
37     protected QName JavaDoc defaultOperation;
38     
39     /**
40      * @return Returns the elementType.
41      */

42     public QName JavaDoc getElementType() {
43         return elementType;
44     }
45     /**
46      * @param elementType The elementType to set.
47      */

48     public void setElementType(QName JavaDoc elementType) {
49         this.elementType = elementType;
50     }
51     /**
52      * @return Returns the required.
53      */

54     public Boolean JavaDoc getRequired() {
55         return required;
56     }
57     /**
58      * @param required The required to set.
59      */

60     public void setRequired(Boolean JavaDoc required) {
61         this.required = required;
62     }
63     public Role getRole() {
64         return role;
65     }
66     public void setRole(Role role) {
67         this.role = role;
68     }
69     /**
70      * @return Returns the defaultMep.
71      */

72     public URI JavaDoc getDefaultMep() {
73         return defaultMep;
74     }
75     /**
76      * @param defaultMep The defaultMep to set.
77      */

78     public void setDefaultMep(URI JavaDoc defaultMep) {
79         this.defaultMep = defaultMep;
80     }
81     
82     /**
83      * @return Returns the defaultOperation.
84      */

85     public QName JavaDoc getDefaultOperation() {
86         return defaultOperation;
87     }
88     /**
89      * @param defaultOperation The defaultOperation to set.
90      */

91     public void setDefaultOperation(QName JavaDoc defaultOperation) {
92         this.defaultOperation = defaultOperation;
93     }
94     
95     public String JavaDoc toString() {
96         return "JbiEndpoint[" +
97                     "required=" + required + ", " +
98                     "elementType=" + elementType + ", " +
99                     "role=" + role + ", " +
100                     "defaultMep=" + defaultMep + "," +
101                     "defaultOperation=" + defaultOperation + "]";
102     }
103     
104 }
105
Popular Tags