public final class WSOperation
extends java.lang.Object
 The WSModel creates instances of WSOperation when parsing
 the WSDL file with information that can be queried by the data control
 design time classes to generate the metadata.
 
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | RESULT | 
| Constructor and Description | 
|---|
| WSOperation(java.lang.String name)Creates an instance of the WSOperation. | 
| WSOperation(java.lang.String name,
           oracle.webservices.model.Operation operation)Create an instance of this WebService operation. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Set | getCollectionSet() | 
| java.lang.String | getDefaultParameterValue(java.lang.String name)Returns the default value of the parameter, null, if default value is not set. | 
| java.util.Map | getDefaultParameterValues() | 
| MethodDef | getMethodDefintion(StructureDef dcParent)Create the JSR227  MethodDefinitionfor this operation. | 
| java.lang.String | getName()Get the Name of this operation. | 
| oracle.webservices.model.Operation | getOperation()Get the WebService  Operationassociated with this 
 Data Control Operation. | 
| Node | getOperationNode()Get the XML representation for this operation. | 
| java.util.Set<java.lang.String> | getOperationParams() | 
| DataFormat | getResponseFormat()Get the reponse format for this operation. | 
| boolean | isComplexAccessorAdded()Returns true if this operation has a complex parameter that has been added 
 as an accessor. | 
| void | setComplexParamContainer(AccessorDef container)Sets the root structure that will contain the complex paramters exposed
 as accessors. | 
| void | setDefaultParameterValues(java.util.Map<java.lang.String,java.lang.String> paramsMap)Set the default parameter values this operation. | 
| void | setDefaultParmeterValue(java.lang.String name,
                       java.lang.String defaultValue)Set the default parameter values this operation. | 
| void | setResponseFormat(DataFormat responseFormat)Set the response format for this operation. | 
| void | setTypeMap(Types types)Sets the maps of the structures of the types defined for this service 
 definition (WSDL). | 
public static final java.lang.String RESULT
public WSOperation(java.lang.String name)
name - The name of the Webservice operation.public WSOperation(java.lang.String name,
           oracle.webservices.model.Operation operation)
name - The name of the operationoperation - The MDDS model Operation that this 
                  DC operation encapsulates.public java.lang.String getName()
public DataFormat getResponseFormat()
setResponseFormat(DataFormat repsonseFormat)public void setResponseFormat(DataFormat responseFormat)
responseFormat - Response format for this operation.public Node getOperationNode()
Node of that subtree. This XML representation
 is a part of the data control metadata. This DOM tree defines the
 instance construct of the SOAP operation and its parameters at runtime.Node for the XML DOM subtree for this operation
                      structure.public oracle.webservices.model.Operation getOperation()
Operation associated with this 
 Data Control Operation.Operation associated with this Data Control
         operation.public void setDefaultParameterValues(java.util.Map<java.lang.String,java.lang.String> paramsMap)
paramsMap - Map containing parameter name and default value, 
 both of type Stringpublic void setDefaultParmeterValue(java.lang.String name,
                           java.lang.String defaultValue)
name - Parameter namedefaultValue - Default value for the parameterpublic java.util.Map getDefaultParameterValues()
public java.lang.String getDefaultParameterValue(java.lang.String name)
name - The parameter name whose default value is to be returned.public java.util.Set<java.lang.String> getOperationParams()
public MethodDef getMethodDefintion(StructureDef dcParent)
MethodDefinition for this operation. The 
 Appropriate JSR227 structures are built for the input parameters and
 the return types. 
 
 
 The return type can be a set of multiple RSI's, typically in a case
 where the SOAP payload  can return complex header 
 strucutres along with a complex structures in the body. Each of these
 strcutures are independent RSI's. In such a case a ROOT 
 AccessorDefinition is created, whose StructureDefinition
 contains these top level accessors. 
 
 The Method parameters can also be complex StructureDefinitions or
 collections. In such a case, the Complex Structure is flattened out as 
 <parent>_<child>. The parameter values passed are
 then collated to build complex payload.  
 
dcParent - The Data control Root Structure which contains
                 all the MethodDefinitions.OperationDefinition for this WebService
         operationpublic void setComplexParamContainer(AccessorDef container)
struct - the definition that contains the accessors.public boolean isComplexAccessorAdded()
public void setTypeMap(Types types)
types - object that stores structure definitions with the key as the 
              type names.public java.util.Set getCollectionSet()