KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > common > wsdl1 > JbiEndpoint


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

17 package org.apache.servicemix.common.wsdl1;
18
19 import javax.jbi.messaging.MessageExchange.Role;
20 import javax.wsdl.extensions.ExtensibilityElement;
21 import javax.xml.namespace.QName JavaDoc;
22
23 import java.io.Serializable JavaDoc;
24 import java.net.URI JavaDoc;
25
26 public class JbiEndpoint implements ExtensibilityElement, Serializable JavaDoc {
27
28     /**
29      * Generated serial version UID
30      */

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

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

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

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

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

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

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

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

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