Package com.ibm.wsdl
Class OperationImpl
- java.lang.Object
-
- com.ibm.wsdl.AbstractWSDLElement
-
- com.ibm.wsdl.OperationImpl
-
- All Implemented Interfaces:
java.io.Serializable
,AttributeExtensible
,ElementExtensible
,Operation
,WSDLElement
public class OperationImpl extends AbstractWSDLElement 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)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
faults
protected Input
input
protected boolean
isUndefined
protected java.lang.String
name
protected java.util.List
nativeAttributeNames
protected Output
output
protected java.util.List
parameterOrder
static long
serialVersionUID
protected OperationType
style
-
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 Constructor Description OperationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFault(Fault fault)
Add a fault message that must be associated with this operation.Fault
getFault(java.lang.String name)
Get the specified fault message.java.util.Map
getFaults()
Get all the fault messages associated with this operation.Input
getInput()
Get the input message specification for this operation.java.lang.String
getName()
Get the name of this operation.java.util.List
getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification.Output
getOutput()
Get the output message specification for this operation.java.util.List
getParameterOrdering()
Get the parameter ordering for this operation.OperationType
getStyle()
Get the operation type.boolean
isUndefined()
Fault
removeFault(java.lang.String name)
Remove the specified fault message.void
setInput(Input input)
Set the input message specification for this operation.void
setName(java.lang.String name)
Set the name of this operation.void
setOutput(Output output)
Set the output message specification for this operation.void
setParameterOrdering(java.util.List parameterOrder)
Set the parameter ordering for a request-response, or solicit-response operation.void
setStyle(OperationType style)
Set the style for this operation (request-response, one way, solicit-response or notification).void
setUndefined(boolean isUndefined)
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 Detail
-
name
protected java.lang.String name
-
input
protected Input input
-
output
protected Output output
-
faults
protected java.util.Map faults
-
style
protected OperationType style
-
parameterOrder
protected java.util.List parameterOrder
-
nativeAttributeNames
protected java.util.List nativeAttributeNames
-
isUndefined
protected boolean isUndefined
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Set the name of this operation.
-
getName
public java.lang.String getName()
Get the name of this operation.
-
setInput
public void setInput(Input input)
Set the input message specification for this operation.
-
getInput
public Input getInput()
Get the input message specification for this operation.
-
setOutput
public void setOutput(Output output)
Set the output message specification for this operation.
-
getOutput
public Output getOutput()
Get the output message specification for this operation.
-
addFault
public void addFault(Fault fault)
Add a fault message that must be associated with this operation.
-
getFault
public Fault getFault(java.lang.String name)
Get the specified fault message.
-
removeFault
public Fault removeFault(java.lang.String name)
Remove the specified fault message.- Specified by:
removeFault
in interfaceOperation
- Parameters:
name
- the name of the fault message to be removed- Returns:
- the fault message which was removed.
-
getFaults
public java.util.Map getFaults()
Get all the fault messages associated with this operation.
-
setStyle
public void setStyle(OperationType style)
Set the style for this operation (request-response, one way, solicit-response or notification).
-
getStyle
public OperationType getStyle()
Get the operation type.
-
setParameterOrdering
public void setParameterOrdering(java.util.List parameterOrder)
Set the parameter ordering for a request-response, or solicit-response operation.- Specified by:
setParameterOrdering
in interfaceOperation
- Parameters:
parameterOrder
- a list of named parameters containing the part names to reflect the desired order of parameters for RPC-style operations
-
getParameterOrdering
public java.util.List getParameterOrdering()
Get the parameter ordering for this operation.- Specified by:
getParameterOrdering
in interfaceOperation
- Returns:
- the parameter ordering, a list consisting of message part names
-
setUndefined
public void setUndefined(boolean isUndefined)
- Specified by:
setUndefined
in interfaceOperation
-
isUndefined
public boolean isUndefined()
- Specified by:
isUndefined
in interfaceOperation
-
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
-
-