public class WsdlOperation
extends java.lang.Object
commProtocol
is set to WsdlConst
.SOAP
by default.Constructor and Description |
---|
WsdlOperation(WsdlModel theModel,
java.lang.String thisName)
Create a new instance of WsdlOperation.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(WsdlParamInfo thisParam)
Add a parameter to one of the lists.
|
java.lang.Object |
clone()
Get a clone of this object.
|
java.lang.String |
getCommProtocol()
Get the communication protocol.
|
java.lang.String |
getDocumentation()
Get the service documentation.
|
WsdlFault |
getInFault()
Get the input fault value.
|
WsdlParamInfo |
getInParamAt(java.lang.String baseName,
int nestedCount)
Get a representation of the child input parameter at the specified nested position.
|
WsdlParamInfo |
getInParameter(java.lang.String paramName)
Get the input parameter with the specified name.
|
java.util.ArrayList |
getInParamNames()
Get the input parameter names list only.
|
java.util.ArrayList |
getInParamNames(java.lang.String protocol)
Get the input parameter names list for the specified comm protocol.
|
java.util.HashMap |
getInParams()
Get the input parameters.
|
java.util.HashMap |
getInParams(java.lang.String protocol)
Get the input parameters for the specified comm protocol.
|
java.lang.String |
getInputUse()
Get the input operation use.
|
java.util.ArrayList |
getMethodInfoParams(java.lang.String protocol)
Get the input parameters for the specified comm protocol, for a
WsMethodInfo object. |
java.lang.String |
getName()
Get the operation name.
|
WsdlFault |
getOutFault()
Get the output fault value.
|
WsdlParamInfo |
getOutParamAt(java.lang.String baseName,
int nestedCount)
Get a representation of the child output parameter at the specified nested position.
|
WsdlParamInfo |
getOutParameter(java.lang.String paramName)
Get the output parameter with the specified name.
|
java.util.ArrayList |
getOutParamNames()
Get the output parameter names list only.
|
java.util.ArrayList |
getOutParamNames(java.lang.String protocol)
Get the output parameter names list for the specified comm protocol.
|
java.util.HashMap |
getOutParams()
Get the output parameters.
|
java.util.HashMap |
getOutParams(java.lang.String protocol)
Get the output parameters for the specified comm protocol.
|
java.lang.String |
getOutputUse()
Get the output operation use.
|
WsdlParamInfo |
getParameter(java.lang.String paramName)
Get the parameter with the specified name.
|
java.lang.String |
getPattern()
Get the operation pattern.
|
java.lang.String |
getReturnType()
Guess what the return type is by parsing the output parameter list and returning
the value of the first found 'return' parameter.
|
java.lang.String |
getSoapAction()
Get the soap action description.
|
java.lang.String |
getStyle()
Get the operation style.
|
void |
messageTypePartsToParams()
Traverse all of the stored message and type parts in the model and convert them
into empty parameter info elements as part of a complete nested structure.
|
void |
setCommProtocol(java.lang.String thisCommProtocol)
Set the communication protocol.
|
void |
setDocumentation(java.lang.String theDocumentation)
Set the description of the service.
|
void |
setInFault(WsdlFault thisInFault)
Set the input fault value.
|
void |
setInParams(java.util.HashMap thisInParams)
Set the input parameter values.
|
void |
setInputUse(java.lang.String thisInputUse)
Set the input use for the operation.
|
void |
setOutFault(WsdlFault thisOutFault)
Set the output fault value.
|
void |
setOutParams(java.util.HashMap thisOutParams)
Set the output parameter values.
|
void |
setOutputUse(java.lang.String thisOutputUse)
Set the output use for the operation.
|
void |
setPattern(java.lang.String thisPattern)
Set the pattern for the operation.
|
void |
setSoapAction(java.lang.String thisSoapAction)
Set the soap action for the operation.
|
void |
setStyle(java.lang.String thisStyle)
Set the style for the operation.
|
public WsdlOperation(WsdlModel theModel, java.lang.String thisName)
theModel
- the complete parent wsdl model.thisName
- the operation name.public java.lang.String getName()
public void setDocumentation(java.lang.String theDocumentation)
theDocumentation
- the service documentation.public java.lang.String getDocumentation()
public void setPattern(java.lang.String thisPattern)
thisPattern
- the pattern type.public java.lang.String getPattern()
public void setStyle(java.lang.String thisStyle)
thisStyle
- the style type.public java.lang.String getStyle()
public void setSoapAction(java.lang.String thisSoapAction)
thisSoapAction
- the soap action description.public java.lang.String getSoapAction()
public void setCommProtocol(java.lang.String thisCommProtocol)
thisCommProtocol
- the communication protocol.public java.lang.String getCommProtocol()
public void setInputUse(java.lang.String thisInputUse)
thisInputUse
- the operation use.public java.lang.String getInputUse()
public void setOutputUse(java.lang.String thisOutputUse)
thisOutputUse
- the operation use.public java.lang.String getOutputUse()
public void addParameter(WsdlParamInfo thisParam)
thisParam
- the input or output parameter.public WsdlParamInfo getParameter(java.lang.String paramName)
paramName
- the parameter name.public WsdlParamInfo getInParameter(java.lang.String paramName)
paramName
- the parameter name.public WsdlParamInfo getOutParameter(java.lang.String paramName)
paramName
- the parameter name.public java.lang.String getReturnType()
public WsdlParamInfo getInParamAt(java.lang.String baseName, int nestedCount)
baseName
- the name of the base or top-most parameter to parse.nestedCount
- the final count position. The very first parameter has
a value of 0 and its first child part, or the next part, the value of 1.public WsdlParamInfo getOutParamAt(java.lang.String baseName, int nestedCount)
baseName
- the name of the base or top-most parameter to parse.nestedCount
- the final count position. The very first parameter has
a value of 0 and its first child part, or the next part, the value of 1.public void messageTypePartsToParams()
public void setInParams(java.util.HashMap thisInParams)
thisInParams
- the set of input parameters.public java.util.ArrayList getInParamNames()
public java.util.ArrayList getInParamNames(java.lang.String protocol)
protocol
- the protocol type - SOAP, GET or POSTpublic java.util.HashMap getInParams()
public java.util.HashMap getInParams(java.lang.String protocol)
protocol
- the protocol type - SOAP, GET or POSTpublic java.util.ArrayList getMethodInfoParams(java.lang.String protocol)
WsMethodInfo
object.protocol
- the protocol type - SOAP, GET or POST.WsdlParamInfo
objects.public void setOutParams(java.util.HashMap thisOutParams)
thisOutParams
- the set of output parameters.public java.util.ArrayList getOutParamNames()
public java.util.ArrayList getOutParamNames(java.lang.String protocol)
protocol
- the protocol type - SOAP, GET or POSTpublic java.util.HashMap getOutParams()
public java.util.HashMap getOutParams(java.lang.String protocol)
protocol
- the protocol type - SOAP, GET or POSTpublic void setInFault(WsdlFault thisInFault)
thisInFault
- the input fault description.public WsdlFault getInFault()
public void setOutFault(WsdlFault thisOutFault)
thisOutFault
- the output fault description.public WsdlFault getOutFault()
public java.lang.Object clone()
clone
in class java.lang.Object