javax.wsdl

Interface Binding

public interface Binding extends WSDLElement

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

Author: Paul Fremantle Nirmal Mukhi Matthew J. Duftler

Method Summary
voidaddBindingOperation(BindingOperation bindingOperation)
Add an operation binding to binding.
BindingOperationgetBindingOperation(String name, String inputName, String outputName)
Get the specified operation binding.
ListgetBindingOperations()
Get all the operation bindings defined here.
PortTypegetPortType()
Get the port type this is a binding for.
QNamegetQName()
Get the name of this binding.
booleanisUndefined()
BindingOperationremoveBindingOperation(String name, String inputName, String outputName)
Remove the specified operation binding.
voidsetPortType(PortType portType)
Set the port type this is a binding for.
voidsetQName(QName name)
Set the name of this binding.
voidsetUndefined(boolean isUndefined)

Method Detail

addBindingOperation

public void addBindingOperation(BindingOperation bindingOperation)
Add an operation binding to binding.

Parameters: bindingOperation the operation binding 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.

The search criteria will be the operation name parameter and any non-null input or output message name parameters. To exclude the input or output message name from the search criteria, specify a null value for the input or output message name parameter. To search for operations with unnamed input or output messages (i.e. <input> or <output> elements with the 'name' attribute omitted), specify the string ":none" for the input or output message name parameter.

Note: the use of a string value ":none" rather than null to search for unnamed input or output messages is necessary to retain backward compatibility with earlier versions of the JWSDL API, which defined a null value to mean 'ignore this parameter'. The colon in ":none" is to avoid name clashes with input or output message names, which must be of type NCName (i.e. they cannot contain colons).

Parameters: name the name of the desired operation binding. inputName the name of the input message; if this is null it will be ignored, if this is ":none" it means search for an input message without a name. outputName the name of the output message; if this is null it will be ignored, if this is ":none" it means search for an output message without a name.

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

Throws: IllegalArgumentException if duplicate operations are found.

getBindingOperations

public List getBindingOperations()
Get all the operation bindings defined here.

getPortType

public PortType getPortType()
Get the port type this is a binding for.

Returns: the associated port type

getQName

public QName getQName()
Get the name of this binding.

Returns: the binding name

isUndefined

public boolean isUndefined()

removeBindingOperation

public BindingOperation removeBindingOperation(String name, String inputName, String outputName)
Remove 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.

Usage of the input and output message name parameters is as described for the getBindingOperation method.

Parameters: name the name of the operation binding to be removed. inputName the name of the input message; if this is null it will be ignored, if this is ":none" it means search for an input message without a name. outputName the name of the output message; if this is null it will be ignored, if this is ":none" it means search for an output message without a name.

Returns: the binding operation which was removed, or null if there wasn't any matching operation

Throws: IllegalArgumentException if duplicate operations are found.

See Also: Binding

setPortType

public void setPortType(PortType portType)
Set the port type this is a binding for.

Parameters: portType the port type associated with this binding

setQName

public void setQName(QName name)
Set the name of this binding.

Parameters: name the desired name

setUndefined

public void setUndefined(boolean isUndefined)
Copyright B) 2003,2006 IBM. All Rights Reserved.