text: /*
  * Copyright 2009-2010 WSO2, Inc. http://wso2.com
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  
  
          #ifndef ADB_EXCEPTION_H
          #define ADB_EXCEPTION_H
  
         /**
          * adb_Exception.h
          *
          * This file was auto-generated from WSDL
          * by the Apache Axis2/Java version: #axisVersion# #today#
          */
  
         /**
          *  adb_Exception class
          */
  
          
  
          #include <stdio.h>
          #include <axiom.h>
          #include <axis2_util.h>
          #include <axiom_soap.h>
          #include <axis2_client.h>
  
          #include "axis2_extension_mapper.h"
  
          #ifdef __cplusplus
          extern "C"
          {
          #endif
  
          #define ADB_DEFAULT_DIGIT_LIMIT 1024
          #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
          
  
          typedef struct adb_Exception adb_Exception_t;
  
          
          
  
          /******************************* Create and Free functions *********************************/
  
          /**
           * Constructor for creating adb_Exception_t
           * @param env pointer to environment struct
           * @return newly created adb_Exception_t object
           */
          adb_Exception_t* AXIS2_CALL
          adb_Exception_create(
              const axutil_env_t *env );
  
          /**
           * Wrapper for the "free" function, will invoke the extension mapper instead
           * @param  _Exception adb_Exception_t object to free
           * @param env pointer to environment struct
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_free (
              adb_Exception_t* _Exception,
              const axutil_env_t *env);
  
          /**
           * Free adb_Exception_t object
           * @param  _Exception adb_Exception_t object to free
           * @param env pointer to environment struct
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_free_obj (
              adb_Exception_t* _Exception,
              const axutil_env_t *env);
  
  
  
          /********************************** Getters and Setters **************************************/
          
          
  
          /**
           * Getter for Exception. 
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @return axiom_node_t*
           */
          axiom_node_t* AXIS2_CALL
          adb_Exception_get_Exception(
              adb_Exception_t* _Exception,
              const axutil_env_t *env);
  
          /**
           * Setter for Exception.
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @param arg_Exception axiom_node_t*
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_set_Exception(
              adb_Exception_t* _Exception,
              const axutil_env_t *env,
              axiom_node_t*  arg_Exception);
  
          /**
           * Resetter for Exception
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_reset_Exception(
              adb_Exception_t* _Exception,
              const axutil_env_t *env);
  
          
  
  
          /******************************* Checking and Setting NIL values *********************************/
          
  
          /**
           * NOTE: set_nil is only available for nillable properties
           */
  
          
  
          /**
           * Check whether Exception is nill
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
           */
          axis2_bool_t AXIS2_CALL
          adb_Exception_is_Exception_nil(
                  adb_Exception_t* _Exception,
                  const axutil_env_t *env);
  
  
          
          /**
           * Set Exception to nill (currently the same as reset)
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_set_Exception_nil(
                  adb_Exception_t* _Exception,
                  const axutil_env_t *env);
          
  
          /**************************** Serialize and Deserialize functions ***************************/
          /*********** These functions are for use only inside the generated code *********************/
  
          
          /**
           * Wrapper for the deserialization function, will invoke the extension mapper instead
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @param dp_parent double pointer to the parent node to deserialize
           * @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 AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_deserialize(
              adb_Exception_t* _Exception,
              const axutil_env_t *env,
              axiom_node_t** dp_parent,
              axis2_bool_t *dp_is_early_node_valid,
              axis2_bool_t dont_care_minoccurs);
  
          /**
           * Deserialize an XML to adb objects
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @param dp_parent double pointer to the parent node to deserialize
           * @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 AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axis2_status_t AXIS2_CALL
          adb_Exception_deserialize_obj(
              adb_Exception_t* _Exception,
              const axutil_env_t *env,
              axiom_node_t** dp_parent,
              axis2_bool_t *dp_is_early_node_valid,
              axis2_bool_t dont_care_minoccurs);
                              
              
  
         /**
           * Declare namespace in the most parent node 
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @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 AXIS2_CALL
         adb_Exception_declare_parent_namespaces(
                      adb_Exception_t* _Exception,
                      const axutil_env_t *env, axiom_element_t *parent_element,
                      axutil_hash_t *namespaces, int *next_ns_index);
  
          
  
          /**
           * Wrapper for the serialization function, will invoke the extension mapper instead
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @param Exception_om_node node to serialize from
           * @param Exception_om_element parent element to serialize from
           * @param tag_closed whether the parent tag is closed or not
           * @param namespaces hash of namespace uri to prefix
           * @param next_ns_index an int which contain the next namespace index
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axiom_node_t* AXIS2_CALL
          adb_Exception_serialize(
              adb_Exception_t* _Exception,
              const axutil_env_t *env,
              axiom_node_t* Exception_om_node, axiom_element_t *Exception_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
  
          /**
           * Serialize to an XML from the adb objects
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @param Exception_om_node node to serialize from
           * @param Exception_om_element parent element to serialize from
           * @param tag_closed whether the parent tag is closed or not
           * @param namespaces hash of namespace uri to prefix
           * @param next_ns_index an int which contain the next namespace index
           * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
           */
          axiom_node_t* AXIS2_CALL
          adb_Exception_serialize_obj(
              adb_Exception_t* _Exception,
              const axutil_env_t *env,
              axiom_node_t* Exception_om_node, axiom_element_t *Exception_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
  
          /**
           * Check whether the adb_Exception is a particle class (E.g. group, inner sequence)
           * @return whether this is a particle class.
           */
          axis2_bool_t AXIS2_CALL
          adb_Exception_is_particle();
  
          /******************************* Alternatives for Create and Free functions *********************************/
  
          
  
          /**
           * Constructor for creating adb_Exception_t
           * @param env pointer to environment struct
           * @param _Exception axiom_node_t*
           * @return newly created adb_Exception_t object
           */
          adb_Exception_t* AXIS2_CALL
          adb_Exception_create_with_values(
              const axutil_env_t *env,
                  axiom_node_t* _Exception);
  
          
  
  
                  /**
                   * Free adb_Exception_t object and return the property value.
                   * You can use this to free the adb object as returning the property value. If there are
                   * many properties, it will only return the first property. Other properties will get freed with the adb object.
                   * @param  _Exception adb_Exception_t object to free
                   * @param env pointer to environment struct
                   * @return the property value holded by the ADB object, if there are many properties only returns the first.
                   */
                  axiom_node_t* AXIS2_CALL
                  adb_Exception_free_popping_value(
                          adb_Exception_t* _Exception,
                          const axutil_env_t *env);
              
  
          /******************************* get the value by the property number  *********************************/
          /************NOTE: This method is introduced to resolve a problem in unwrapping mode *******************/
  
          
          
  
          /**
           * Getter for Exception by property number (1)
           * @param  _Exception adb_Exception_t object
           * @param env pointer to environment struct
           * @return axiom_node_t*
           */
          axiom_node_t* AXIS2_CALL
          adb_Exception_get_property1(
              adb_Exception_t* _Exception,
              const axutil_env_t *env);
  
      
       #ifdef __cplusplus
       }
       #endif
  
       #endif /* ADB_EXCEPTION_H */
      
  
  