01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.axis2.addressing;
21:
22: import javax.xml.namespace.QName;
23:
24: /**
25: * @deprecated I don't think this class is used anywhere. Shout if this is not the case.
26: * Class ServiceName
27: */
28: public class ServiceName {
29:
30: /**
31: * Field name
32: */
33: private QName name;
34:
35: /**
36: * Field portName
37: */
38: private String portName;
39:
40: /**
41: * @param name
42: */
43: public ServiceName(QName name) {
44: this .name = name;
45: }
46:
47: /**
48: * @param name
49: * @param portName
50: */
51: public ServiceName(QName name, String portName) {
52: this .name = name;
53: this .portName = portName;
54: }
55:
56: /**
57: * Method getName
58: */
59: public QName getName() {
60: return name;
61: }
62:
63: /**
64: * Method getPortName
65: */
66: public String getPortName() {
67: return portName;
68: }
69:
70: /**
71: * Method setName
72: *
73: * @param name
74: */
75: public void setName(QName name) {
76: this .name = name;
77: }
78:
79: /**
80: * Method setPortName
81: *
82: * @param portName
83: */
84: public void setPortName(String portName) {
85: this.portName = portName;
86: }
87: }
|