/*
 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

package com.sun.tools.internal.ws.wsdl.document.jaxws;

import com.sun.tools.internal.ws.wsdl.framework.ExtensionImpl;
import org.w3c.dom.Element;
import org.xml.sax.Locator;

import javax.xml.namespace.QName;
import java.util.*;


Author:Vivek Pandey To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
/** * @author Vivek Pandey * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */
public class JAXWSBinding extends ExtensionImpl { /** * */ public JAXWSBinding(Locator locator){ super(locator); jaxbBindings = new HashSet<Element>(); // TODO Auto-generated constructor stub } /* (non-Javadoc) * @see Entity#validateThis() */ public void validateThis(){ // TODO Auto-generated method stub } /* (non-Javadoc) * @see Elemental#getElementName() */ public QName getElementName(){ // TODO Auto-generated method stub return JAXWSBindingsConstants.JAXWS_BINDINGS; } public QName getWSDLElementName() { return getElementName(); } /* (non-Javadoc) * @see TWSDLExtensible#addExtension(ExtensionImpl) */ public void addExtension(ExtensionImpl e) { // TODO Auto-generated method stub } /* (non-Javadoc) * @see TWSDLExtensible#extensions() */ public Iterable<ExtensionImpl> extensions() { // TODO Auto-generated method stub return null; } // /** // * @return Returns the enableAdditionalHeaderMapping. // */ // public Boolean isEnableAdditionalHeaderMapping() { // return enableAdditionalHeaderMapping; // } // /** // * @param enableAdditionalHeaderMapping The enableAdditionalHeaderMapping to set. // */ // public void setEnableAdditionalHeaderMapping( // Boolean enableAdditionalHeaderMapping) { // this.enableAdditionalHeaderMapping = enableAdditionalHeaderMapping; // }
Returns:Returns the enableAsyncMapping.
/** * @return Returns the enableAsyncMapping. */
public Boolean isEnableAsyncMapping() { return enableAsyncMapping; }
Params:
  • enableAsyncMapping – The enableAsyncMapping to set.
/** * @param enableAsyncMapping The enableAsyncMapping to set. */
public void setEnableAsyncMapping(Boolean enableAsyncMapping) { this.enableAsyncMapping = enableAsyncMapping; }
Returns:Returns the enableMimeContentMapping.
/** * @return Returns the enableMimeContentMapping. */
public Boolean isEnableMimeContentMapping() { return enableMimeContentMapping; }
Params:
  • enableMimeContentMapping – The enableMimeContentMapping to set.
/** * @param enableMimeContentMapping The enableMimeContentMapping to set. */
public void setEnableMimeContentMapping(Boolean enableMimeContentMapping) { this.enableMimeContentMapping = enableMimeContentMapping; }
Returns:Returns the enableWrapperStyle.
/** * @return Returns the enableWrapperStyle. */
public Boolean isEnableWrapperStyle() { return enableWrapperStyle; }
Params:
  • enableWrapperStyle – The enableWrapperStyle to set.
/** * @param enableWrapperStyle The enableWrapperStyle to set. */
public void setEnableWrapperStyle(Boolean enableWrapperStyle) { this.enableWrapperStyle = enableWrapperStyle; }
Returns:Returns the jaxwsPackage.
/** * @return Returns the jaxwsPackage. */
public CustomName getJaxwsPackage() { return jaxwsPackage; }
Params:
  • jaxwsPackage – The jaxwsPackage to set.
/** * @param jaxwsPackage The jaxwsPackage to set. */
public void setJaxwsPackage(CustomName jaxwsPackage) { this.jaxwsPackage = jaxwsPackage; }
Returns:Returns the node.
/** * @return Returns the node. */
public String getNode() { return node; }
Params:
  • node – The node to set.
/** * @param node The node to set. */
public void setNode(String node) { this.node = node; }
Returns:Returns the version.
/** * @return Returns the version. */
public String getVersion() { return version; }
Params:
  • version – The version to set.
/** * @param version The version to set. */
public void setVersion(String version) { this.version = version; }
Returns:Returns the wsdlLocation.
/** * @return Returns the wsdlLocation. */
public String getWsdlLocation() { return wsdlLocation; }
Params:
  • wsdlLocation – The wsdlLocation to set.
/** * @param wsdlLocation The wsdlLocation to set. */
public void setWsdlLocation(String wsdlLocation) { this.wsdlLocation = wsdlLocation; }
Returns:Returns the wsdlNamespace.
/** * @return Returns the wsdlNamespace. */
public String getWsdlNamespace() { return wsdlNamespace; }
Params:
  • wsdlNamespace – The wsdlNamespace to set.
/** * @param wsdlNamespace The wsdlNamespace to set. */
public void setWsdlNamespace(String wsdlNamespace) { this.wsdlNamespace = wsdlNamespace; }
Returns:Returns the jaxbBindings.
/** * @return Returns the jaxbBindings. */
public Set<Element> getJaxbBindings() { return jaxbBindings; }
Params:
  • jaxbBinding – The jaxbBindings to set.
/** * @param jaxbBinding The jaxbBindings to set. */
public void addJaxbBindings(Element jaxbBinding) { if(jaxbBindings == null) return; this.jaxbBindings.add(jaxbBinding); }
Returns:the isProvider.
/** * @return the isProvider. */
public Boolean isProvider() { return isProvider; }
Params:
  • isProvider – The isProvider to set.
/** * @param isProvider The isProvider to set. */
public void setProvider(Boolean isProvider) { this.isProvider = isProvider; }
Returns:Returns the methodName.
/** * @return Returns the methodName. */
public CustomName getMethodName() { return methodName; }
Params:
  • methodName – The methodName to set.
/** * @param methodName The methodName to set. */
public void setMethodName(CustomName methodName) { this.methodName = methodName; }
Returns:Returns the parameter.
/** * @return Returns the parameter. */
public Iterator<Parameter> parameters() { return parameters.iterator(); }
Params:
  • parameter – The parameter to set.
/** * @param parameter The parameter to set. */
public void addParameter(Parameter parameter) { if(parameters == null) parameters = new ArrayList<Parameter>(); parameters.add(parameter); } public String getParameterName(String msgName, String wsdlPartName, QName element, boolean wrapperStyle){ if(msgName == null || wsdlPartName == null || element == null || parameters == null) return null; for(Parameter param : parameters){ if(param.getMessageName().equals(msgName) && param.getPart().equals(wsdlPartName)){ if(wrapperStyle && (param.getElement() != null)){ if(param.getElement().equals(element)) return param.getName(); }else if(!wrapperStyle){ return param.getName(); } } } return null; }
Returns:Returns the className.
/** * @return Returns the className. */
public CustomName getClassName() { return className; }
Params:
  • className – The className to set.
/** * @param className The className to set. */
public void setClassName(CustomName className) { this.className = className; } private String wsdlNamespace; private String wsdlLocation; private String node; private String version; private CustomName jaxwsPackage; private List<Parameter> parameters; private Boolean enableWrapperStyle; private Boolean enableAsyncMapping; // private Boolean enableAdditionalHeaderMapping; private Boolean enableMimeContentMapping; private Boolean isProvider; private Set<Element> jaxbBindings; // portType className private CustomName className; //portType WSDLOperation private CustomName methodName; }