Package com.ibm.wsdl
Class ServiceImpl
java.lang.Object
com.ibm.wsdl.AbstractWSDLElement
com.ibm.wsdl.ServiceImpl
- All Implemented Interfaces:
java.io.Serializable
,AttributeExtensible
,ElementExtensible
,Service
,WSDLElement
This class represents a service, which groups related
ports to provide some functionality.
- Author:
- Paul Fremantle, Nirmal Mukhi, Matthew J. Duftler
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected QName
protected java.util.List
protected java.util.Map
static final long
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a port to this service.java.util.List
Get the list of local attribute names defined for this element in the WSDL specification.getPort
(java.lang.String name) Get the specified port.java.util.Map
getPorts()
Get all the ports defined here.getQName()
Get the name of this service.removePort
(java.lang.String name) Remove the specified port.void
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.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, setExtensionAttribute
Methods inherited from interface javax.wsdl.extensions.ElementExtensible
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElement
Methods inherited from interface javax.wsdl.WSDLElement
getDocumentationElement, setDocumentationElement
-
Field Details
-
name
-
ports
protected java.util.Map ports -
nativeAttributeNames
protected java.util.List nativeAttributeNames -
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ServiceImpl
public ServiceImpl()
-
-
Method Details
-
setQName
Set the name of this service. -
getQName
Get the name of this service. -
addPort
Add a port to this service. -
getPort
Get the specified port. -
removePort
Remove the specified port.- Specified by:
removePort
in interfaceService
- 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. -
toString
public java.lang.String toString()- Overrides:
toString
in classAbstractWSDLElement
-
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 interfaceAttributeExtensible
- Returns:
- a List of Strings, one for each local attribute name
-