Guest User

Untitled

a guest
Sep 22nd, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 27.62 KB | None | 0 0
  1.  
  2.  
  3.         #ifndef TRADING_ABSTRACTREQUESTTYPE_H
  4.         #define TRADING_ABSTRACTREQUESTTYPE_H
  5.  
  6.        /**
  7.         * AbstractRequestType.h
  8.         *
  9.         * This file was auto-generated from WSDL
  10.         * by the Apache Axis2/Java version: 1.0  Built on : Oct 15, 2009 (12:37:29 IST)
  11.         */
  12.  
  13.        /**
  14.         *  AbstractRequestType class
  15.         */
  16.  
  17.         namespace ns_trading_service{
  18.             class AbstractRequestType;
  19.         }
  20.        
  21.  
  22.        
  23.        #include "DetailLevelCodeType.h"
  24.          
  25.        #include "ErrorHandlingCodeType.h"
  26.          
  27.        #include "UUIDType.h"
  28.          
  29.        #include "WarningLevelCodeType.h"
  30.          
  31.        #include "BotBlockRequestType.h"
  32.          
  33.  
  34.         #include <stdio.h>
  35.         #include <OMElement.h>
  36.         #include <ServiceClient.h>
  37.         #include <ADBDefines.h>
  38.  
  39. namespace ns_trading_service
  40. {
  41.        
  42.        
  43.  
  44.         class AbstractRequestType {
  45.  
  46.         private:
  47.              std::vector<ns_trading_service::DetailLevelCodeType*>* property_DetailLevel;
  48.  
  49.                
  50.                 bool isValidDetailLevel;
  51.             std::string property_ErrorLanguage;
  52.  
  53.                
  54.                 bool isValidErrorLanguage;
  55.             std::string property_MessageID;
  56.  
  57.                
  58.                 bool isValidMessageID;
  59.             std::string property_Version;
  60.  
  61.                
  62.                 bool isValidVersion;
  63.             std::string property_EndUserIP;
  64.  
  65.                
  66.                 bool isValidEndUserIP;
  67.             ns_trading_service::ErrorHandlingCodeType* property_ErrorHandling;
  68.  
  69.                
  70.                 bool isValidErrorHandling;
  71.             ns_trading_service::UUIDType* property_InvocationID;
  72.  
  73.                
  74.                 bool isValidInvocationID;
  75.             std::vector<std::string*>* property_OutputSelector;
  76.  
  77.                
  78.                 bool isValidOutputSelector;
  79.             ns_trading_service::WarningLevelCodeType* property_WarningLevel;
  80.  
  81.                
  82.                 bool isValidWarningLevel;
  83.             ns_trading_service::BotBlockRequestType* property_BotBlock;
  84.  
  85.                
  86.                 bool isValidBotBlock;
  87.             std::vector<wso2wsf::OMElement*>* property_ExtraElement;
  88.  
  89.                
  90.                 bool isValidExtraElement;
  91.            
  92.  
  93.         /*** Private methods ***/
  94.          
  95.  
  96.         bool WSF_CALL
  97.         setDetailLevelNil();
  98.            
  99.  
  100.         bool WSF_CALL
  101.         setErrorLanguageNil();
  102.            
  103.  
  104.         bool WSF_CALL
  105.         setMessageIDNil();
  106.            
  107.  
  108.         bool WSF_CALL
  109.         setVersionNil();
  110.            
  111.  
  112.         bool WSF_CALL
  113.         setEndUserIPNil();
  114.            
  115.  
  116.         bool WSF_CALL
  117.         setErrorHandlingNil();
  118.            
  119.  
  120.         bool WSF_CALL
  121.         setInvocationIDNil();
  122.            
  123.  
  124.         bool WSF_CALL
  125.         setOutputSelectorNil();
  126.            
  127.  
  128.         bool WSF_CALL
  129.         setWarningLevelNil();
  130.            
  131.  
  132.         bool WSF_CALL
  133.         setBotBlockNil();
  134.            
  135.  
  136.         bool WSF_CALL
  137.         setExtraElementNil();
  138.            
  139.  
  140.  
  141.  
  142.         /******************************* public functions *********************************/
  143.  
  144.         public:
  145.  
  146.         /**
  147.          * Constructor for class AbstractRequestType
  148.          */
  149.  
  150.         AbstractRequestType();
  151.  
  152.         /**
  153.          * Destructor AbstractRequestType
  154.          */
  155.         ~AbstractRequestType();
  156.  
  157.  
  158.        
  159.  
  160.         /**
  161.          * Constructor for creating AbstractRequestType
  162.          * @param
  163.          * @param DetailLevel std::vector<ns_trading_service::DetailLevelCodeType*>*
  164.          * @param ErrorLanguage std::string
  165.          * @param MessageID std::string
  166.          * @param Version std::string
  167.          * @param EndUserIP std::string
  168.          * @param ErrorHandling ns_trading_service::ErrorHandlingCodeType*
  169.          * @param InvocationID ns_trading_service::UUIDType*
  170.          * @param OutputSelector std::vector<std::string*>*
  171.          * @param WarningLevel ns_trading_service::WarningLevelCodeType*
  172.          * @param BotBlock ns_trading_service::BotBlockRequestType*
  173.          * @param ExtraElement std::vector<wso2wsf::OMElement*>*
  174.          * @return newly created AbstractRequestType object
  175.          */
  176.         AbstractRequestType(std::vector<ns_trading_service::DetailLevelCodeType*>* arg_DetailLevel,std::string arg_ErrorLanguage,std::string arg_MessageID,std::string arg_Version,std::string arg_EndUserIP,ns_trading_service::ErrorHandlingCodeType* arg_ErrorHandling,ns_trading_service::UUIDType* arg_InvocationID,std::vector<std::string*>* arg_OutputSelector,ns_trading_service::WarningLevelCodeType* arg_WarningLevel,ns_trading_service::BotBlockRequestType* arg_BotBlock,std::vector<wso2wsf::OMElement*>* arg_ExtraElement);
  177.        
  178.        
  179.         /********************************** Class get set methods **************************************/
  180.         /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
  181.        
  182.  
  183.         /**
  184.          * Getter for DetailLevel. Deprecated for array types, Use getDetailLevelAt instead
  185.          * @return Array of ns_trading_service::DetailLevelCodeType*s.
  186.          */
  187.         WSF_EXTERN std::vector<ns_trading_service::DetailLevelCodeType*>* WSF_CALL
  188.         getDetailLevel();
  189.  
  190.         /**
  191.          * Setter for DetailLevel.Deprecated for array types, Use setDetailLevelAt
  192.          * or addDetailLevel instead.
  193.          * @param arg_DetailLevel Array of ns_trading_service::DetailLevelCodeType*s.
  194.          * @return true on success, false otherwise
  195.          */
  196.         WSF_EXTERN bool WSF_CALL
  197.         setDetailLevel(std::vector<ns_trading_service::DetailLevelCodeType*>*  arg_DetailLevel);
  198.  
  199.         /**
  200.          * Re setter for DetailLevel
  201.          * @return true on success, false
  202.          */
  203.         WSF_EXTERN bool WSF_CALL
  204.         resetDetailLevel();
  205.        
  206.        
  207.  
  208.         /**
  209.          * Getter for ErrorLanguage.
  210.          * @return std::string*
  211.          */
  212.         WSF_EXTERN std::string WSF_CALL
  213.         getErrorLanguage();
  214.  
  215.         /**
  216.          * Setter for ErrorLanguage.
  217.          * @param arg_ErrorLanguage std::string*
  218.          * @return true on success, false otherwise
  219.          */
  220.         WSF_EXTERN bool WSF_CALL
  221.         setErrorLanguage(const std::string  arg_ErrorLanguage);
  222.  
  223.         /**
  224.          * Re setter for ErrorLanguage
  225.          * @return true on success, false
  226.          */
  227.         WSF_EXTERN bool WSF_CALL
  228.         resetErrorLanguage();
  229.        
  230.        
  231.  
  232.         /**
  233.          * Getter for MessageID.
  234.          * @return std::string*
  235.          */
  236.         WSF_EXTERN std::string WSF_CALL
  237.         getMessageID();
  238.  
  239.         /**
  240.          * Setter for MessageID.
  241.          * @param arg_MessageID std::string*
  242.          * @return true on success, false otherwise
  243.          */
  244.         WSF_EXTERN bool WSF_CALL
  245.         setMessageID(const std::string  arg_MessageID);
  246.  
  247.         /**
  248.          * Re setter for MessageID
  249.          * @return true on success, false
  250.          */
  251.         WSF_EXTERN bool WSF_CALL
  252.         resetMessageID();
  253.        
  254.        
  255.  
  256.         /**
  257.          * Getter for Version.
  258.          * @return std::string*
  259.          */
  260.         WSF_EXTERN std::string WSF_CALL
  261.         getVersion();
  262.  
  263.         /**
  264.          * Setter for Version.
  265.          * @param arg_Version std::string*
  266.          * @return true on success, false otherwise
  267.          */
  268.         WSF_EXTERN bool WSF_CALL
  269.         setVersion(const std::string  arg_Version);
  270.  
  271.         /**
  272.          * Re setter for Version
  273.          * @return true on success, false
  274.          */
  275.         WSF_EXTERN bool WSF_CALL
  276.         resetVersion();
  277.        
  278.        
  279.  
  280.         /**
  281.          * Getter for EndUserIP.
  282.          * @return std::string*
  283.          */
  284.         WSF_EXTERN std::string WSF_CALL
  285.         getEndUserIP();
  286.  
  287.         /**
  288.          * Setter for EndUserIP.
  289.          * @param arg_EndUserIP std::string*
  290.          * @return true on success, false otherwise
  291.          */
  292.         WSF_EXTERN bool WSF_CALL
  293.         setEndUserIP(const std::string  arg_EndUserIP);
  294.  
  295.         /**
  296.          * Re setter for EndUserIP
  297.          * @return true on success, false
  298.          */
  299.         WSF_EXTERN bool WSF_CALL
  300.         resetEndUserIP();
  301.        
  302.        
  303.  
  304.         /**
  305.          * Getter for ErrorHandling.
  306.          * @return ns_trading_service::ErrorHandlingCodeType*
  307.          */
  308.         WSF_EXTERN ns_trading_service::ErrorHandlingCodeType* WSF_CALL
  309.         getErrorHandling();
  310.  
  311.         /**
  312.          * Setter for ErrorHandling.
  313.          * @param arg_ErrorHandling ns_trading_service::ErrorHandlingCodeType*
  314.          * @return true on success, false otherwise
  315.          */
  316.         WSF_EXTERN bool WSF_CALL
  317.         setErrorHandling(ns_trading_service::ErrorHandlingCodeType*  arg_ErrorHandling);
  318.  
  319.         /**
  320.          * Re setter for ErrorHandling
  321.          * @return true on success, false
  322.          */
  323.         WSF_EXTERN bool WSF_CALL
  324.         resetErrorHandling();
  325.        
  326.        
  327.  
  328.         /**
  329.          * Getter for InvocationID.
  330.          * @return ns_trading_service::UUIDType*
  331.          */
  332.         WSF_EXTERN ns_trading_service::UUIDType* WSF_CALL
  333.         getInvocationID();
  334.  
  335.         /**
  336.          * Setter for InvocationID.
  337.          * @param arg_InvocationID ns_trading_service::UUIDType*
  338.          * @return true on success, false otherwise
  339.          */
  340.         WSF_EXTERN bool WSF_CALL
  341.         setInvocationID(ns_trading_service::UUIDType*  arg_InvocationID);
  342.  
  343.         /**
  344.          * Re setter for InvocationID
  345.          * @return true on success, false
  346.          */
  347.         WSF_EXTERN bool WSF_CALL
  348.         resetInvocationID();
  349.        
  350.        
  351.  
  352.         /**
  353.          * Getter for OutputSelector. Deprecated for array types, Use getOutputSelectorAt instead
  354.          * @return Array of std::strings.
  355.          */
  356.         WSF_EXTERN std::vector<std::string*>* WSF_CALL
  357.         getOutputSelector();
  358.  
  359.         /**
  360.          * Setter for OutputSelector.Deprecated for array types, Use setOutputSelectorAt
  361.          * or addOutputSelector instead.
  362.          * @param arg_OutputSelector Array of std::strings.
  363.          * @return true on success, false otherwise
  364.          */
  365.         WSF_EXTERN bool WSF_CALL
  366.         setOutputSelector(std::vector<std::string*>*  arg_OutputSelector);
  367.  
  368.         /**
  369.          * Re setter for OutputSelector
  370.          * @return true on success, false
  371.          */
  372.         WSF_EXTERN bool WSF_CALL
  373.         resetOutputSelector();
  374.        
  375.        
  376.  
  377.         /**
  378.          * Getter for WarningLevel.
  379.          * @return ns_trading_service::WarningLevelCodeType*
  380.          */
  381.         WSF_EXTERN ns_trading_service::WarningLevelCodeType* WSF_CALL
  382.         getWarningLevel();
  383.  
  384.         /**
  385.          * Setter for WarningLevel.
  386.          * @param arg_WarningLevel ns_trading_service::WarningLevelCodeType*
  387.          * @return true on success, false otherwise
  388.          */
  389.         WSF_EXTERN bool WSF_CALL
  390.         setWarningLevel(ns_trading_service::WarningLevelCodeType*  arg_WarningLevel);
  391.  
  392.         /**
  393.          * Re setter for WarningLevel
  394.          * @return true on success, false
  395.          */
  396.         WSF_EXTERN bool WSF_CALL
  397.         resetWarningLevel();
  398.        
  399.        
  400.  
  401.         /**
  402.          * Getter for BotBlock.
  403.          * @return ns_trading_service::BotBlockRequestType*
  404.          */
  405.         WSF_EXTERN ns_trading_service::BotBlockRequestType* WSF_CALL
  406.         getBotBlock();
  407.  
  408.         /**
  409.          * Setter for BotBlock.
  410.          * @param arg_BotBlock ns_trading_service::BotBlockRequestType*
  411.          * @return true on success, false otherwise
  412.          */
  413.         WSF_EXTERN bool WSF_CALL
  414.         setBotBlock(ns_trading_service::BotBlockRequestType*  arg_BotBlock);
  415.  
  416.         /**
  417.          * Re setter for BotBlock
  418.          * @return true on success, false
  419.          */
  420.         WSF_EXTERN bool WSF_CALL
  421.         resetBotBlock();
  422.        
  423.        
  424.  
  425.         /**
  426.          * Getter for extraElement. Deprecated for array types, Use getExtraElementAt instead
  427.          * @return Array of wso2wsf::OMElement*s.
  428.          */
  429.         WSF_EXTERN std::vector<wso2wsf::OMElement*>* WSF_CALL
  430.         getExtraElement();
  431.  
  432.         /**
  433.          * Setter for extraElement.Deprecated for array types, Use setExtraElementAt
  434.          * or addExtraElement instead.
  435.          * @param arg_ExtraElement Array of wso2wsf::OMElement*s.
  436.          * @return true on success, false otherwise
  437.          */
  438.         WSF_EXTERN bool WSF_CALL
  439.         setExtraElement(std::vector<wso2wsf::OMElement*>*  arg_ExtraElement);
  440.  
  441.         /**
  442.          * Re setter for extraElement
  443.          * @return true on success, false
  444.          */
  445.         WSF_EXTERN bool WSF_CALL
  446.         resetExtraElement();
  447.        
  448.         /****************************** Get Set methods for Arrays **********************************/
  449.         /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
  450.  
  451.         /**
  452.          * E.g. use of get_at, set_at, add and sizeof
  453.          *
  454.          * for(i = 0; i < adb_element->sizeofProperty(); i ++ )
  455.          * {
  456.          *     // Getting ith value to property_object variable
  457.          *     property_object = adb_element->getPropertyAt(i);
  458.          *
  459.          *     // Setting ith value from property_object variable
  460.          *     adb_element->setPropertyAt(i, property_object);
  461.          *
  462.          *     // Appending the value to the end of the array from property_object variable
  463.          *     adb_element->addProperty(property_object);
  464.          *
  465.          *     // Removing the ith value from an array
  466.          *     adb_element->removePropertyAt(i);
  467.          *    
  468.          * }
  469.          *
  470.          */
  471.  
  472.        
  473.        
  474.         /**
  475.          * Get the ith element of DetailLevel.
  476.         * @param i index of the item to be obtained
  477.          * @return ith ns_trading_service::DetailLevelCodeType* of the array
  478.          */
  479.         WSF_EXTERN ns_trading_service::DetailLevelCodeType* WSF_CALL
  480.         getDetailLevelAt(int i);
  481.  
  482.         /**
  483.          * Set the ith element of DetailLevel. (If the ith already exist, it will be replaced)
  484.          * @param i index of the item to return
  485.          * @param arg_DetailLevel element to set ns_trading_service::DetailLevelCodeType* to the array
  486.          * @return ith ns_trading_service::DetailLevelCodeType* of the array
  487.          */
  488.         WSF_EXTERN bool WSF_CALL
  489.         setDetailLevelAt(int i,
  490.                 ns_trading_service::DetailLevelCodeType* arg_DetailLevel);
  491.  
  492.  
  493.         /**
  494.          * Add to DetailLevel.
  495.          * @param arg_DetailLevel element to add ns_trading_service::DetailLevelCodeType* to the array
  496.          * @return true on success, false otherwise.
  497.          */
  498.         WSF_EXTERN bool WSF_CALL
  499.         addDetailLevel(
  500.             ns_trading_service::DetailLevelCodeType* arg_DetailLevel);
  501.  
  502.         /**
  503.          * Get the size of the DetailLevel array.
  504.          * @return the size of the DetailLevel array.
  505.          */
  506.         WSF_EXTERN int WSF_CALL
  507.         sizeofDetailLevel();
  508.  
  509.         /**
  510.          * Remove the ith element of DetailLevel.
  511.          * @param i index of the item to remove
  512.          * @return true on success, false otherwise.
  513.          */
  514.         WSF_EXTERN bool WSF_CALL
  515.         removeDetailLevelAt(int i);
  516.  
  517.        
  518.        
  519.         /**
  520.          * Get the ith element of OutputSelector.
  521.         * @param i index of the item to be obtained
  522.          * @return ith std::string of the array
  523.          */
  524.         WSF_EXTERN std::string WSF_CALL
  525.         getOutputSelectorAt(int i);
  526.  
  527.         /**
  528.          * Set the ith element of OutputSelector. (If the ith already exist, it will be replaced)
  529.          * @param i index of the item to return
  530.          * @param arg_OutputSelector element to set std::string to the array
  531.          * @return ith std::string of the array
  532.          */
  533.         WSF_EXTERN bool WSF_CALL
  534.         setOutputSelectorAt(int i,
  535.                 const std::string arg_OutputSelector);
  536.  
  537.  
  538.         /**
  539.          * Add to OutputSelector.
  540.          * @param arg_OutputSelector element to add std::string to the array
  541.          * @return true on success, false otherwise.
  542.          */
  543.         WSF_EXTERN bool WSF_CALL
  544.         addOutputSelector(
  545.             const std::string arg_OutputSelector);
  546.  
  547.         /**
  548.          * Get the size of the OutputSelector array.
  549.          * @return the size of the OutputSelector array.
  550.          */
  551.         WSF_EXTERN int WSF_CALL
  552.         sizeofOutputSelector();
  553.  
  554.         /**
  555.          * Remove the ith element of OutputSelector.
  556.          * @param i index of the item to remove
  557.          * @return true on success, false otherwise.
  558.          */
  559.         WSF_EXTERN bool WSF_CALL
  560.         removeOutputSelectorAt(int i);
  561.  
  562.        
  563.        
  564.         /**
  565.          * Get the ith element of extraElement.
  566.         * @param i index of the item to be obtained
  567.          * @return ith wso2wsf::OMElement* of the array
  568.          */
  569.         WSF_EXTERN wso2wsf::OMElement* WSF_CALL
  570.         getExtraElementAt(int i);
  571.  
  572.         /**
  573.          * Set the ith element of extraElement. (If the ith already exist, it will be replaced)
  574.          * @param i index of the item to return
  575.          * @param arg_ExtraElement element to set wso2wsf::OMElement* to the array
  576.          * @return ith wso2wsf::OMElement* of the array
  577.          */
  578.         WSF_EXTERN bool WSF_CALL
  579.         setExtraElementAt(int i,
  580.                 wso2wsf::OMElement* arg_ExtraElement);
  581.  
  582.  
  583.         /**
  584.          * Add to extraElement.
  585.          * @param arg_ExtraElement element to add wso2wsf::OMElement* to the array
  586.          * @return true on success, false otherwise.
  587.          */
  588.         WSF_EXTERN bool WSF_CALL
  589.         addExtraElement(
  590.             wso2wsf::OMElement* arg_ExtraElement);
  591.  
  592.         /**
  593.          * Get the size of the extraElement array.
  594.          * @return the size of the extraElement array.
  595.          */
  596.         WSF_EXTERN int WSF_CALL
  597.         sizeofExtraElement();
  598.  
  599.         /**
  600.          * Remove the ith element of extraElement.
  601.          * @param i index of the item to remove
  602.          * @return true on success, false otherwise.
  603.          */
  604.         WSF_EXTERN bool WSF_CALL
  605.         removeExtraElementAt(int i);
  606.  
  607.        
  608.  
  609.  
  610.         /******************************* Checking and Setting NIL values *********************************/
  611.         /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
  612.  
  613.         /**
  614.          * NOTE: set_nil is only available for nillable properties
  615.          */
  616.  
  617.        
  618.  
  619.         /**
  620.          * Check whether DetailLevel is Nill
  621.          * @return true if the element is Nil, false otherwise
  622.          */
  623.         bool WSF_CALL
  624.         isDetailLevelNil();
  625.  
  626.  
  627.        
  628.  
  629.         /**
  630.          * Check whether ErrorLanguage is Nill
  631.          * @return true if the element is Nil, false otherwise
  632.          */
  633.         bool WSF_CALL
  634.         isErrorLanguageNil();
  635.  
  636.  
  637.        
  638.  
  639.         /**
  640.          * Check whether MessageID is Nill
  641.          * @return true if the element is Nil, false otherwise
  642.          */
  643.         bool WSF_CALL
  644.         isMessageIDNil();
  645.  
  646.  
  647.        
  648.  
  649.         /**
  650.          * Check whether Version is Nill
  651.          * @return true if the element is Nil, false otherwise
  652.          */
  653.         bool WSF_CALL
  654.         isVersionNil();
  655.  
  656.  
  657.        
  658.  
  659.         /**
  660.          * Check whether EndUserIP is Nill
  661.          * @return true if the element is Nil, false otherwise
  662.          */
  663.         bool WSF_CALL
  664.         isEndUserIPNil();
  665.  
  666.  
  667.        
  668.  
  669.         /**
  670.          * Check whether ErrorHandling is Nill
  671.          * @return true if the element is Nil, false otherwise
  672.          */
  673.         bool WSF_CALL
  674.         isErrorHandlingNil();
  675.  
  676.  
  677.        
  678.  
  679.         /**
  680.          * Check whether InvocationID is Nill
  681.          * @return true if the element is Nil, false otherwise
  682.          */
  683.         bool WSF_CALL
  684.         isInvocationIDNil();
  685.  
  686.  
  687.        
  688.  
  689.         /**
  690.          * Check whether OutputSelector is Nill
  691.          * @return true if the element is Nil, false otherwise
  692.          */
  693.         bool WSF_CALL
  694.         isOutputSelectorNil();
  695.  
  696.  
  697.        
  698.  
  699.         /**
  700.          * Check whether WarningLevel is Nill
  701.          * @return true if the element is Nil, false otherwise
  702.          */
  703.         bool WSF_CALL
  704.         isWarningLevelNil();
  705.  
  706.  
  707.        
  708.  
  709.         /**
  710.          * Check whether BotBlock is Nill
  711.          * @return true if the element is Nil, false otherwise
  712.          */
  713.         bool WSF_CALL
  714.         isBotBlockNil();
  715.  
  716.  
  717.        
  718.  
  719.         /**
  720.          * Check whether extraElement is Nill
  721.          * @return true if the element is Nil, false otherwise
  722.          */
  723.         bool WSF_CALL
  724.         isExtraElementNil();
  725.  
  726.  
  727.        
  728.  
  729.         /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
  730.  
  731.         /**
  732.          * NOTE: You may set this to remove specific elements in the array
  733.          *       But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
  734.          */
  735.        
  736.         /**
  737.          * Check whether DetailLevel is Nill at position i
  738.          * @param i index of the item to return.
  739.          * @return true if the value is Nil at position i, false otherwise
  740.          */
  741.         bool WSF_CALL
  742.         isDetailLevelNilAt(int i);
  743.  
  744.        
  745.         /**
  746.          * Set DetailLevel to NILL at the  position i.
  747.          * @param i . The index of the item to be set Nill.
  748.          * @return true on success, false otherwise.
  749.          */
  750.         bool WSF_CALL
  751.         setDetailLevelNilAt(int i);
  752.  
  753.        
  754.         /**
  755.          * Check whether OutputSelector is Nill at position i
  756.          * @param i index of the item to return.
  757.          * @return true if the value is Nil at position i, false otherwise
  758.          */
  759.         bool WSF_CALL
  760.         isOutputSelectorNilAt(int i);
  761.  
  762.        
  763.         /**
  764.          * Set OutputSelector to NILL at the  position i.
  765.          * @param i . The index of the item to be set Nill.
  766.          * @return true on success, false otherwise.
  767.          */
  768.         bool WSF_CALL
  769.         setOutputSelectorNilAt(int i);
  770.  
  771.        
  772.         /**
  773.          * Check whether extraElement is Nill at position i
  774.          * @param i index of the item to return.
  775.          * @return true if the value is Nil at position i, false otherwise
  776.          */
  777.         bool WSF_CALL
  778.         isExtraElementNilAt(int i);
  779.  
  780.        
  781.         /**
  782.          * Set extraElement to NILL at the  position i.
  783.          * @param i . The index of the item to be set Nill.
  784.          * @return true on success, false otherwise.
  785.          */
  786.         bool WSF_CALL
  787.         setExtraElementNilAt(int i);
  788.  
  789.        
  790.  
  791.         /**************************** Serialize and De serialize functions ***************************/
  792.         /*********** These functions are for use only inside the generated code *********************/
  793.  
  794.        
  795.         /**
  796.          * Deserialize the ADB object to an XML
  797.          * @param dp_parent double pointer to the parent node to be deserialized
  798.          * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
  799.          * @param dont_care_minoccurs Dont set errors on validating minoccurs,
  800.          *              (Parent will order this in a case of choice)
  801.          * @return true on success, false otherwise
  802.          */
  803.         bool WSF_CALL
  804.         deserialize(axiom_node_t** omNode, bool *isEarlyNodeValid, bool dontCareMinoccurs);
  805.                          
  806.            
  807.  
  808.        /**
  809.          * Declare namespace in the most parent node
  810.          * @param parent_element parent element
  811.          * @param namespaces hash of namespace uri to prefix
  812.          * @param next_ns_index pointer to an int which contain the next namespace index
  813.          */
  814.         void WSF_CALL
  815.         declareParentNamespaces(axiom_element_t *parent_element, axutil_hash_t *namespaces, int *next_ns_index);
  816.  
  817.  
  818.        
  819.  
  820.         /**
  821.          * Serialize the ADB object to an xml
  822.          * @param AbstractRequestType_om_node node to serialize from
  823.          * @param AbstractRequestType_om_element parent element to serialize from
  824.          * @param tag_closed Whether the parent tag is closed or not
  825.          * @param namespaces hash of namespace uris to prefixes
  826.          * @param next_ns_index an int which contains the next namespace index
  827.          * @return axiom_node_t on success,NULL otherwise.
  828.          */
  829.         axiom_node_t* WSF_CALL
  830.         serialize(axiom_node_t* AbstractRequestType_om_node, axiom_element_t *AbstractRequestType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
  831.  
  832.         /**
  833.          * Check whether the AbstractRequestType is a particle class (E.g. group, inner sequence)
  834.          * @return true if this is a particle class, false otherwise.
  835.          */
  836.         bool WSF_CALL
  837.         isParticle();
  838.  
  839.  
  840.  
  841.         /******************************* get the value by the property number  *********************************/
  842.         /************NOTE: This method is introduced to resolve a problem in unwrapping mode *******************/
  843.  
  844.      
  845.        
  846.  
  847.         /**
  848.          * Getter for DetailLevel by property number (1)
  849.          * @return Array of ns_trading_service::DetailLevelCodeTypes.
  850.          */
  851.  
  852.         std::vector<ns_trading_service::DetailLevelCodeType*>* WSF_CALL
  853.         getProperty1();
  854.  
  855.    
  856.        
  857.  
  858.         /**
  859.          * Getter for ErrorLanguage by property number (2)
  860.          * @return std::string
  861.          */
  862.  
  863.         std::string WSF_CALL
  864.         getProperty2();
  865.  
  866.    
  867.        
  868.  
  869.         /**
  870.          * Getter for MessageID by property number (3)
  871.          * @return std::string
  872.          */
  873.  
  874.         std::string WSF_CALL
  875.         getProperty3();
  876.  
  877.    
  878.        
  879.  
  880.         /**
  881.          * Getter for Version by property number (4)
  882.          * @return std::string
  883.          */
  884.  
  885.         std::string WSF_CALL
  886.         getProperty4();
  887.  
  888.    
  889.        
  890.  
  891.         /**
  892.          * Getter for EndUserIP by property number (5)
  893.          * @return std::string
  894.          */
  895.  
  896.         std::string WSF_CALL
  897.         getProperty5();
  898.  
  899.    
  900.        
  901.  
  902.         /**
  903.          * Getter for ErrorHandling by property number (6)
  904.          * @return ns_trading_service::ErrorHandlingCodeType
  905.          */
  906.  
  907.         ns_trading_service::ErrorHandlingCodeType* WSF_CALL
  908.         getProperty6();
  909.  
  910.    
  911.        
  912.  
  913.         /**
  914.          * Getter for InvocationID by property number (7)
  915.          * @return ns_trading_service::UUIDType
  916.          */
  917.  
  918.         ns_trading_service::UUIDType* WSF_CALL
  919.         getProperty7();
  920.  
  921.    
  922.        
  923.  
  924.         /**
  925.          * Getter for OutputSelector by property number (8)
  926.          * @return Array of std::strings.
  927.          */
  928.  
  929.         std::vector<std::string*>* WSF_CALL
  930.         getProperty8();
  931.  
  932.    
  933.        
  934.  
  935.         /**
  936.          * Getter for WarningLevel by property number (9)
  937.          * @return ns_trading_service::WarningLevelCodeType
  938.          */
  939.  
  940.         ns_trading_service::WarningLevelCodeType* WSF_CALL
  941.         getProperty9();
  942.  
  943.    
  944.        
  945.  
  946.         /**
  947.          * Getter for BotBlock by property number (10)
  948.          * @return ns_trading_service::BotBlockRequestType
  949.          */
  950.  
  951.         ns_trading_service::BotBlockRequestType* WSF_CALL
  952.         getProperty10();
  953.  
  954.    
  955.        
  956.  
  957.         /**
  958.          * Getter for extraElement by property number (11)
  959.          * @return Array of wso2wsf::OMElement*s.
  960.          */
  961.  
  962.         std::vector<wso2wsf::OMElement*>* WSF_CALL
  963.         getProperty11();
  964.  
  965.    
  966.  
  967. };
  968.  
  969. }        
  970.  #endif /* TRADING_ABSTRACTREQUESTTYPE_H */
Advertisement
Add Comment
Please, Sign In to add comment