com.ibm.wsdl

Class BindingImpl

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

public class BindingImpl
extends java.lang.Object
implements Binding

This class represents a port type binding and describes the protocol required for using operations in a port type.

Authors:
Paul Fremantle
Nirmal Mukhi
Matthew J. Duftler

Field Summary

protected List
bindingOperations
protected Element
docEl
protected List
extElements
protected boolean
isUndefined
protected QName
name
protected PortType
portType
static long
serialVersionUID

Method Summary

void
addBindingOperation(BindingOperation bindingOperation)
Add an operation binding to binding.
void
addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.
BindingOperation
getBindingOperation(String name, String inputName, String outputName)
Get the specified operation binding.
List
getBindingOperations()
Get all the operation bindings defined here.
Element
getDocumentationElement()
Get the documentation element.
List
getExtensibilityElements()
Get all the extensibility elements defined here.
PortType
getPortType()
Get the port type this is a binding for.
QName
getQName()
Get the name of this binding.
boolean
isUndefined()
void
setDocumentationElement(Element docEl)
Set the documentation element for this document.
void
setPortType(PortType portType)
Set the port type this is a binding for.
void
setQName(QName name)
Set the name of this binding.
void
setUndefined(boolean isUndefined)
String
toString()

Field Details

bindingOperations

protected List bindingOperations


docEl

protected Element docEl


extElements

protected List extElements


isUndefined

protected boolean isUndefined


name

protected QName name


portType

protected PortType portType


serialVersionUID

public static final long serialVersionUID

Field Value:
1L

Method Details

addBindingOperation

public void addBindingOperation(BindingOperation bindingOperation)
Add an operation binding to binding.
Specified by:
addBindingOperation in interface Binding

Parameters:
bindingOperation - the operation binding to be added


addExtensibilityElement

public void addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.
Specified by:
addExtensibilityElement in interface ElementExtensible

Parameters:
extElement - the extensibility element to be added


getBindingOperation

public BindingOperation getBindingOperation(String name,
                                            String inputName,
                                            String outputName)
Get the specified operation binding. 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.
Specified by:
getBindingOperation in interface Binding

Parameters:
name - the name of the desired operation binding.
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.

Returns:
the corresponding operation binding, or null if there wasn't any matching operation binding


getBindingOperations

public List getBindingOperations()
Get all the operation bindings defined here.
Specified by:
getBindingOperations in interface Binding


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 Binding

Returns:
the documentation element


getExtensibilityElements

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


getPortType

public PortType getPortType()
Get the port type this is a binding for.
Specified by:
getPortType in interface Binding

Returns:
the associated port type


getQName

public QName getQName()
Get the name of this binding.
Specified by:
getQName in interface Binding

Returns:
the binding name


isUndefined

public boolean isUndefined()
Specified by:
isUndefined in interface Binding


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 Binding

Parameters:
docEl - the documentation element


setPortType

public void setPortType(PortType portType)
Set the port type this is a binding for.
Specified by:
setPortType in interface Binding

Parameters:
portType - the port type associated with this binding


setQName

public void setQName(QName name)
Set the name of this binding.
Specified by:
setQName in interface Binding

Parameters:
name - the desired name


setUndefined

public void setUndefined(boolean isUndefined)
Specified by:
setUndefined in interface Binding


toString

public String toString()


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