KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > addressing > ServiceName


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.axis2.addressing;
17
18 import javax.xml.namespace.QName JavaDoc;
19
20 /**
21  * Class ServiceName
22  */

23 public class ServiceName {
24     /**
25      * Field name
26      */

27     private QName JavaDoc name;
28
29     /**
30      * Field endpointName
31      */

32     private String JavaDoc endpointName;
33
34     /**
35      * @param name
36      */

37     public ServiceName(QName JavaDoc name) {
38         this.name = name;
39     }
40
41     /**
42      * @param name
43      * @param portName
44      */

45     public ServiceName(QName JavaDoc name, String JavaDoc portName) {
46         this.name = name;
47         this.endpointName = portName;
48     }
49
50     /**
51      * Method getName
52      *
53      * @return
54      */

55     public QName JavaDoc getName() {
56         return name;
57     }
58
59     /**
60      * Method setName
61      *
62      * @param name
63      */

64     public void setName(QName JavaDoc name) {
65         this.name = name;
66     }
67
68     /**
69      * Method getEndpointName
70      *
71      * @return
72      */

73     public String JavaDoc getEndpointName() {
74         return endpointName;
75     }
76
77     /**
78      * Method setEndpointName
79      *
80      * @param endpointName
81      */

82     public void setEndpointName(String JavaDoc endpointName) {
83         this.endpointName = endpointName;
84     }
85 }
86
Popular Tags