An OperationDesc is an abstract description of an operation on a service.
!!! WORK IN PROGRESS
addFault
public void addFault(FaultDesc fault)
addParameter
public void addParameter(QName paramName,
QName xmlType,
Class javaType,
byte parameterMode,
boolean inHeader,
boolean outHeader)
getAllInParams
public ArrayList getAllInParams()
Return a list of ALL "in" params (including INOUTs)
Note: if we were sure the order went IN->INOUT->OUT, we could optimize
this.
getAllOutParams
public ArrayList getAllOutParams()
Return a list of ALL "out" params (including INOUTs)
Note: if we were sure the order went IN->INOUT->OUT, we could optimize
this.
getDocumentation
public String getDocumentation()
get the documentation for the operation
getElementQName
public QName getElementQName()
getFaultByClass
public FaultDesc getFaultByClass(Class cls)
Returns the FaultDesc for the fault class given.
Returns null if not found.
getFaultByClass
public FaultDesc getFaultByClass(Class cls,
boolean checkParents)
Returns the FaultDesc for the fault class given.
Returns null if not found.
getFaultByQName
public FaultDesc getFaultByQName(QName qname)
Returns the FaultDesc for a QName (which is typically found
in the details element of a SOAP fault).
Returns null if not found.
getFaultByXmlType
public FaultDesc getFaultByXmlType(QName xmlType)
Returns the FaultDesc for an XMLType.
Returns null if not found.
getFaults
public ArrayList getFaults()
getMep
public OperationType getMep()
getMessageOperationStyle
public int getMessageOperationStyle()
getMethod
public Method getMethod()
getName
public String getName()
Return the operation's name
getNumInParams
public int getNumInParams()
getNumOutParams
public int getNumOutParams()
getNumParams
public int getNumParams()
getOutParams
public ArrayList getOutParams()
Returns an ordered list of out params (NOT inouts)
getParameters
public ArrayList getParameters()
getReturnClass
public Class getReturnClass()
getReturnQName
public QName getReturnQName()
getReturnType
public QName getReturnType()
getSoapAction
public String getSoapAction()
getStyle
public Style getStyle()
Return the style of the operation, defaulting to the parent
ServiceDesc's style if we don't have one explicitly set.
getUse
public Use getUse()
Return the use of the operation, defaulting to the parent
ServiceDesc's use if we don't have one explicitly set.
isReturnHeader
public boolean isReturnHeader()
Is the return value in the header of the response message?
setDocumentation
public void setDocumentation(String documentation)
set the documentation for the operation
setElementQName
public void setElementQName(QName elementQName)
setMep
public void setMep(OperationType mep)
setMep
public void setMep(String mepString)
Set the MEP using a string like "request-response"
mepString
-
setMessageOperationStyle
public void setMessageOperationStyle(int messageOperationStyle)
setMethod
public void setMethod(Method method)
setName
public void setName(String name)
Set the operation's name
setParameters
public void setParameters(ArrayList newParameters)
Set the parameters wholesale.
newParameters
- an ArrayList of ParameterDescs
setReturnClass
public void setReturnClass(Class returnClass)
setReturnHeader
public void setReturnHeader(boolean value)
Set whether the return value is in the response message.
setReturnQName
public void setReturnQName(QName returnQName)
setReturnType
public void setReturnType(QName returnType)
setSoapAction
public void setSoapAction(String soapAction)
setStyle
public void setStyle(Style style)
setUse
public void setUse(Use use)
toString
public String toString()
toString
public String toString(String indent)