Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 10.44 KB | None | 0 0
  1.  
  2.  
  3.         #ifndef ABSTRACTREQUESTTYPE_H
  4.         #define 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 eblbasecomponents_apis_ebay{
  18.             class AbstractRequestType;
  19.         }
  20.        
  21.  
  22.        
  23.  
  24.         #include <stdio.h>
  25.         #include <OMElement.h>
  26.         #include <ServiceClient.h>
  27.         #include <ADBDefines.h>
  28.  
  29. namespace eblbasecomponents_apis_ebay
  30. {
  31.        
  32.        
  33.  
  34.         class AbstractRequestType {
  35.  
  36.         private:
  37.              std::string property_MessageID;
  38.  
  39.                
  40.                 bool isValidMessageID;
  41.             std::vector<wso2wsf::OMElement*>* property_ExtraElement;
  42.  
  43.                
  44.                 bool isValidExtraElement;
  45.            
  46.  
  47.         /*** Private methods ***/
  48.          
  49.  
  50.         bool WSF_CALL
  51.         setMessageIDNil();
  52.            
  53.  
  54.         bool WSF_CALL
  55.         setExtraElementNil();
  56.            
  57.  
  58.  
  59.  
  60.         /******************************* public functions *********************************/
  61.  
  62.         public:
  63.  
  64.         /**
  65.          * Constructor for class AbstractRequestType
  66.          */
  67.  
  68.         AbstractRequestType();
  69.  
  70.         /**
  71.          * Destructor AbstractRequestType
  72.          */
  73.         ~AbstractRequestType();
  74.  
  75.  
  76.        
  77.  
  78.         /**
  79.          * Constructor for creating AbstractRequestType
  80.          * @param
  81.          * @param MessageID std::string
  82.          * @param ExtraElement std::vector<wso2wsf::OMElement*>*
  83.          * @return newly created AbstractRequestType object
  84.          */
  85.         AbstractRequestType(std::string arg_MessageID,std::vector<wso2wsf::OMElement*>* arg_ExtraElement);
  86.        
  87.        
  88.         /********************************** Class get set methods **************************************/
  89.         /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
  90.        
  91.  
  92.         /**
  93.          * Getter for MessageID.
  94.          * @return std::string*
  95.          */
  96.         WSF_EXTERN std::string WSF_CALL
  97.         getMessageID();
  98.  
  99.         /**
  100.          * Setter for MessageID.
  101.          * @param arg_MessageID std::string*
  102.          * @return true on success, false otherwise
  103.          */
  104.         WSF_EXTERN bool WSF_CALL
  105.         setMessageID(const std::string  arg_MessageID);
  106.  
  107.         /**
  108.          * Re setter for MessageID
  109.          * @return true on success, false
  110.          */
  111.         WSF_EXTERN bool WSF_CALL
  112.         resetMessageID();
  113.        
  114.        
  115.  
  116.         /**
  117.          * Getter for extraElement. Deprecated for array types, Use getExtraElementAt instead
  118.          * @return Array of wso2wsf::OMElement*s.
  119.          */
  120.         WSF_EXTERN std::vector<wso2wsf::OMElement*>* WSF_CALL
  121.         getExtraElement();
  122.  
  123.         /**
  124.          * Setter for extraElement.Deprecated for array types, Use setExtraElementAt
  125.          * or addExtraElement instead.
  126.          * @param arg_ExtraElement Array of wso2wsf::OMElement*s.
  127.          * @return true on success, false otherwise
  128.          */
  129.         WSF_EXTERN bool WSF_CALL
  130.         setExtraElement(std::vector<wso2wsf::OMElement*>*  arg_ExtraElement);
  131.  
  132.         /**
  133.          * Re setter for extraElement
  134.          * @return true on success, false
  135.          */
  136.         WSF_EXTERN bool WSF_CALL
  137.         resetExtraElement();
  138.        
  139.         /****************************** Get Set methods for Arrays **********************************/
  140.         /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
  141.  
  142.         /**
  143.          * E.g. use of get_at, set_at, add and sizeof
  144.          *
  145.          * for(i = 0; i < adb_element->sizeofProperty(); i ++ )
  146.          * {
  147.          *     // Getting ith value to property_object variable
  148.          *     property_object = adb_element->getPropertyAt(i);
  149.          *
  150.          *     // Setting ith value from property_object variable
  151.          *     adb_element->setPropertyAt(i, property_object);
  152.          *
  153.          *     // Appending the value to the end of the array from property_object variable
  154.          *     adb_element->addProperty(property_object);
  155.          *
  156.          *     // Removing the ith value from an array
  157.          *     adb_element->removePropertyAt(i);
  158.          *    
  159.          * }
  160.          *
  161.          */
  162.  
  163.        
  164.        
  165.         /**
  166.          * Get the ith element of extraElement.
  167.         * @param i index of the item to be obtained
  168.          * @return ith wso2wsf::OMElement* of the array
  169.          */
  170.         WSF_EXTERN wso2wsf::OMElement* WSF_CALL
  171.         getExtraElementAt(int i);
  172.  
  173.         /**
  174.          * Set the ith element of extraElement. (If the ith already exist, it will be replaced)
  175.          * @param i index of the item to return
  176.          * @param arg_ExtraElement element to set wso2wsf::OMElement* to the array
  177.          * @return ith wso2wsf::OMElement* of the array
  178.          */
  179.         WSF_EXTERN bool WSF_CALL
  180.         setExtraElementAt(int i,
  181.                 wso2wsf::OMElement* arg_ExtraElement);
  182.  
  183.  
  184.         /**
  185.          * Add to extraElement.
  186.          * @param arg_ExtraElement element to add wso2wsf::OMElement* to the array
  187.          * @return true on success, false otherwise.
  188.          */
  189.         WSF_EXTERN bool WSF_CALL
  190.         addExtraElement(
  191.             wso2wsf::OMElement* arg_ExtraElement);
  192.  
  193.         /**
  194.          * Get the size of the extraElement array.
  195.          * @return the size of the extraElement array.
  196.          */
  197.         WSF_EXTERN int WSF_CALL
  198.         sizeofExtraElement();
  199.  
  200.         /**
  201.          * Remove the ith element of extraElement.
  202.          * @param i index of the item to remove
  203.          * @return true on success, false otherwise.
  204.          */
  205.         WSF_EXTERN bool WSF_CALL
  206.         removeExtraElementAt(int i);
  207.  
  208.        
  209.  
  210.  
  211.         /******************************* Checking and Setting NIL values *********************************/
  212.         /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
  213.  
  214.         /**
  215.          * NOTE: set_nil is only available for nillable properties
  216.          */
  217.  
  218.        
  219.  
  220.         /**
  221.          * Check whether MessageID is Nill
  222.          * @return true if the element is Nil, false otherwise
  223.          */
  224.         bool WSF_CALL
  225.         isMessageIDNil();
  226.  
  227.  
  228.        
  229.  
  230.         /**
  231.          * Check whether extraElement is Nill
  232.          * @return true if the element is Nil, false otherwise
  233.          */
  234.         bool WSF_CALL
  235.         isExtraElementNil();
  236.  
  237.  
  238.        
  239.  
  240.         /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
  241.  
  242.         /**
  243.          * NOTE: You may set this to remove specific elements in the array
  244.          *       But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
  245.          */
  246.        
  247.         /**
  248.          * Check whether extraElement is Nill at position i
  249.          * @param i index of the item to return.
  250.          * @return true if the value is Nil at position i, false otherwise
  251.          */
  252.         bool WSF_CALL
  253.         isExtraElementNilAt(int i);
  254.  
  255.        
  256.         /**
  257.          * Set extraElement to NILL at the  position i.
  258.          * @param i . The index of the item to be set Nill.
  259.          * @return true on success, false otherwise.
  260.          */
  261.         bool WSF_CALL
  262.         setExtraElementNilAt(int i);
  263.  
  264.        
  265.  
  266.         /**************************** Serialize and De serialize functions ***************************/
  267.         /*********** These functions are for use only inside the generated code *********************/
  268.  
  269.        
  270.         /**
  271.          * Deserialize the ADB object to an XML
  272.          * @param dp_parent double pointer to the parent node to be deserialized
  273.          * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
  274.          * @param dont_care_minoccurs Dont set errors on validating minoccurs,
  275.          *              (Parent will order this in a case of choice)
  276.          * @return true on success, false otherwise
  277.          */
  278.         bool WSF_CALL
  279.         deserialize(axiom_node_t** omNode, bool *isEarlyNodeValid, bool dontCareMinoccurs);
  280.                          
  281.            
  282.  
  283.        /**
  284.          * Declare namespace in the most parent node
  285.          * @param parent_element parent element
  286.          * @param namespaces hash of namespace uri to prefix
  287.          * @param next_ns_index pointer to an int which contain the next namespace index
  288.          */
  289.         void WSF_CALL
  290.         declareParentNamespaces(axiom_element_t *parent_element, axutil_hash_t *namespaces, int *next_ns_index);
  291.  
  292.  
  293.        
  294.  
  295.         /**
  296.          * Serialize the ADB object to an xml
  297.          * @param AbstractRequestType_om_node node to serialize from
  298.          * @param AbstractRequestType_om_element parent element to serialize from
  299.          * @param tag_closed Whether the parent tag is closed or not
  300.          * @param namespaces hash of namespace uris to prefixes
  301.          * @param next_ns_index an int which contains the next namespace index
  302.          * @return axiom_node_t on success,NULL otherwise.
  303.          */
  304.         axiom_node_t* WSF_CALL
  305.         serialize(axiom_node_t* AbstractRequestType_om_node, axiom_element_t *AbstractRequestType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
  306.  
  307.         /**
  308.          * Check whether the AbstractRequestType is a particle class (E.g. group, inner sequence)
  309.          * @return true if this is a particle class, false otherwise.
  310.          */
  311.         bool WSF_CALL
  312.         isParticle();
  313.  
  314.  
  315.  
  316.         /******************************* get the value by the property number  *********************************/
  317.         /************NOTE: This method is introduced to resolve a problem in unwrapping mode *******************/
  318.  
  319.      
  320.        
  321.  
  322.         /**
  323.          * Getter for MessageID by property number (1)
  324.          * @return std::string
  325.          */
  326.  
  327.         std::string WSF_CALL
  328.         getProperty1();
  329.  
  330.    
  331.        
  332.  
  333.         /**
  334.          * Getter for extraElement by property number (2)
  335.          * @return Array of wso2wsf::OMElement*s.
  336.          */
  337.  
  338.         std::vector<wso2wsf::OMElement*>* WSF_CALL
  339.         getProperty2();
  340.  
  341.    
  342.  
  343. };
  344.  
  345. }        
  346.  #endif /* ABSTRACTREQUESTTYPE_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement