com.ibm.wsdl

Class OperationImpl

public class OperationImpl extends Object implements Operation

This class represents a WSDL operation. It includes information on input, output and fault messages associated with usage of the operation.

Author: Paul Fremantle (pzf@us.ibm.com) Nirmal Mukhi (nmukhi@us.ibm.com) Matthew J. Duftler (duftler@us.ibm.com)

Field Summary
protected ElementdocEl
protected ListextElements
protected Mapfaults
protected Inputinput
protected booleanisUndefined
protected Stringname
protected Outputoutput
protected ListparameterOrder
static longserialVersionUID
protected OperationTypestyle
Method Summary
voidaddExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.
voidaddFault(Fault fault)
Add a fault message that must be associated with this operation.
ElementgetDocumentationElement()
Get the documentation element.
ListgetExtensibilityElements()
Get all the extensibility elements defined here.
FaultgetFault(String name)
Get the specified fault message.
MapgetFaults()
Get all the fault messages associated with this operation.
InputgetInput()
Get the input message specification for this operation.
StringgetName()
Get the name of this operation.
OutputgetOutput()
Get the output message specification for this operation.
ListgetParameterOrdering()
Get the parameter ordering for this operation.
OperationTypegetStyle()
Get the operation type.
booleanisUndefined()
voidsetDocumentationElement(Element docEl)
Set the documentation element for this document.
voidsetInput(Input input)
Set the input message specification for this operation.
voidsetName(String name)
Set the name of this operation.
voidsetOutput(Output output)
Set the output message specification for this operation.
voidsetParameterOrdering(List parameterOrder)
Set the parameter ordering for a request-response, or solicit-response operation.
voidsetStyle(OperationType style)
Set the style for this operation (request-response, one way, solicit-response or notification).
voidsetUndefined(boolean isUndefined)
StringtoString()

Field Detail

docEl

protected Element docEl

extElements

protected List extElements

faults

protected Map faults

input

protected Input input

isUndefined

protected boolean isUndefined

name

protected String name

output

protected Output output

parameterOrder

protected List parameterOrder

serialVersionUID

public static final long serialVersionUID

style

protected OperationType style

Method Detail

addExtensibilityElement

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

Parameters: extElement the extensibility element to be added

addFault

public void addFault(Fault fault)
Add a fault message that must be associated with this operation.

Parameters: fault the new fault message

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.

Returns: the documentation element

getExtensibilityElements

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

getFault

public Fault getFault(String name)
Get the specified fault message.

Parameters: name the name of the desired fault message.

Returns: the corresponding fault message, or null if there wasn't any matching message

getFaults

public Map getFaults()
Get all the fault messages associated with this operation.

Returns: names of fault messages

getInput

public Input getInput()
Get the input message specification for this operation.

Returns: the input message

getName

public String getName()
Get the name of this operation.

Returns: the operation name

getOutput

public Output getOutput()
Get the output message specification for this operation.

Returns: the output message specification for the operation

getParameterOrdering

public List getParameterOrdering()
Get the parameter ordering for this operation.

Returns: the parameter ordering, a list consisting of message part names

getStyle

public OperationType getStyle()
Get the operation type.

Returns: the operation type

isUndefined

public boolean isUndefined()

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.

Parameters: docEl the documentation element

setInput

public void setInput(Input input)
Set the input message specification for this operation.

Parameters: input the new input message

setName

public void setName(String name)
Set the name of this operation.

Parameters: name the desired name

setOutput

public void setOutput(Output output)
Set the output message specification for this operation.

Parameters: output the new output message

setParameterOrdering

public void setParameterOrdering(List parameterOrder)
Set the parameter ordering for a request-response, or solicit-response operation.

Parameters: parameterOrder, a list of named parameters containing the part names to reflect the desired order of parameters for RPC-style operations

setStyle

public void setStyle(OperationType style)
Set the style for this operation (request-response, one way, solicit-response or notification).

Parameters: style the new operation style

setUndefined

public void setUndefined(boolean isUndefined)

toString

public String toString()
Copyright © 2003,2005 IBM. All Rights Reserved.