Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ABSTRACTREQUESTTYPE_H
- #define ABSTRACTREQUESTTYPE_H
- /**
- * AbstractRequestType.h
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis2/Java version: 1.0 Built on : Oct 15, 2009 (12:37:29 IST)
- */
- /**
- * AbstractRequestType class
- */
- namespace eblbasecomponents_apis_ebay{
- class AbstractRequestType;
- }
- #include <stdio.h>
- #include <OMElement.h>
- #include <ServiceClient.h>
- #include <ADBDefines.h>
- namespace eblbasecomponents_apis_ebay
- {
- class AbstractRequestType {
- private:
- std::string property_MessageID;
- bool isValidMessageID;
- std::vector<wso2wsf::OMElement*>* property_ExtraElement;
- bool isValidExtraElement;
- /*** Private methods ***/
- bool WSF_CALL
- setMessageIDNil();
- bool WSF_CALL
- setExtraElementNil();
- /******************************* public functions *********************************/
- public:
- /**
- * Constructor for class AbstractRequestType
- */
- AbstractRequestType();
- /**
- * Destructor AbstractRequestType
- */
- ~AbstractRequestType();
- /**
- * Constructor for creating AbstractRequestType
- * @param
- * @param MessageID std::string
- * @param ExtraElement std::vector<wso2wsf::OMElement*>*
- * @return newly created AbstractRequestType object
- */
- AbstractRequestType(std::string arg_MessageID,std::vector<wso2wsf::OMElement*>* arg_ExtraElement);
- /********************************** Class get set methods **************************************/
- /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
- /**
- * Getter for MessageID.
- * @return std::string*
- */
- WSF_EXTERN std::string WSF_CALL
- getMessageID();
- /**
- * Setter for MessageID.
- * @param arg_MessageID std::string*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setMessageID(const std::string arg_MessageID);
- /**
- * Re setter for MessageID
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetMessageID();
- /**
- * Getter for extraElement. Deprecated for array types, Use getExtraElementAt instead
- * @return Array of wso2wsf::OMElement*s.
- */
- WSF_EXTERN std::vector<wso2wsf::OMElement*>* WSF_CALL
- getExtraElement();
- /**
- * Setter for extraElement.Deprecated for array types, Use setExtraElementAt
- * or addExtraElement instead.
- * @param arg_ExtraElement Array of wso2wsf::OMElement*s.
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setExtraElement(std::vector<wso2wsf::OMElement*>* arg_ExtraElement);
- /**
- * Re setter for extraElement
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetExtraElement();
- /****************************** Get Set methods for Arrays **********************************/
- /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
- /**
- * E.g. use of get_at, set_at, add and sizeof
- *
- * for(i = 0; i < adb_element->sizeofProperty(); i ++ )
- * {
- * // Getting ith value to property_object variable
- * property_object = adb_element->getPropertyAt(i);
- *
- * // Setting ith value from property_object variable
- * adb_element->setPropertyAt(i, property_object);
- *
- * // Appending the value to the end of the array from property_object variable
- * adb_element->addProperty(property_object);
- *
- * // Removing the ith value from an array
- * adb_element->removePropertyAt(i);
- *
- * }
- *
- */
- /**
- * Get the ith element of extraElement.
- * @param i index of the item to be obtained
- * @return ith wso2wsf::OMElement* of the array
- */
- WSF_EXTERN wso2wsf::OMElement* WSF_CALL
- getExtraElementAt(int i);
- /**
- * Set the ith element of extraElement. (If the ith already exist, it will be replaced)
- * @param i index of the item to return
- * @param arg_ExtraElement element to set wso2wsf::OMElement* to the array
- * @return ith wso2wsf::OMElement* of the array
- */
- WSF_EXTERN bool WSF_CALL
- setExtraElementAt(int i,
- wso2wsf::OMElement* arg_ExtraElement);
- /**
- * Add to extraElement.
- * @param arg_ExtraElement element to add wso2wsf::OMElement* to the array
- * @return true on success, false otherwise.
- */
- WSF_EXTERN bool WSF_CALL
- addExtraElement(
- wso2wsf::OMElement* arg_ExtraElement);
- /**
- * Get the size of the extraElement array.
- * @return the size of the extraElement array.
- */
- WSF_EXTERN int WSF_CALL
- sizeofExtraElement();
- /**
- * Remove the ith element of extraElement.
- * @param i index of the item to remove
- * @return true on success, false otherwise.
- */
- WSF_EXTERN bool WSF_CALL
- removeExtraElementAt(int i);
- /******************************* Checking and Setting NIL values *********************************/
- /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
- /**
- * NOTE: set_nil is only available for nillable properties
- */
- /**
- * Check whether MessageID is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isMessageIDNil();
- /**
- * Check whether extraElement is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isExtraElementNil();
- /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
- /**
- * NOTE: You may set this to remove specific elements in the array
- * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
- */
- /**
- * Check whether extraElement is Nill at position i
- * @param i index of the item to return.
- * @return true if the value is Nil at position i, false otherwise
- */
- bool WSF_CALL
- isExtraElementNilAt(int i);
- /**
- * Set extraElement to NILL at the position i.
- * @param i . The index of the item to be set Nill.
- * @return true on success, false otherwise.
- */
- bool WSF_CALL
- setExtraElementNilAt(int i);
- /**************************** Serialize and De serialize functions ***************************/
- /*********** These functions are for use only inside the generated code *********************/
- /**
- * Deserialize the ADB object to an XML
- * @param dp_parent double pointer to the parent node to be deserialized
- * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
- * @param dont_care_minoccurs Dont set errors on validating minoccurs,
- * (Parent will order this in a case of choice)
- * @return true on success, false otherwise
- */
- bool WSF_CALL
- deserialize(axiom_node_t** omNode, bool *isEarlyNodeValid, bool dontCareMinoccurs);
- /**
- * Declare namespace in the most parent node
- * @param parent_element parent element
- * @param namespaces hash of namespace uri to prefix
- * @param next_ns_index pointer to an int which contain the next namespace index
- */
- void WSF_CALL
- declareParentNamespaces(axiom_element_t *parent_element, axutil_hash_t *namespaces, int *next_ns_index);
- /**
- * Serialize the ADB object to an xml
- * @param AbstractRequestType_om_node node to serialize from
- * @param AbstractRequestType_om_element parent element to serialize from
- * @param tag_closed Whether the parent tag is closed or not
- * @param namespaces hash of namespace uris to prefixes
- * @param next_ns_index an int which contains the next namespace index
- * @return axiom_node_t on success,NULL otherwise.
- */
- axiom_node_t* WSF_CALL
- serialize(axiom_node_t* AbstractRequestType_om_node, axiom_element_t *AbstractRequestType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
- /**
- * Check whether the AbstractRequestType is a particle class (E.g. group, inner sequence)
- * @return true if this is a particle class, false otherwise.
- */
- bool WSF_CALL
- isParticle();
- /******************************* get the value by the property number *********************************/
- /************NOTE: This method is introduced to resolve a problem in unwrapping mode *******************/
- /**
- * Getter for MessageID by property number (1)
- * @return std::string
- */
- std::string WSF_CALL
- getProperty1();
- /**
- * Getter for extraElement by property number (2)
- * @return Array of wso2wsf::OMElement*s.
- */
- std::vector<wso2wsf::OMElement*>* WSF_CALL
- getProperty2();
- };
- }
- #endif /* ABSTRACTREQUESTTYPE_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement