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.wsdlto.frontend.jaxws.customization;
019:
020: import java.io.Serializable;
021:
022: import javax.wsdl.extensions.ExtensibilityElement;
023: import javax.xml.namespace.QName;
024:
025: import org.w3c.dom.Element;
026:
027: public class JAXWSBinding implements ExtensibilityElement, Serializable {
028:
029: private boolean enableAsyncMapping;
030:
031: private boolean enableMime;
032:
033: private Element element;
034: private boolean required;
035: private QName elementType;
036:
037: private boolean enableWrapperStyle = true;
038:
039: private String documentBaseURI;
040:
041: private String packageName;
042:
043: private String methodName;
044:
045: private JAXWSParameter jaxwsPara;
046:
047: private JAXWSClass jaxwsClass;
048:
049: public void setDocumentBaseURI(String baseURI) {
050: this .documentBaseURI = baseURI;
051: }
052:
053: public String getDocumentBaseURI() {
054: return this .documentBaseURI;
055: }
056:
057: public void setElement(Element elem) {
058: this .element = elem;
059: }
060:
061: public Element getElement() {
062: return element;
063: }
064:
065: public void setRequired(Boolean r) {
066: this .required = r;
067: }
068:
069: public Boolean getRequired() {
070: return required;
071: }
072:
073: public void setElementType(QName elemType) {
074: this .elementType = elemType;
075: }
076:
077: public QName getElementType() {
078: return elementType;
079: }
080:
081: public boolean isEnableMime() {
082: return enableMime;
083: }
084:
085: public void setEnableMime(boolean enableMime) {
086: this .enableMime = enableMime;
087: }
088:
089: public boolean isEnableAsyncMapping() {
090: return this .enableAsyncMapping;
091: }
092:
093: public void setEnableAsyncMapping(boolean enableAsync) {
094: this .enableAsyncMapping = enableAsync;
095: }
096:
097: public boolean isEnableWrapperStyle() {
098: return enableWrapperStyle;
099: }
100:
101: public void setEnableWrapperStyle(boolean pEnableWrapperStyle) {
102: this .enableWrapperStyle = pEnableWrapperStyle;
103: }
104:
105: public void setPackage(String pkg) {
106: this .packageName = pkg;
107: }
108:
109: public String getPackage() {
110: return this .packageName;
111: }
112:
113: public void setJaxwsPara(JAXWSParameter para) {
114: jaxwsPara = para;
115: }
116:
117: public JAXWSParameter getJaxwsPara() {
118: return jaxwsPara;
119: }
120:
121: public void setJaxwsClass(JAXWSClass clz) {
122: this .jaxwsClass = clz;
123: }
124:
125: public JAXWSClass getJaxwsClass() {
126: return this .jaxwsClass;
127: }
128:
129: public void setMethodName(String name) {
130: methodName = name;
131: }
132:
133: public String getMethodName() {
134: return this.methodName;
135: }
136: }
|