View Javadoc

    1   package org.codehaus.xfire.wsdl11.builder;
    2
    3   import org.codehaus.xfire.service.Service;
    4
    5   /***
    6    * Information used when building WSDL 1.1 documents.
    7    *
    8    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    9    */
    10  public class WSDLBuilderInfo
    11  {
    12      private String serviceName;
    13      private String portType;
    14      private String targetNamespace;
    15      public static final String KEY = WSDLBuilderInfo.class.getName();
    16
    17      public WSDLBuilderInfo(Service service)
    18      {
    19          serviceName = service.getName();
    20          portType = service.getName() + "PortType";
    21          targetNamespace = service.getServiceInfo().getName().getNamespaceURI();
    22      }
    23
    24      public String getTargetNamespace()
    25      {
    26          return targetNamespace;
    27      }
    28
    29      public void setTargetNamespace(String targetNamespace)
    30      {
    31          this.targetNamespace = targetNamespace;
    32      }
    33
    34      public String getServiceName()
    35      {
    36          return serviceName;
    37      }
    38
    39      public void setServiceName(String serviceName)
    40      {
    41          this.serviceName = serviceName;
    42      }
    43
    44      public String getPortType()
    45      {
    46          return portType;
    47      }
    48
    49      public void setPortType(String portType)
    50      {
    51          this.portType = portType;
    52      }
    53  }