001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */package org.apache.cxf.tools.common.model;
019:
020: import java.util.ArrayList;
021: import java.util.List;
022: import javax.jws.soap.SOAPBinding;
023:
024: public class JavaPort {
025:
026: private String name;
027: private String portType;
028: private String bindingName;
029: private final List<JavaMethod> operations = new ArrayList<JavaMethod>();
030: private String address;
031: private String soapVersion;
032: private SOAPBinding.Style style;
033: private String transURI;
034: private String interfaceClass;
035: private String packageName;
036: private String namespace;
037: private String portName;
038: private String methodName;
039:
040: public JavaPort(String pname) {
041: this .name = pname;
042: }
043:
044: public void setTransURI(String uri) {
045: this .transURI = uri;
046: }
047:
048: public String getTransURI() {
049: return this .transURI;
050: }
051:
052: public void setStyle(SOAPBinding.Style sty) {
053: this .style = sty;
054: }
055:
056: public SOAPBinding.Style getStyle() {
057: return this .style;
058: }
059:
060: public void setName(String portname) {
061: name = portname;
062: }
063:
064: public String getName() {
065: return name;
066: }
067:
068: public void setPortType(String type) {
069: this .portType = type;
070: }
071:
072: public String getPortType() {
073: return portType;
074: }
075:
076: public void setBindingName(String bName) {
077: this .bindingName = bName;
078: }
079:
080: public String getBindingName() {
081: return bindingName;
082: }
083:
084: public void addOperation(JavaMethod method) {
085: operations.add(method);
086: }
087:
088: public List getOperations() {
089: return operations;
090: }
091:
092: public void setBindingAdress(String add) {
093: this .address = add;
094: }
095:
096: public String getBindingAdress() {
097: return address;
098: }
099:
100: public void setSoapVersion(String version) {
101: this .soapVersion = version;
102: }
103:
104: public String getSoapVersion() {
105: return soapVersion;
106: }
107:
108: public void setPackageName(String pkgName) {
109: this .packageName = pkgName;
110: }
111:
112: public String getPackageName() {
113: return this .packageName;
114: }
115:
116: public String getInterfaceClass() {
117: return this .interfaceClass;
118: }
119:
120: public void setInterfaceClass(String clzname) {
121: this .interfaceClass = clzname;
122: }
123:
124: public void setNameSpace(String ns) {
125: this .namespace = ns;
126: }
127:
128: public String getNameSpace() {
129: return this .namespace;
130: }
131:
132: public void setPortName(String pname) {
133: portName = pname;
134: }
135:
136: public String getPortName() {
137: return portName;
138: }
139:
140: public void setMethodName(String mname) {
141: methodName = mname;
142: }
143:
144: public String getMethodName(String mname) {
145: return methodName;
146: }
147:
148: }
|