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 ns_trading_service{
- class AbstractRequestType;
- }
- #include "DetailLevelCodeType.h"
- #include "ErrorHandlingCodeType.h"
- #include "UUIDType.h"
- #include "WarningLevelCodeType.h"
- #include "BotBlockRequestType.h"
- #include <stdio.h>
- #include <OMElement.h>
- #include <ServiceClient.h>
- #include <ADBDefines.h>
- namespace ns_trading_service
- {
- class AbstractRequestType {
- private:
- std::vector<ns_trading_service::DetailLevelCodeType*>* property_DetailLevel;
- bool isValidDetailLevel;
- std::string property_ErrorLanguage;
- bool isValidErrorLanguage;
- std::string property_MessageID;
- bool isValidMessageID;
- std::string property_Version;
- bool isValidVersion;
- std::string property_EndUserIP;
- bool isValidEndUserIP;
- ns_trading_service::ErrorHandlingCodeType* property_ErrorHandling;
- bool isValidErrorHandling;
- ns_trading_service::UUIDType* property_InvocationID;
- bool isValidInvocationID;
- std::vector<std::string*>* property_OutputSelector;
- bool isValidOutputSelector;
- ns_trading_service::WarningLevelCodeType* property_WarningLevel;
- bool isValidWarningLevel;
- ns_trading_service::BotBlockRequestType* property_BotBlock;
- bool isValidBotBlock;
- std::vector<wso2wsf::OMElement*>* property_ExtraElement;
- bool isValidExtraElement;
- /*** Private methods ***/
- bool WSF_CALL
- setDetailLevelNil();
- bool WSF_CALL
- setErrorLanguageNil();
- bool WSF_CALL
- setMessageIDNil();
- bool WSF_CALL
- setVersionNil();
- bool WSF_CALL
- setEndUserIPNil();
- bool WSF_CALL
- setErrorHandlingNil();
- bool WSF_CALL
- setInvocationIDNil();
- bool WSF_CALL
- setOutputSelectorNil();
- bool WSF_CALL
- setWarningLevelNil();
- bool WSF_CALL
- setBotBlockNil();
- bool WSF_CALL
- setExtraElementNil();
- /******************************* public functions *********************************/
- public:
- /**
- * Constructor for class AbstractRequestType
- */
- AbstractRequestType();
- /**
- * Destructor AbstractRequestType
- */
- ~AbstractRequestType();
- /**
- * Constructor for creating AbstractRequestType
- * @param
- * @param DetailLevel std::vector<ns_trading_service::DetailLevelCodeType*>*
- * @param ErrorLanguage std::string
- * @param MessageID std::string
- * @param Version std::string
- * @param EndUserIP std::string
- * @param ErrorHandling ns_trading_service::ErrorHandlingCodeType*
- * @param InvocationID ns_trading_service::UUIDType*
- * @param OutputSelector std::vector<std::string*>*
- * @param WarningLevel ns_trading_service::WarningLevelCodeType*
- * @param BotBlock ns_trading_service::BotBlockRequestType*
- * @param ExtraElement std::vector<wso2wsf::OMElement*>*
- * @return newly created AbstractRequestType object
- */
- 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);
- /********************************** Class get set methods **************************************/
- /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
- /**
- * Getter for DetailLevel. Deprecated for array types, Use getDetailLevelAt instead
- * @return Array of ns_trading_service::DetailLevelCodeType*s.
- */
- WSF_EXTERN std::vector<ns_trading_service::DetailLevelCodeType*>* WSF_CALL
- getDetailLevel();
- /**
- * Setter for DetailLevel.Deprecated for array types, Use setDetailLevelAt
- * or addDetailLevel instead.
- * @param arg_DetailLevel Array of ns_trading_service::DetailLevelCodeType*s.
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setDetailLevel(std::vector<ns_trading_service::DetailLevelCodeType*>* arg_DetailLevel);
- /**
- * Re setter for DetailLevel
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetDetailLevel();
- /**
- * Getter for ErrorLanguage.
- * @return std::string*
- */
- WSF_EXTERN std::string WSF_CALL
- getErrorLanguage();
- /**
- * Setter for ErrorLanguage.
- * @param arg_ErrorLanguage std::string*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setErrorLanguage(const std::string arg_ErrorLanguage);
- /**
- * Re setter for ErrorLanguage
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetErrorLanguage();
- /**
- * 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 Version.
- * @return std::string*
- */
- WSF_EXTERN std::string WSF_CALL
- getVersion();
- /**
- * Setter for Version.
- * @param arg_Version std::string*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setVersion(const std::string arg_Version);
- /**
- * Re setter for Version
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetVersion();
- /**
- * Getter for EndUserIP.
- * @return std::string*
- */
- WSF_EXTERN std::string WSF_CALL
- getEndUserIP();
- /**
- * Setter for EndUserIP.
- * @param arg_EndUserIP std::string*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setEndUserIP(const std::string arg_EndUserIP);
- /**
- * Re setter for EndUserIP
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetEndUserIP();
- /**
- * Getter for ErrorHandling.
- * @return ns_trading_service::ErrorHandlingCodeType*
- */
- WSF_EXTERN ns_trading_service::ErrorHandlingCodeType* WSF_CALL
- getErrorHandling();
- /**
- * Setter for ErrorHandling.
- * @param arg_ErrorHandling ns_trading_service::ErrorHandlingCodeType*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setErrorHandling(ns_trading_service::ErrorHandlingCodeType* arg_ErrorHandling);
- /**
- * Re setter for ErrorHandling
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetErrorHandling();
- /**
- * Getter for InvocationID.
- * @return ns_trading_service::UUIDType*
- */
- WSF_EXTERN ns_trading_service::UUIDType* WSF_CALL
- getInvocationID();
- /**
- * Setter for InvocationID.
- * @param arg_InvocationID ns_trading_service::UUIDType*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setInvocationID(ns_trading_service::UUIDType* arg_InvocationID);
- /**
- * Re setter for InvocationID
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetInvocationID();
- /**
- * Getter for OutputSelector. Deprecated for array types, Use getOutputSelectorAt instead
- * @return Array of std::strings.
- */
- WSF_EXTERN std::vector<std::string*>* WSF_CALL
- getOutputSelector();
- /**
- * Setter for OutputSelector.Deprecated for array types, Use setOutputSelectorAt
- * or addOutputSelector instead.
- * @param arg_OutputSelector Array of std::strings.
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setOutputSelector(std::vector<std::string*>* arg_OutputSelector);
- /**
- * Re setter for OutputSelector
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetOutputSelector();
- /**
- * Getter for WarningLevel.
- * @return ns_trading_service::WarningLevelCodeType*
- */
- WSF_EXTERN ns_trading_service::WarningLevelCodeType* WSF_CALL
- getWarningLevel();
- /**
- * Setter for WarningLevel.
- * @param arg_WarningLevel ns_trading_service::WarningLevelCodeType*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setWarningLevel(ns_trading_service::WarningLevelCodeType* arg_WarningLevel);
- /**
- * Re setter for WarningLevel
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetWarningLevel();
- /**
- * Getter for BotBlock.
- * @return ns_trading_service::BotBlockRequestType*
- */
- WSF_EXTERN ns_trading_service::BotBlockRequestType* WSF_CALL
- getBotBlock();
- /**
- * Setter for BotBlock.
- * @param arg_BotBlock ns_trading_service::BotBlockRequestType*
- * @return true on success, false otherwise
- */
- WSF_EXTERN bool WSF_CALL
- setBotBlock(ns_trading_service::BotBlockRequestType* arg_BotBlock);
- /**
- * Re setter for BotBlock
- * @return true on success, false
- */
- WSF_EXTERN bool WSF_CALL
- resetBotBlock();
- /**
- * 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 DetailLevel.
- * @param i index of the item to be obtained
- * @return ith ns_trading_service::DetailLevelCodeType* of the array
- */
- WSF_EXTERN ns_trading_service::DetailLevelCodeType* WSF_CALL
- getDetailLevelAt(int i);
- /**
- * Set the ith element of DetailLevel. (If the ith already exist, it will be replaced)
- * @param i index of the item to return
- * @param arg_DetailLevel element to set ns_trading_service::DetailLevelCodeType* to the array
- * @return ith ns_trading_service::DetailLevelCodeType* of the array
- */
- WSF_EXTERN bool WSF_CALL
- setDetailLevelAt(int i,
- ns_trading_service::DetailLevelCodeType* arg_DetailLevel);
- /**
- * Add to DetailLevel.
- * @param arg_DetailLevel element to add ns_trading_service::DetailLevelCodeType* to the array
- * @return true on success, false otherwise.
- */
- WSF_EXTERN bool WSF_CALL
- addDetailLevel(
- ns_trading_service::DetailLevelCodeType* arg_DetailLevel);
- /**
- * Get the size of the DetailLevel array.
- * @return the size of the DetailLevel array.
- */
- WSF_EXTERN int WSF_CALL
- sizeofDetailLevel();
- /**
- * Remove the ith element of DetailLevel.
- * @param i index of the item to remove
- * @return true on success, false otherwise.
- */
- WSF_EXTERN bool WSF_CALL
- removeDetailLevelAt(int i);
- /**
- * Get the ith element of OutputSelector.
- * @param i index of the item to be obtained
- * @return ith std::string of the array
- */
- WSF_EXTERN std::string WSF_CALL
- getOutputSelectorAt(int i);
- /**
- * Set the ith element of OutputSelector. (If the ith already exist, it will be replaced)
- * @param i index of the item to return
- * @param arg_OutputSelector element to set std::string to the array
- * @return ith std::string of the array
- */
- WSF_EXTERN bool WSF_CALL
- setOutputSelectorAt(int i,
- const std::string arg_OutputSelector);
- /**
- * Add to OutputSelector.
- * @param arg_OutputSelector element to add std::string to the array
- * @return true on success, false otherwise.
- */
- WSF_EXTERN bool WSF_CALL
- addOutputSelector(
- const std::string arg_OutputSelector);
- /**
- * Get the size of the OutputSelector array.
- * @return the size of the OutputSelector array.
- */
- WSF_EXTERN int WSF_CALL
- sizeofOutputSelector();
- /**
- * Remove the ith element of OutputSelector.
- * @param i index of the item to remove
- * @return true on success, false otherwise.
- */
- WSF_EXTERN bool WSF_CALL
- removeOutputSelectorAt(int 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 DetailLevel is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isDetailLevelNil();
- /**
- * Check whether ErrorLanguage is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isErrorLanguageNil();
- /**
- * Check whether MessageID is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isMessageIDNil();
- /**
- * Check whether Version is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isVersionNil();
- /**
- * Check whether EndUserIP is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isEndUserIPNil();
- /**
- * Check whether ErrorHandling is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isErrorHandlingNil();
- /**
- * Check whether InvocationID is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isInvocationIDNil();
- /**
- * Check whether OutputSelector is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isOutputSelectorNil();
- /**
- * Check whether WarningLevel is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isWarningLevelNil();
- /**
- * Check whether BotBlock is Nill
- * @return true if the element is Nil, false otherwise
- */
- bool WSF_CALL
- isBotBlockNil();
- /**
- * 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 DetailLevel 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
- isDetailLevelNilAt(int i);
- /**
- * Set DetailLevel 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
- setDetailLevelNilAt(int i);
- /**
- * Check whether OutputSelector 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
- isOutputSelectorNilAt(int i);
- /**
- * Set OutputSelector 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
- setOutputSelectorNilAt(int i);
- /**
- * 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 DetailLevel by property number (1)
- * @return Array of ns_trading_service::DetailLevelCodeTypes.
- */
- std::vector<ns_trading_service::DetailLevelCodeType*>* WSF_CALL
- getProperty1();
- /**
- * Getter for ErrorLanguage by property number (2)
- * @return std::string
- */
- std::string WSF_CALL
- getProperty2();
- /**
- * Getter for MessageID by property number (3)
- * @return std::string
- */
- std::string WSF_CALL
- getProperty3();
- /**
- * Getter for Version by property number (4)
- * @return std::string
- */
- std::string WSF_CALL
- getProperty4();
- /**
- * Getter for EndUserIP by property number (5)
- * @return std::string
- */
- std::string WSF_CALL
- getProperty5();
- /**
- * Getter for ErrorHandling by property number (6)
- * @return ns_trading_service::ErrorHandlingCodeType
- */
- ns_trading_service::ErrorHandlingCodeType* WSF_CALL
- getProperty6();
- /**
- * Getter for InvocationID by property number (7)
- * @return ns_trading_service::UUIDType
- */
- ns_trading_service::UUIDType* WSF_CALL
- getProperty7();
- /**
- * Getter for OutputSelector by property number (8)
- * @return Array of std::strings.
- */
- std::vector<std::string*>* WSF_CALL
- getProperty8();
- /**
- * Getter for WarningLevel by property number (9)
- * @return ns_trading_service::WarningLevelCodeType
- */
- ns_trading_service::WarningLevelCodeType* WSF_CALL
- getProperty9();
- /**
- * Getter for BotBlock by property number (10)
- * @return ns_trading_service::BotBlockRequestType
- */
- ns_trading_service::BotBlockRequestType* WSF_CALL
- getProperty10();
- /**
- * Getter for extraElement by property number (11)
- * @return Array of wso2wsf::OMElement*s.
- */
- std::vector<wso2wsf::OMElement*>* WSF_CALL
- getProperty11();
- };
- }
- #endif /* ABSTRACTREQUESTTYPE_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement