com.ibm.wsdl
Class ServiceImpl

java.lang.Object
  extended by com.ibm.wsdl.AbstractWSDLElement
      extended by com.ibm.wsdl.ServiceImpl
All Implemented Interfaces:
java.io.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:
Serialized Form

Field Summary
protected  QName name
           
protected  java.util.List nativeAttributeNames
           
protected  java.util.Map ports
           
static long serialVersionUID
           
 
Fields inherited from class com.ibm.wsdl.AbstractWSDLElement
docEl, extElements, extensionAttributes
 
Fields inherited from interface javax.wsdl.extensions.AttributeExtensible
LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE
 
Constructor Summary
ServiceImpl()
           
 
Method Summary
 void addPort(Port port)
          Add a port to this service.
 java.util.List getNativeAttributeNames()
          Get the list of local attribute names defined for this element in the WSDL specification.
 Port getPort(java.lang.String name)
          Get the specified port.
 java.util.Map getPorts()
          Get all the ports defined here.
 QName getQName()
          Get the name of this service.
 Port removePort(java.lang.String name)
          Remove the specified port.
 void setQName(QName name)
          Set the name of this service.
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.wsdl.AbstractWSDLElement
addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.wsdl.WSDLElement
getDocumentationElement, setDocumentationElement
 
Methods inherited from interface javax.wsdl.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, setExtensionAttribute
 
Methods inherited from interface javax.wsdl.extensions.ElementExtensible
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElement
 

Field Detail

name

protected QName name

ports

protected java.util.Map ports

nativeAttributeNames

protected java.util.List nativeAttributeNames

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ServiceImpl

public ServiceImpl()
Method Detail

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(java.lang.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(java.lang.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 java.util.Map getPorts()
Get all the ports defined here.

Specified by:
getPorts in interface Service

toString

public java.lang.String toString()
Overrides:
toString in class AbstractWSDLElement

getNativeAttributeNames

public java.util.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


Copyright ? 2003,2006 IBM. All Rights Reserved.