com.ibm.wsdl
Class PortTypeImpl
java.lang.Object
com.ibm.wsdl.PortTypeImpl
- AttributeExtensible, PortType, java.io.Serializable
public class PortTypeImpl
extends java.lang.Object
This class represents a port type. It contains information about
operations associated with this port type.
- Paul Fremantle
- Nirmal Mukhi
- Matthew J. Duftler
docEl
protected Element docEl
extensionAttributes
protected Map extensionAttributes
isUndefined
protected boolean isUndefined
nativeAttributeNames
protected List nativeAttributeNames
operations
protected List operations
serialVersionUID
public static final long serialVersionUID
- 1L
addOperation
public void addOperation(Operation operation)
Add an operation to this port type.
- addOperation in interface PortType
operation
- the operation 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.
- getDocumentationElement in interface PortType
- the documentation element
getExtensionAttribute
public Object getExtensionAttribute(QName name)
Retrieve an extension attribute from this element. If the extension
attribute is not defined, null is returned.
- getExtensionAttribute in interface AttributeExtensible
name
- the extension attribute name
- 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.
setExtensionAttribute(QName,Object)
, getExtensionAttributes()
, ExtensionRegistry.registerExtensionAttributeType
, ExtensionRegistry.queryExtensionAttributeType
getNativeAttributeNames
public List getNativeAttributeNames()
Get the list of local attribute names defined for this element in
the WSDL specification.
- getNativeAttributeNames in interface AttributeExtensible
- a List of Strings, one for each local attribute name
getOperation
public Operation getOperation(String name,
String inputName,
String outputName)
Get the specified operation. Note that operation names can
be overloaded within a PortType. In case of overloading, the
names of the input and output messages can be used to further
refine the search.
- getOperation in interface PortType
name
- the name of the desired operation.inputName
- the name of the input message; if this is null
it will be ignored.outputName
- the name of the output message; if this is null
it will be ignored.
- the corresponding operation, or null if there wasn't
any matching operation
getOperations
public List getOperations()
Get all the operations defined here.
- getOperations in interface PortType
getQName
public QName getQName()
Get the name of this port type.
- getQName in interface PortType
- the port type 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.
- setDocumentationElement in interface PortType
docEl
- the documentation element
setExtensionAttribute
public void setExtensionAttribute(QName name,
Object value)
Set an extension attribute on this element. Pass in a null value to remove
an extension attribute.
- setExtensionAttribute in interface AttributeExtensible
name
- the extension attribute namevalue
- the extension attribute value. Can be a String, a QName, a
List of Strings, or a List of QNames.
getExtensionAttribute(QName)
, getExtensionAttributes()
, ExtensionRegistry.registerExtensionAttributeType
, ExtensionRegistry.queryExtensionAttributeType
setQName
public void setQName(QName name)
Set the name of this port type.
- setQName in interface PortType
name
- the desired name
toString
public String toString()
Copyright B) 2003,2005 IBM. All Rights Reserved.