com.ibm.wsdl

Class ServiceImpl

Implemented Interfaces:
java.io.Serializable, AttributeExtensible, ElementExtensible, java.io.Serializable, Service, WSDLElement

public class ServiceImpl
extends AbstractWSDLElement
implements Service

This class represents a service, which groups related ports to provide some functionality.
Authors:
Paul Fremantle
Nirmal Mukhi
Matthew J. Duftler

Field Summary

protected QName
name
protected List
nativeAttributeNames
protected 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

Method Summary

void
addPort(Port port)
Add a port to this service.
List
getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.
Port
getPort(String name)
Get the specified port.
Map
getPorts()
Get all the ports defined here.
QName
getQName()
Get the name of this service.
Port
removePort(String name)
Remove the specified port.
void
setQName(QName name)
Set the name of this service.
String
toString()

Methods inherited from class com.ibm.wsdl.AbstractWSDLElement

addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttribute, toString

Field Details

name

protected QName name

nativeAttributeNames

protected List nativeAttributeNames

ports

protected Map ports

serialVersionUID

public static final long serialVersionUID
Field Value:
1L

Method Details

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

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

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

getPorts

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

getQName

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

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

setQName

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

toString

public String toString()
Overrides:
toString in interface AbstractWSDLElement

Copyright B) 2003,2006 IBM. All Rights Reserved.