com.ibm.wsdl

Class ServiceImpl

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

public class ServiceImpl
extends java.lang.Object
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 Element
docEl
protected List
extElements
protected QName
name
protected Map
ports
static long
serialVersionUID

Method Summary

void
addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.
void
addPort(Port port)
Add a port to this service.
Element
getDocumentationElement()
Get the documentation element.
List
getExtensibilityElements()
Get all the extensibility elements defined here.
Port
getPort(String name)
Get the specified port.
Map
getPorts()
Get all the ports defined here.
QName
getQName()
Get the name of this service.
void
setDocumentationElement(Element docEl)
Set the documentation element for this document.
void
setQName(QName name)
Set the name of this service.
String
toString()

Field Details

docEl

protected Element docEl

extElements

protected List extElements

name

protected QName name

ports

protected Map ports

serialVersionUID

public static final long serialVersionUID
Field Value:
1L

Method Details

addExtensibilityElement

public void addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.
Specified by:
addExtensibilityElement in interface ElementExtensible
Parameters:
extElement - the extensibility element to be added

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

getDocumentationElement

public Element getDocumentationElement()
Get the documentation element. This dependency on org.w3c.dom.Element should eventually be removed when a more appropriate way of representing this information is employed.
Specified by:
getDocumentationElement in interface Service
Returns:
the documentation element

getExtensibilityElements

public List getExtensibilityElements()
Get all the extensibility elements defined here.
Specified by:
getExtensibilityElements in interface ElementExtensible

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

setDocumentationElement

public void setDocumentationElement(Element docEl)
Set the documentation element for this document. This dependency on org.w3c.dom.Element should eventually be removed when a more appropriate way of representing this information is employed.
Specified by:
setDocumentationElement in interface Service
Parameters:
docEl - the documentation element

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()