javax.wsdl_1.6.2.v201012040545

16:37:11.310 INFO  jd.cli.Main - Decompiling javax.wsdl_1.6.2.v201012040545.jar
package com.ibm.wsdl;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Vector;
import javax.wsdl.WSDLElement;
import javax.wsdl.extensions.ExtensibilityElement;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;

public abstract class AbstractWSDLElement
  implements WSDLElement
{
  protected Element docEl;
  protected List extElements = new Vector();
  protected Map extensionAttributes = new HashMap();
  
  public void setDocumentationElement(Element paramElement)
  {
    docEl = paramElement;
  }
  
  public Element getDocumentationElement()
  {
    return docEl;
  }
  
  public void addExtensibilityElement(ExtensibilityElement paramExtensibilityElement)
  {
    extElements.add(paramExtensibilityElement);
  }
  
  public ExtensibilityElement removeExtensibilityElement(ExtensibilityElement paramExtensibilityElement)
  {
    if (extElements.remove(paramExtensibilityElement)) {
      return paramExtensibilityElement;
    }
    return null;
  }
  
  public List getExtensibilityElements()
  {
    return extElements;
  }
  
  public void setExtensionAttribute(QName paramQName, Object paramObject)
  {
    if (paramObject != null) {
      extensionAttributes.put(paramQName, paramObject);
    } else {
      extensionAttributes.remove(paramQName);
    }
  }
  
  public Object getExtensionAttribute(QName paramQName)
  {
    return extensionAttributes.get(paramQName);
  }
  
  public Map getExtensionAttributes()
  {
    return extensionAttributes;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    Iterator localIterator;
    if (extElements.size() > 0)
    {
      localIterator = extElements.iterator();
      if (localIterator.hasNext())
      {
        localStringBuffer.append(localIterator.next());
        while (localIterator.hasNext())
        {
          localStringBuffer.append("\n");
          localStringBuffer.append(localIterator.next());
        }
      }
    }
    if (extensionAttributes.size() > 0)
    {
      localIterator = extensionAttributes.keySet().iterator();
      if (localIterator.hasNext())
      {
        QName localQName = (QName)localIterator.next();
        localStringBuffer.append("extension attribute: ");
        localStringBuffer.append(localQName);
        localStringBuffer.append("=");
        localStringBuffer.append(extensionAttributes.get(localQName));
        while (localIterator.hasNext())
        {
          localQName = (QName)localIterator.next();
          localStringBuffer.append("\n");
          localStringBuffer.append("extension attribute: ");
          localStringBuffer.append(localQName);
          localStringBuffer.append("=");
          localStringBuffer.append(extensionAttributes.get(localQName));
        }
      }
    }
    return localStringBuffer.toString();
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.AbstractWSDLElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.List;
import javax.wsdl.BindingFault;

public class BindingFaultImpl
  extends AbstractWSDLElement
  implements BindingFault
{
  protected String name = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.BINDING_FAULT_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("BindingFault: name=");
    localStringBuffer.append(name);
    String str = super.toString();
    if (!str.equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(str);
    }
    return localStringBuffer.toString();
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.BindingFaultImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
import javax.wsdl.Binding;
import javax.wsdl.BindingInput;
import javax.wsdl.BindingOperation;
import javax.wsdl.BindingOutput;
import javax.wsdl.Operation;
import javax.wsdl.OperationType;
import javax.wsdl.PortType;
import javax.xml.namespace.QName;

public class BindingImpl
  extends AbstractWSDLElement
  implements Binding
{
  protected QName name = null;
  protected PortType portType = null;
  protected List bindingOperations = new Vector();
  protected List nativeAttributeNames = Arrays.asList(Constants.BINDING_ATTR_NAMES);
  protected boolean isUndefined = true;
  public static final long serialVersionUID = 1L;
  
  public void setQName(QName paramQName)
  {
    name = paramQName;
  }
  
  public QName getQName()
  {
    return name;
  }
  
  public void setPortType(PortType paramPortType)
  {
    portType = paramPortType;
  }
  
  public PortType getPortType()
  {
    return portType;
  }
  
  public void addBindingOperation(BindingOperation paramBindingOperation)
  {
    bindingOperations.add(paramBindingOperation);
  }
  
  public BindingOperation getBindingOperation(String paramString1, String paramString2, String paramString3)
  {
    int i = 0;
    Object localObject1 = null;
    Iterator localIterator = bindingOperations.iterator();
    while (localIterator.hasNext())
    {
      BindingOperation localBindingOperation = (BindingOperation)localIterator.next();
      String str1 = localBindingOperation.getName();
      if ((paramString1 != null) && (str1 != null))
      {
        if (!paramString1.equals(str1)) {
          localBindingOperation = null;
        }
      }
      else if ((paramString1 != null) || (str1 != null)) {
        localBindingOperation = null;
      }
      PortType localPortType;
      OperationType localOperationType;
      Object localObject2;
      boolean bool;
      Object localObject3;
      String str2;
      if ((localBindingOperation != null) && (paramString2 != null))
      {
        localPortType = getPortType();
        localOperationType = null;
        if (localPortType != null)
        {
          localObject2 = localPortType.getOperation(paramString1, paramString2, paramString3);
          if (localObject2 != null) {
            localOperationType = ((Operation)localObject2).getStyle();
          }
        }
        localObject2 = str1;
        if (localOperationType == OperationType.REQUEST_RESPONSE) {
          localObject2 = str1 + "Request";
        } else if (localOperationType == OperationType.SOLICIT_RESPONSE) {
          localObject2 = str1 + "Solicit";
        }
        bool = paramString2.equals(localObject2);
        localObject3 = localBindingOperation.getBindingInput();
        if (localObject3 != null)
        {
          str2 = ((BindingInput)localObject3).getName();
          if (str2 == null)
          {
            if ((!bool) && (!paramString2.equals(":none"))) {
              localBindingOperation = null;
            }
          }
          else if (!str2.equals(paramString2)) {
            localBindingOperation = null;
          }
        }
        else
        {
          localBindingOperation = null;
        }
      }
      if ((localBindingOperation != null) && (paramString3 != null))
      {
        localPortType = getPortType();
        localOperationType = null;
        if (localPortType != null)
        {
          localObject2 = localPortType.getOperation(paramString1, paramString2, paramString3);
          if (localObject2 != null) {
            localOperationType = ((Operation)localObject2).getStyle();
          }
        }
        localObject2 = str1;
        if ((localOperationType == OperationType.REQUEST_RESPONSE) || (localOperationType == OperationType.SOLICIT_RESPONSE)) {
          localObject2 = str1 + "Response";
        }
        bool = paramString3.equals(localObject2);
        localObject3 = localBindingOperation.getBindingOutput();
        if (localObject3 != null)
        {
          str2 = ((BindingOutput)localObject3).getName();
          if (str2 == null)
          {
            if ((!bool) && (!paramString3.equals(":none"))) {
              localBindingOperation = null;
            }
          }
          else if (!str2.equals(paramString3)) {
            localBindingOperation = null;
          }
        }
        else
        {
          localBindingOperation = null;
        }
      }
      if (localBindingOperation != null)
      {
        if (i != 0) {
          throw new IllegalArgumentException("Duplicate operation with name=" + paramString1 + (paramString2 != null ? ", inputName=" + paramString2 : "") + (paramString3 != null ? ", outputName=" + paramString3 : "") + ", found in binding '" + getQName() + "'.");
        }
        i = 1;
        localObject1 = localBindingOperation;
      }
    }
    return (BindingOperation)localObject1;
  }
  
  public List getBindingOperations()
  {
    return bindingOperations;
  }
  
  public BindingOperation removeBindingOperation(String paramString1, String paramString2, String paramString3)
  {
    BindingOperation localBindingOperation = getBindingOperation(paramString1, paramString2, paramString3);
    if (bindingOperations.remove(localBindingOperation)) {
      return localBindingOperation;
    }
    return null;
  }
  
  public void setUndefined(boolean paramBoolean)
  {
    isUndefined = paramBoolean;
  }
  
  public boolean isUndefined()
  {
    return isUndefined;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Binding: name=");
    localStringBuffer.append(name);
    if (portType != null)
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(portType);
    }
    if (bindingOperations != null)
    {
      localObject = bindingOperations.iterator();
      while (((Iterator)localObject).hasNext())
      {
        localStringBuffer.append("\n");
        localStringBuffer.append(((Iterator)localObject).next());
      }
    }
    Object localObject = super.toString();
    if (!((String)localObject).equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append((String)localObject);
    }
    return localStringBuffer.toString();
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.BindingImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.List;
import javax.wsdl.BindingInput;

public class BindingInputImpl
  extends AbstractWSDLElement
  implements BindingInput
{
  protected String name = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.BINDING_INPUT_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("BindingInput: name=" + name);
    String str = super.toString();
    if (!str.equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(str);
    }
    return localStringBuffer.toString();
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.BindingInputImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.wsdl.BindingFault;
import javax.wsdl.BindingInput;
import javax.wsdl.BindingOperation;
import javax.wsdl.BindingOutput;
import javax.wsdl.Operation;

public class BindingOperationImpl
  extends AbstractWSDLElement
  implements BindingOperation
{
  protected String name = null;
  protected Operation operation = null;
  protected BindingInput bindingInput = null;
  protected BindingOutput bindingOutput = null;
  protected Map bindingFaults = new HashMap();
  protected List nativeAttributeNames = Arrays.asList(Constants.BINDING_OPERATION_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setOperation(Operation paramOperation)
  {
    operation = paramOperation;
  }
  
  public Operation getOperation()
  {
    return operation;
  }
  
  public void setBindingInput(BindingInput paramBindingInput)
  {
    bindingInput = paramBindingInput;
  }
  
  public BindingInput getBindingInput()
  {
    return bindingInput;
  }
  
  public void setBindingOutput(BindingOutput paramBindingOutput)
  {
    bindingOutput = paramBindingOutput;
  }
  
  public BindingOutput getBindingOutput()
  {
    return bindingOutput;
  }
  
  public void addBindingFault(BindingFault paramBindingFault)
  {
    bindingFaults.put(paramBindingFault.getName(), paramBindingFault);
  }
  
  public BindingFault getBindingFault(String paramString)
  {
    return (BindingFault)bindingFaults.get(paramString);
  }
  
  public BindingFault removeBindingFault(String paramString)
  {
    return (BindingFault)bindingFaults.remove(paramString);
  }
  
  public Map getBindingFaults()
  {
    return bindingFaults;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("BindingOperation: name=" + name);
    if (bindingInput != null) {
      localStringBuffer.append("\n" + bindingInput);
    }
    if (bindingOutput != null) {
      localStringBuffer.append("\n" + bindingOutput);
    }
    if (bindingFaults != null)
    {
      localObject = bindingFaults.values().iterator();
      while (((Iterator)localObject).hasNext()) {
        localStringBuffer.append("\n" + ((Iterator)localObject).next());
      }
    }
    Object localObject = super.toString();
    if (!((String)localObject).equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append((String)localObject);
    }
    return localStringBuffer.toString();
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.BindingOperationImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.List;
import javax.wsdl.BindingOutput;

public class BindingOutputImpl
  extends AbstractWSDLElement
  implements BindingOutput
{
  protected String name = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.BINDING_OUTPUT_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("BindingOutput: name=" + name);
    String str = super.toString();
    if (!str.equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(str);
    }
    return localStringBuffer.toString();
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.BindingOutputImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import javax.xml.namespace.QName;

public class Constants
{
  public static final String NS_URI_WSDL = "http://schemas.xmlsoap.org/wsdl/";
  public static final String NS_URI_XMLNS = "http://www.w3.org/2000/xmlns/";
  public static final String ELEM_DEFINITIONS = "definitions";
  public static final String ELEM_IMPORT = "import";
  public static final String ELEM_TYPES = "types";
  public static final String ELEM_MESSAGE = "message";
  public static final String ELEM_PORT_TYPE = "portType";
  public static final String ELEM_BINDING = "binding";
  public static final String ELEM_SERVICE = "service";
  public static final String ELEM_PART = "part";
  public static final String ELEM_OPERATION = "operation";
  public static final String ELEM_INPUT = "input";
  public static final String ELEM_OUTPUT = "output";
  public static final String ELEM_FAULT = "fault";
  public static final String ELEM_PORT = "port";
  public static final String ELEM_DOCUMENTATION = "documentation";
  public static final QName Q_ELEM_DEFINITIONS = new QName("http://schemas.xmlsoap.org/wsdl/", "definitions");
  public static final QName Q_ELEM_IMPORT = new QName("http://schemas.xmlsoap.org/wsdl/", "import");
  public static final QName Q_ELEM_TYPES = new QName("http://schemas.xmlsoap.org/wsdl/", "types");
  public static final QName Q_ELEM_MESSAGE = new QName("http://schemas.xmlsoap.org/wsdl/", "message");
  public static final QName Q_ELEM_PORT_TYPE = new QName("http://schemas.xmlsoap.org/wsdl/", "portType");
  public static final QName Q_ELEM_BINDING = new QName("http://schemas.xmlsoap.org/wsdl/", "binding");
  public static final QName Q_ELEM_SERVICE = new QName("http://schemas.xmlsoap.org/wsdl/", "service");
  public static final QName Q_ELEM_PART = new QName("http://schemas.xmlsoap.org/wsdl/", "part");
  public static final QName Q_ELEM_OPERATION = new QName("http://schemas.xmlsoap.org/wsdl/", "operation");
  public static final QName Q_ELEM_INPUT = new QName("http://schemas.xmlsoap.org/wsdl/", "input");
  public static final QName Q_ELEM_OUTPUT = new QName("http://schemas.xmlsoap.org/wsdl/", "output");
  public static final QName Q_ELEM_FAULT = new QName("http://schemas.xmlsoap.org/wsdl/", "fault");
  public static final QName Q_ELEM_PORT = new QName("http://schemas.xmlsoap.org/wsdl/", "port");
  public static final QName Q_ELEM_DOCUMENTATION = new QName("http://schemas.xmlsoap.org/wsdl/", "documentation");
  public static final String ATTR_NAME = "name";
  public static final String ATTR_TARGET_NAMESPACE = "targetNamespace";
  public static final String ATTR_ELEMENT = "element";
  public static final String ATTR_TYPE = "type";
  public static final String ATTR_MESSAGE = "message";
  public static final String ATTR_PARAMETER_ORDER = "parameterOrder";
  public static final String ATTR_BINDING = "binding";
  public static final String ATTR_XMLNS = "xmlns";
  public static final String ATTR_NAMESPACE = "namespace";
  public static final String ATTR_LOCATION = "location";
  public static final String ATTR_REQUIRED = "required";
  public static final String[] DEFINITION_ATTR_NAMES = { "name", "targetNamespace" };
  public static final String[] PART_ATTR_NAMES = { "name", "type", "element" };
  public static final String[] BINDING_ATTR_NAMES = { "name", "type" };
  public static final String[] BINDING_FAULT_ATTR_NAMES = { "name" };
  public static final String[] BINDING_INPUT_ATTR_NAMES = { "name" };
  public static final String[] BINDING_OPERATION_ATTR_NAMES = { "name" };
  public static final String[] BINDING_OUTPUT_ATTR_NAMES = { "name" };
  public static final String[] FAULT_ATTR_NAMES = { "name", "message" };
  public static final String[] IMPORT_ATTR_NAMES = { "namespace", "location" };
  public static final String[] INPUT_ATTR_NAMES = { "name", "message" };
  public static final String[] MESSAGE_ATTR_NAMES = { "name" };
  public static final String[] OPERATION_ATTR_NAMES = { "name", "parameterOrder" };
  public static final String[] OUTPUT_ATTR_NAMES = { "name", "message" };
  public static final String[] PORT_ATTR_NAMES = { "name", "binding" };
  public static final String[] PORT_TYPE_ATTR_NAMES = { "name" };
  public static final String[] SERVICE_ATTR_NAMES = { "name" };
  public static final String[] TYPES_ATTR_NAMES = new String[0];
  public static final QName Q_ATTR_REQUIRED = new QName("http://schemas.xmlsoap.org/wsdl/", "required");
  public static final String XML_DECL_DEFAULT = "UTF-8";
  public static final String XML_DECL_START = "<?xml version=\"1.0\" encoding=\"";
  public static final String XML_DECL_END = "\"?>";
  public static final String FEATURE_VERBOSE = "javax.wsdl.verbose";
  public static final String FEATURE_IMPORT_DOCUMENTS = "javax.wsdl.importDocuments";
  public static final String NONE = ":none";
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.Constants
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.Vector;
import javax.wsdl.Binding;
import javax.wsdl.BindingFault;
import javax.wsdl.BindingInput;
import javax.wsdl.BindingOperation;
import javax.wsdl.BindingOutput;
import javax.wsdl.Definition;
import javax.wsdl.Fault;
import javax.wsdl.Import;
import javax.wsdl.Input;
import javax.wsdl.Message;
import javax.wsdl.Operation;
import javax.wsdl.Output;
import javax.wsdl.Part;
import javax.wsdl.Port;
import javax.wsdl.PortType;
import javax.wsdl.Service;
import javax.wsdl.Types;
import javax.wsdl.extensions.ExtensionRegistry;
import javax.xml.namespace.QName;

public class DefinitionImpl
  extends AbstractWSDLElement
  implements Definition
{
  protected String documentBaseURI = null;
  protected QName name = null;
  protected String targetNamespace = null;
  protected Map namespaces = new HashMap();
  protected Map imports = new HashMap();
  protected Types types = null;
  protected Map messages = new HashMap();
  protected Map bindings = new HashMap();
  protected Map portTypes = new HashMap();
  protected Map services = new HashMap();
  protected List nativeAttributeNames = Arrays.asList(Constants.DEFINITION_ATTR_NAMES);
  protected ExtensionRegistry extReg = null;
  public static final long serialVersionUID = 1L;
  
  public void setDocumentBaseURI(String paramString)
  {
    documentBaseURI = paramString;
  }
  
  public String getDocumentBaseURI()
  {
    return documentBaseURI;
  }
  
  public void setQName(QName paramQName)
  {
    name = paramQName;
  }
  
  public QName getQName()
  {
    return name;
  }
  
  public void setTargetNamespace(String paramString)
  {
    targetNamespace = paramString;
  }
  
  public String getTargetNamespace()
  {
    return targetNamespace;
  }
  
  public void addNamespace(String paramString1, String paramString2)
  {
    if (paramString1 == null) {
      paramString1 = "";
    }
    if (paramString2 != null) {
      namespaces.put(paramString1, paramString2);
    } else {
      namespaces.remove(paramString1);
    }
  }
  
  public String getNamespace(String paramString)
  {
    if (paramString == null) {
      paramString = "";
    }
    return (String)namespaces.get(paramString);
  }
  
  public String removeNamespace(String paramString)
  {
    if (paramString == null) {
      paramString = "";
    }
    return (String)namespaces.remove(paramString);
  }
  
  public String getPrefix(String paramString)
  {
    if (paramString == null) {
      return null;
    }
    Iterator localIterator = namespaces.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      String str1 = (String)localEntry.getKey();
      String str2 = (String)localEntry.getValue();
      if (paramString.equals(str2)) {
        return str1;
      }
    }
    return null;
  }
  
  public Map getNamespaces()
  {
    return namespaces;
  }
  
  public void setTypes(Types paramTypes)
  {
    types = paramTypes;
  }
  
  public Types getTypes()
  {
    return types;
  }
  
  public void addImport(Import paramImport)
  {
    String str = paramImport.getNamespaceURI();
    Object localObject = (List)imports.get(str);
    if (localObject == null)
    {
      localObject = new Vector();
      imports.put(str, localObject);
    }
    ((List)localObject).add(paramImport);
  }
  
  public Import removeImport(Import paramImport)
  {
    String str = paramImport.getNamespaceURI();
    List localList = (List)imports.get(str);
    Import localImport = null;
    if ((localList != null) && (localList.remove(paramImport))) {
      localImport = paramImport;
    }
    return localImport;
  }
  
  public List getImports(String paramString)
  {
    return (List)imports.get(paramString);
  }
  
  public Map getImports()
  {
    return imports;
  }
  
  public void addMessage(Message paramMessage)
  {
    messages.put(paramMessage.getQName(), paramMessage);
  }
  
  public Message getMessage(QName paramQName)
  {
    Message localMessage = (Message)messages.get(paramQName);
    if ((localMessage == null) && (paramQName != null)) {
      localMessage = (Message)getFromImports("message", paramQName);
    }
    return localMessage;
  }
  
  public Message removeMessage(QName paramQName)
  {
    return (Message)messages.remove(paramQName);
  }
  
  public Map getMessages()
  {
    return messages;
  }
  
  public void addBinding(Binding paramBinding)
  {
    bindings.put(paramBinding.getQName(), paramBinding);
  }
  
  public Binding getBinding(QName paramQName)
  {
    Binding localBinding = (Binding)bindings.get(paramQName);
    if ((localBinding == null) && (paramQName != null)) {
      localBinding = (Binding)getFromImports("binding", paramQName);
    }
    return localBinding;
  }
  
  public Binding removeBinding(QName paramQName)
  {
    return (Binding)bindings.remove(paramQName);
  }
  
  public Map getBindings()
  {
    return bindings;
  }
  
  public void addPortType(PortType paramPortType)
  {
    portTypes.put(paramPortType.getQName(), paramPortType);
  }
  
  public PortType getPortType(QName paramQName)
  {
    PortType localPortType = (PortType)portTypes.get(paramQName);
    if ((localPortType == null) && (paramQName != null)) {
      localPortType = (PortType)getFromImports("portType", paramQName);
    }
    return localPortType;
  }
  
  public PortType removePortType(QName paramQName)
  {
    return (PortType)portTypes.remove(paramQName);
  }
  
  public Map getPortTypes()
  {
    return portTypes;
  }
  
  public void addService(Service paramService)
  {
    services.put(paramService.getQName(), paramService);
  }
  
  public Service getService(QName paramQName)
  {
    Service localService = (Service)services.get(paramQName);
    if ((localService == null) && (paramQName != null)) {
      localService = (Service)getFromImports("service", paramQName);
    }
    return localService;
  }
  
  public Service removeService(QName paramQName)
  {
    return (Service)services.remove(paramQName);
  }
  
  public Map getServices()
  {
    return services;
  }
  
  public Binding createBinding()
  {
    return new BindingImpl();
  }
  
  public BindingFault createBindingFault()
  {
    return new BindingFaultImpl();
  }
  
  public BindingInput createBindingInput()
  {
    return new BindingInputImpl();
  }
  
  public BindingOperation createBindingOperation()
  {
    return new BindingOperationImpl();
  }
  
  public BindingOutput createBindingOutput()
  {
    return new BindingOutputImpl();
  }
  
  public Fault createFault()
  {
    return new FaultImpl();
  }
  
  public Import createImport()
  {
    return new ImportImpl();
  }
  
  public Input createInput()
  {
    return new InputImpl();
  }
  
  public Message createMessage()
  {
    return new MessageImpl();
  }
  
  public Operation createOperation()
  {
    return new OperationImpl();
  }
  
  public Output createOutput()
  {
    return new OutputImpl();
  }
  
  public Part createPart()
  {
    return new PartImpl();
  }
  
  public Port createPort()
  {
    return new PortImpl();
  }
  
  public PortType createPortType()
  {
    return new PortTypeImpl();
  }
  
  public Service createService()
  {
    return new ServiceImpl();
  }
  
  public Types createTypes()
  {
    return new TypesImpl();
  }
  
  public void setExtensionRegistry(ExtensionRegistry paramExtensionRegistry)
  {
    extReg = paramExtensionRegistry;
  }
  
  public ExtensionRegistry getExtensionRegistry()
  {
    return extReg;
  }
  
  private Object getFromImports(String paramString, QName paramQName)
  {
    Object localObject = null;
    List localList = getImports(paramQName.getNamespaceURI());
    if (localList != null)
    {
      Iterator localIterator = localList.iterator();
      while (localIterator.hasNext())
      {
        Import localImport = (Import)localIterator.next();
        if (localImport != null)
        {
          Definition localDefinition = localImport.getDefinition();
          if (localDefinition != null)
          {
            if (paramString == "service") {
              localObject = localDefinition.getService(paramQName);
            } else if (paramString == "message") {
              localObject = localDefinition.getMessage(paramQName);
            } else if (paramString == "binding") {
              localObject = localDefinition.getBinding(paramQName);
            } else if (paramString == "portType") {
              localObject = localDefinition.getPortType(paramQName);
            }
            if (localObject != null) {
              return localObject;
            }
          }
        }
      }
    }
    return localObject;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Definition: name=" + name + " targetNamespace=" + targetNamespace);
    if (imports != null)
    {
      localObject = imports.values().iterator();
      while (((Iterator)localObject).hasNext()) {
        localStringBuffer.append("\n" + ((Iterator)localObject).next());
      }
    }
    if (types != null) {
      localStringBuffer.append("\n" + types);
    }
    if (messages != null)
    {
      localObject = messages.values().iterator();
      while (((Iterator)localObject).hasNext()) {
        localStringBuffer.append("\n" + ((Iterator)localObject).next());
      }
    }
    if (portTypes != null)
    {
      localObject = portTypes.values().iterator();
      while (((Iterator)localObject).hasNext()) {
        localStringBuffer.append("\n" + ((Iterator)localObject).next());
      }
    }
    if (bindings != null)
    {
      localObject = bindings.values().iterator();
      while (((Iterator)localObject).hasNext()) {
        localStringBuffer.append("\n" + ((Iterator)localObject).next());
      }
    }
    if (services != null)
    {
      localObject = services.values().iterator();
      while (((Iterator)localObject).hasNext()) {
        localStringBuffer.append("\n" + ((Iterator)localObject).next());
      }
    }
    Object localObject = super.toString();
    if (!((String)localObject).equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append((String)localObject);
    }
    return localStringBuffer.toString();
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
  
  public Map getAllBindings()
  {
    HashMap localHashMap = new HashMap(getBindings());
    Map localMap = getImports();
    Iterator localIterator1 = localMap.values().iterator();
    while (localIterator1.hasNext())
    {
      Vector localVector = (Vector)localIterator1.next();
      Iterator localIterator2 = localVector.iterator();
      while (localIterator2.hasNext())
      {
        Import localImport = (Import)localIterator2.next();
        Definition localDefinition = localImport.getDefinition();
        if (localDefinition != null) {
          localHashMap.putAll(localDefinition.getAllBindings());
        }
      }
    }
    return localHashMap;
  }
  
  public Map getAllPortTypes()
  {
    HashMap localHashMap = new HashMap(getPortTypes());
    Map localMap = getImports();
    Iterator localIterator1 = localMap.values().iterator();
    while (localIterator1.hasNext())
    {
      Vector localVector = (Vector)localIterator1.next();
      Iterator localIterator2 = localVector.iterator();
      while (localIterator2.hasNext())
      {
        Import localImport = (Import)localIterator2.next();
        Definition localDefinition = localImport.getDefinition();
        if (localDefinition != null) {
          localHashMap.putAll(localDefinition.getAllPortTypes());
        }
      }
    }
    return localHashMap;
  }
  
  public Map getAllServices()
  {
    HashMap localHashMap = new HashMap(getServices());
    Map localMap = getImports();
    Iterator localIterator1 = localMap.values().iterator();
    while (localIterator1.hasNext())
    {
      Vector localVector = (Vector)localIterator1.next();
      Iterator localIterator2 = localVector.iterator();
      while (localIterator2.hasNext())
      {
        Import localImport = (Import)localIterator2.next();
        Definition localDefinition = localImport.getDefinition();
        if (localDefinition != null) {
          localHashMap.putAll(localDefinition.getAllServices());
        }
      }
    }
    return localHashMap;
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.DefinitionImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.List;
import javax.wsdl.Fault;
import javax.wsdl.Message;

public class FaultImpl
  extends AbstractWSDLElement
  implements Fault
{
  protected String name = null;
  protected Message message = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.FAULT_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setMessage(Message paramMessage)
  {
    message = paramMessage;
  }
  
  public Message getMessage()
  {
    return message;
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Fault: name=" + name);
    if (message != null) {
      localStringBuffer.append("\n" + message);
    }
    String str = super.toString();
    if (!str.equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(str);
    }
    return localStringBuffer.toString();
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.FaultImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.List;
import javax.wsdl.Definition;
import javax.wsdl.Import;

public class ImportImpl
  extends AbstractWSDLElement
  implements Import
{
  protected String namespaceURI = null;
  protected String locationURI = null;
  protected Definition definition = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.IMPORT_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setNamespaceURI(String paramString)
  {
    namespaceURI = paramString;
  }
  
  public String getNamespaceURI()
  {
    return namespaceURI;
  }
  
  public void setLocationURI(String paramString)
  {
    locationURI = paramString;
  }
  
  public String getLocationURI()
  {
    return locationURI;
  }
  
  public void setDefinition(Definition paramDefinition)
  {
    definition = paramDefinition;
  }
  
  public Definition getDefinition()
  {
    return definition;
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Import:");
    if (namespaceURI != null) {
      localStringBuffer.append("\nnamespaceURI=" + namespaceURI);
    }
    if (locationURI != null) {
      localStringBuffer.append("\nlocationURI=" + locationURI);
    }
    if (definition != null)
    {
      localStringBuffer.append("\ndefinition=" + definition.getDocumentBaseURI());
      localStringBuffer.append("\ndefinition namespaceURI=" + definition.getTargetNamespace());
    }
    String str = super.toString();
    if (!str.equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(str);
    }
    return localStringBuffer.toString();
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.ImportImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.List;
import javax.wsdl.Input;
import javax.wsdl.Message;

public class InputImpl
  extends AbstractWSDLElement
  implements Input
{
  protected String name = null;
  protected Message message = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.INPUT_ATTR_NAMES);
  public static final long serialVersionUID = 1L;
  
  public void setName(String paramString)
  {
    name = paramString;
  }
  
  public String getName()
  {
    return name;
  }
  
  public void setMessage(Message paramMessage)
  {
    message = paramMessage;
  }
  
  public Message getMessage()
  {
    return message;
  }
  
  public List getNativeAttributeNames()
  {
    return nativeAttributeNames;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Input: name=" + name);
    if (message != null) {
      localStringBuffer.append("\n" + message);
    }
    String str = super.toString();
    if (!str.equals(""))
    {
      localStringBuffer.append("\n");
      localStringBuffer.append(str);
    }
    return localStringBuffer.toString();
  }
}

/* Location:
 * Qualified Name:     com.ibm.wsdl.InputImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package com.ibm.wsdl;

import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.wsdl.Message;
import javax.wsdl.Part;
import javax.xml.namespace.QName;

public class MessageImpl
  extends AbstractWSDLElement
  implements Message
{
  protected Map parts = new HashMap();
  protected List additionOrderOfParts = new Vector();
  protected QName name = null;
  protected List nativeAttributeNames = Arrays.asList(Constants.MESSAGE_ATTR_NAMES);
  protected boolean isUndefined = true;
  public static final long serialVersionUID = 1L;
  
  public void setQName(QName paramQName)
  {
    name = paramQName;
  }
  
  public QName getQName()
  {
    return name;
  }
  
  public void addPart(Part paramPart)
  {
    String str = paramPart.getName();
    parts.put(str, paramPart);
    additionOrderOfParts.add(str);
  }
  
  public Part getPart(String paramString)
  {
    return (Part)parts.get(paramString);
  }
  
  public Part removePart(String paramString)
  {
    return (Part)parts.remove(paramString);
  }
  
  public Map getParts()
  {
    return parts;
  }
  
  public List getOrderedParts(List paramList)
  {
    Vector localVector = new Vector();
    if (paramList == null) {
      paramList = additionOrderOfParts;
    }
    Iterator localIterator = paramList.iterator();
    while (localIterator.hasNext())
    {
      String str = (String)localIterator.next();
      Part localPart = getPart(str);
      if (localPart != null) {
        localVector.add(localPart);
      }
    }
    return localVector;
  }
  
  public void setUndefined(boolean paramBoolean)
  {
    isUndefined = paramBoolean;
  }
  
  public boolean isUndefined()
  {
    return isUndefined;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("Message: name=" + name);
    if (par
1 2 3 4 5 6 7 8 9 10

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd