Package com.ibm.wsdl

Class ServiceImpl

All Implemented Interfaces:
Serializable, AttributeExtensible, ElementExtensible, Service, WSDLElement

public class ServiceImpl extends AbstractWSDLElement implements Service
This class represents a service, which groups related ports to provide some functionality.
Author:
Paul Fremantle, Nirmal Mukhi, Matthew J. Duftler
See Also:
  • Field Details

    • name

      protected QName name
    • ports

      protected Map ports
    • nativeAttributeNames

      protected List nativeAttributeNames
    • serialVersionUID

      public static final long serialVersionUID
      See Also:
  • Constructor Details

    • ServiceImpl

      public ServiceImpl()
  • Method Details

    • setQName

      public void setQName(QName name)
      Set the name of this service.
      Specified by:
      setQName in interface Service
      Parameters:
      name - the desired name
    • getQName

      public QName getQName()
      Get the name of this service.
      Specified by:
      getQName in interface Service
      Returns:
      the service name
    • addPort

      public void addPort(Port port)
      Add a port to this service.
      Specified by:
      addPort in interface Service
      Parameters:
      port - the port to be added
    • getPort

      public Port getPort(String name)
      Get the specified port.
      Specified by:
      getPort in interface Service
      Parameters:
      name - the name of the desired port.
      Returns:
      the corresponding port, or null if there wasn't any matching port
    • removePort

      public Port removePort(String name)
      Remove the specified port.
      Specified by:
      removePort in interface Service
      Parameters:
      name - the name of the port to be removed.
      Returns:
      the port which was removed
    • getPorts

      public Map getPorts()
      Get all the ports defined here.
      Specified by:
      getPorts in interface Service
    • toString

      public String toString()
      Overrides:
      toString in class AbstractWSDLElement
    • getNativeAttributeNames

      public List getNativeAttributeNames()
      Get the list of local attribute names defined for this element in the WSDL specification.
      Specified by:
      getNativeAttributeNames in interface AttributeExtensible
      Returns:
      a List of Strings, one for each local attribute name