com.ibm.wsdl
Class ServiceImpl

java.lang.Object
  extended bycom.ibm.wsdl.ServiceImpl
All Implemented Interfaces:
AttributeExtensible, java.io.Serializable, Service

public class ServiceImpl
extends java.lang.Object
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  org.w3c.dom.Element docEl
           
protected  java.util.List extElements
           
protected  java.util.Map extensionAttributes
           
protected  QName name
           
protected  java.util.List nativeAttributeNames
           
protected  java.util.Map ports
           
static long serialVersionUID
           
 
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 addExtensibilityElement(ExtensibilityElement extElement)
          Add an extensibility element.
 void addPort(Port port)
          Add a port to this service.
 org.w3c.dom.Element getDocumentationElement()
          Get the documentation element.
 java.util.List getExtensibilityElements()
          Get all the extensibility elements defined here.
 java.lang.Object getExtensionAttribute(QName name)
          Retrieve an extension attribute from this element.
 java.util.Map getExtensionAttributes()
          Get the map containing all the extension attributes defined on this element.
 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.
 void setDocumentationElement(org.w3c.dom.Element docEl)
          Set the documentation element for this document.
 void setExtensionAttribute(QName name, java.lang.Object value)
          Set an extension attribute on this element.
 void setQName(QName name)
          Set the name of this service.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected QName name

ports

protected java.util.Map ports

docEl

protected org.w3c.dom.Element docEl

extElements

protected java.util.List extElements

extensionAttributes

protected java.util.Map extensionAttributes

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

getPorts

public java.util.Map getPorts()
Get all the ports defined here.

Specified by:
getPorts in interface Service

setDocumentationElement

public void setDocumentationElement(org.w3c.dom.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

getDocumentationElement

public org.w3c.dom.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

addExtensibilityElement

public void addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.

Specified by:
addExtensibilityElement in interface Service
Parameters:
extElement - the extensibility element to be added

getExtensibilityElements

public java.util.List getExtensibilityElements()
Get all the extensibility elements defined here.

Specified by:
getExtensibilityElements in interface Service

setExtensionAttribute

public void setExtensionAttribute(QName name,
                                  java.lang.Object value)
Set an extension attribute on this element. Pass in a null value to remove an extension attribute.

Specified by:
setExtensionAttribute in interface AttributeExtensible
Parameters:
name - the extension attribute name
value - the extension attribute value. Can be a String, a QName, a List of Strings, or a List of QNames.
See Also:
getExtensionAttribute(javax.xml.namespace.QName), getExtensionAttributes(), ExtensionRegistry.registerExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName, int), ExtensionRegistry.queryExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName)

getExtensionAttribute

public java.lang.Object getExtensionAttribute(QName name)
Retrieve an extension attribute from this element. If the extension attribute is not defined, null is returned.

Specified by:
getExtensionAttribute in interface AttributeExtensible
Parameters:
name - the extension attribute name
Returns:
the value of the extension attribute, or null if it is not defined. Can be a String, a QName, a List of Strings, or a List of QNames.
See Also:
setExtensionAttribute(javax.xml.namespace.QName, java.lang.Object), getExtensionAttributes(), ExtensionRegistry.registerExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName, int), ExtensionRegistry.queryExtensionAttributeType(java.lang.Class, javax.xml.namespace.QName)

getExtensionAttributes

public java.util.Map getExtensionAttributes()
Get the map containing all the extension attributes defined on this element. The keys are the qnames of the attributes.

Specified by:
getExtensionAttributes in interface AttributeExtensible
Returns:
a map containing all the extension attributes defined on this element
See Also:
setExtensionAttribute(javax.xml.namespace.QName, java.lang.Object), getExtensionAttribute(javax.xml.namespace.QName)

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

toString

public java.lang.String toString()


Copyright ? 2003 IBM. All Rights Reserved.