org.apache.axis2.schema.template.CADBBeanTemplateHeader.xsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axis2-adb-codegen Show documentation
Show all versions of axis2-adb-codegen Show documentation
ADB code generation support for Axis2
adb_
ADB_
#ifndef _H
#define _H
/**
* .h
*
* This file was auto-generated from WSDL
* by the Apache Axis2/Java version: #axisVersion# #today#
*/
#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
#define ADB_DEFAULT_LIST_SEPERATOR " "
/**
* wrapped class classes ( structure for C )
*/
#ifdef __cplusplus
}
#endif
#endif /* _H */
adb_
ADB_
#ifndef _H
#define _H
/**
* .h
*
* This file was auto-generated from WSDL
* by the Apache Axis2/Java version: #axisVersion# #today#
*/
/**
* class
*/
#include " .h"
#include <axutil_date_time.h>
#include <axutil_base64_binary.h>
#include <axutil_duration.h>
#include " .h"
#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
#define ADB_DEFAULT_LIST_SEPERATOR " "
typedef struct _t;
1
0
adb_ _enum_t
/* Enumeration for this type */
typedef enum {
_
,
} ;
/******************************* Create and Free functions *********************************/
/**
* Constructor for creating _t
* @param env pointer to environment struct
* @return newly created _t object
*/
_t* AXIS2_CALL
_create(
const axutil_env_t *env );
/**
* Wrapper for the "free" function, will invoke the extension mapper instead
* @param _ _t object to free
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_free (
_t* _ ,
const axutil_env_t *env);
/**
* Free _t object
* @param _ _t object to free
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_free_obj (
_t* _ ,
const axutil_env_t *env);
/********************************** Getters and Setters **************************************/
/******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
/******** In a case of a choose among elements, the last one to set will be chooosen *********/
/******* This is a list, please use Getters and 'Setters for Array' Instead of following *****/
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
const
/**
* Getter for . Deprecated for array types, Use _get_ _at instead
* @param _ _t object
* @param env pointer to environment struct
* @return
*/
AXIS2_CALL
_get_ (
_t* _ ,
const axutil_env_t *env);
/**
* Setter for .Deprecated for array types, Use _set_ _at
* or _add_ instead.
* @param _ _t object
* @param env pointer to environment struct
* @param arg_
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_set_ (
_t* _ ,
const axutil_env_t *env,
arg_ );
/**
* Resetter for
* @param _ _t object
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_reset_ (
_t* _ ,
const axutil_env_t *env);
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
const
/**
* Getter for . Deprecated for array types, Use _get_ _at instead
* @param _ _t object
* @param env pointer to environment struct
* @return
*/
AXIS2_CALL
_get_ (
_t* _ ,
const axutil_env_t *env);
/**
* Setter for . Deprecated for array types, Use _set_ _at
* or _add_ instead.
* @param _ _t object
* @param env pointer to environment struct
* @param arg_
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_set_ (
_t* _ ,
const axutil_env_t *env,
arg_ );
/**
* Resetter for
* @param _ _t object
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_reset_ (
_t* _ ,
const axutil_env_t *env);
/****************************** Getters and Setters 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_sizeof_property(adb_object, env); i ++ )
* {
* // Getting ith value to property_object variable
* property_object = adb_element_get_property_at(adb_object, env, i);
*
* // Setting ith value from property_object variable
* adb_element_set_property_at(adb_object, env, i, property_object);
*
* // Appending the value to the end of the array from property_object variable
* adb_element_add_property(adb_object, env, property_object);
*
* // Removing the ith value from an array
* adb_element_remove_property_at(adb_object, env, i);
*
* }
*
*/
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
const
/**
* Get the ith element of .
* @param _ _t object
* @param env pointer to environment struct
* @param i index of the item to return
* @return ith of the array
*/
AXIS2_CALL
_get_ _at(
_t* _ ,
const axutil_env_t *env, int i);
/**
* Set the ith element of . (If the ith already exist, it will be replaced)
* @param _ _t object
* @param env pointer to environment struct
* @param i index of the item to return
* @param arg_ element to set to the array
* @return ith of the array
*/
axis2_status_t AXIS2_CALL
_set_ _at(
_t* _ ,
const axutil_env_t *env, int i,
arg_ );
/**
* Add to .
* @param _ _t object
* @param env pointer to environment struct
* @param arg_ element to add to the array
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_add_ (
_t* _ ,
const axutil_env_t *env,
arg_ );
/**
* Get the size of the array.
* @param _ _t object
* @param env pointer to environment struct.
* @return the size of the array.
*/
int AXIS2_CALL
_sizeof_ (
_t* _ ,
const axutil_env_t *env);
/**
* Remove the ith element of .
* @param _ _t object
* @param env pointer to environment struct
* @param i index of the item to remove
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_remove_ _at(
_t* _ ,
const axutil_env_t *env, int i);
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
const
/**
* Get the ith element of .
* @param _ _t object
* @param env pointer to environment struct
* @param i index of the item to return
* @return ith of the array
*/
AXIS2_CALL
_get_ _at(
_t* _ ,
const axutil_env_t *env, int i);
/**
* Set the ith element of . (If the ith already exist, it will be replaced)
* @param _ _t object
* @param env pointer to environment struct
* @param i index of the item to return
* @param arg_ element to set to the array
* @return ith of the array
*/
axis2_status_t AXIS2_CALL
_set_ _at(
_t* _ ,
const axutil_env_t *env, int i,
arg_ );
/**
* Add to .
* @param _ _t object
* @param env pointer to environment struct
* @param arg_ element to add to the array
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_add_ (
_t* _ ,
const axutil_env_t *env,
arg_ );
/**
* Get the size of the array.
* @param _ _t object
* @param env pointer to environment struct.
* @return the size of the array.
*/
int AXIS2_CALL
_sizeof_ (
_t* _ ,
const axutil_env_t *env);
/**
* Remove the ith element of .
* @param _ _t object
* @param env pointer to environment struct
* @param i index of the item to remove
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_remove_ _at(
_t* _ ,
const axutil_env_t *env, int i);
adb_ _enum_t
const
/************************** Getters and Setters For Enumerations ********************************/
/********************* Enumeration Specific Operations: get_enum, set_enum **********************/
/**
* Enum getter for .
* @param _ _t object
* @param env pointer to environment struct
* @return ; -1 on failure
*/
AXIS2_CALL
_get_ _enum(
_t* _ ,
const axutil_env_t *env);
/**
* Enum setter for .
* @param _ _t object
* @param env pointer to environment struct
* @param arg_
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_set_ _enum(
_t* _ ,
const axutil_env_t *env,
arg_ );
/******************************* 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
*/
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
/**
* Check whether is nill
* @param _ _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
_is_ _nil(
_t* _ ,
const axutil_env_t *env);
/**
* Set to nill (currently the same as reset)
* @param _ _t object
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_set_ _nil(
_t* _ ,
const axutil_env_t *env);
/*************************** 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
*/
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
/**
* Check whether is nill at i
* @param _ _t object
* @param env pointer to environment struct.
* @param i index of the item to return.
* @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
*/
axis2_bool_t AXIS2_CALL
_is_ _nil_at(
_t* _ ,
const axutil_env_t *env, int i);
/**
* Set to nill at i
* @param _ _ _t object
* @param env pointer to environment struct.
* @param i index of the item to set.
* @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
*/
axis2_status_t AXIS2_CALL
_set_ _nil_at(
_t* _ ,
const axutil_env_t *env, int i);
/**************************** Serialize and Deserialize functions ***************************/
/*********** These functions are for use only inside the generated code *********************/
/**
* Deserialize the content from a string to adb objects
* @param _ _t object
* @param env pointer to environment struct
* @param node_value to deserialize
* @param parent_element The parent element if it is an element, NULL otherwise
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_deserialize_from_string(
_t* _ ,
const axutil_env_t *env,
const axis2_char_t *node_value,
axiom_node_t *parent);
/**
* Wrapper for the deserialization function, will invoke the extension mapper instead
* @param _ _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
_deserialize(
_t* _ ,
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 _ _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
_deserialize_obj(
_t* _ ,
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 _ _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
_declare_parent_namespaces(
_t* _ ,
const axutil_env_t *env, axiom_element_t *parent_element,
axutil_hash_t *namespaces, int *next_ns_index);
/**
* Serialize to a String from the adb objects
* @param _ _t object
* @param env pointer to environment struct
* @param namespaces hash of namespace uri to prefix
* @return serialized string
*/
axis2_char_t* AXIS2_CALL
_serialize_to_string(
_t* _ ,
const axutil_env_t *env, axutil_hash_t *namespaces);
/**
* Wrapper for the serialization function, will invoke the extension mapper instead
* @param _ _t object
* @param env pointer to environment struct
* @param _om_node node to serialize from
* @param _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
_serialize(
_t* _ ,
const axutil_env_t *env,
axiom_node_t* _om_node, axiom_element_t * _om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
/**
* Serialize to an XML from the adb objects
* @param _ _t object
* @param env pointer to environment struct
* @param _om_node node to serialize from
* @param _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
_serialize_obj(
_t* _ ,
const axutil_env_t *env,
axiom_node_t* _om_node, axiom_element_t * _om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
/**
* Check whether the is a particle class (E.g. group, inner sequence)
* @return whether this is a particle class.
*/
axis2_bool_t AXIS2_CALL
_is_particle();
/******************************* Alternatives for Create and Free functions *********************************/
axutil_array_list_t*
axiom_node_t*
_
,
axutil_array_list_t*
axiom_node_t*
_
* @param
/**
* Constructor for creating _t
* @param env pointer to environment struct
* @return newly created _t object
*/
_t* AXIS2_CALL
_create_with_values(
const axutil_env_t *env );
axutil_array_list_t*
axiom_node_t*
_
/**
* Free _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 _ _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.
*/
AXIS2_CALL
_free_popping_value(
_t* _ ,
const axutil_env_t *env);
/**
* Free _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 _ _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.
*/
void* AXIS2_CALL
_free_popping_value(
_t* _ ,
const axutil_env_t *env);
/******************************* get the value by the property number *********************************/
/************NOTE: This method is introduced to resolve a problem in unwrapping mode *******************/
axutil_array_list_t*
axiom_node_t*
axiom_node_t*
axiom_node_t*
*
Array of s.
/**
* Getter for by property number ( )
* @param _ _t object
* @param env pointer to environment struct
* @return
*/
AXIS2_CALL
_get_property (
_t* _ ,
const axutil_env_t *env);
/**
* Getter for
* @param _ _t object
* @param env pointer to environment struct
* @return , if it the last set value
*/
AXIS2_CALL
_get_ (
_t* _ ,
const axutil_env_t *env);
/**
* Setter for
* @param _ _t object
* @param env pointer to environment struct
* @param member_type
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_set_ (
_t* _ ,
const axutil_env_t *env,
member_type);
/**
* Check if the is valid, you can replace this with _current_member_type
* @param _ _t object
* @param env pointer to environment struct
* @return is valid or not
*/
axis2_bool_t AXIS2_CALL
_is_valid_ (
_t* _ ,
const axutil_env_t *env);
/**
* Reset any value inside the union, this will take the union to NULL state
* @param _ _t object
* @param env pointer to environment struct
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
_reset_members(
_t* _ ,
const axutil_env_t *env);
/**
* Retrieve the currrent member type
* @param _ _t object
* @param env pointer to environment struct
* @return axis2_char_t*, the current member type as a string
*/
axis2_char_t* AXIS2_CALL
_current_member_type(
_t* _ ,
const axutil_env_t *env);
#ifdef __cplusplus
}
#endif
#endif /* _H */
axis2_
AXIS2_
#ifndef _H
#define _H
/**
* .h
*
* This file was auto-generated from WSDL
* by the Apache Axis2/Java version: #axisVersion# #today#
*/
#include <stdio.h>
#include <axiom.h>
#include <axis2_util.h>
#include <axiom_soap.h>
#include <axis2_client.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct adb_type adb_type_t;
/**
* Returns the type for an ADB object.
* @param object ADB object
* @return string with the object type
*/
axis2_char_t* AXIS2_CALL
adb_type_get_type(const adb_type_t *object);
/**
* Will invoke the creation function for the appropriate type, given an Axiom node.
* @param env pointer to environment struct
* @param node double pointer to the parent node to deserialize
* @param default_type string with the default type, in case the node has none
* @return ADB object on success, else NULL
*/
adb_type_t* AXIS2_CALL
axis2_extension_mapper_create_from_node(
const axutil_env_t *env,
axiom_node_t** node,
axis2_char_t *default_type);
/**
* Will invoke the "free" function for the appropriate type.
* @param _object ADB object
* @param env pointer to environment struct
* @param default_type string with the default type, in case the object has none
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
axis2_extension_mapper_free(
adb_type_t* _object,
const axutil_env_t *env,
axis2_char_t *default_type);
/**
* Will invoke the deserialization function for the appropriate type.
* @param _object ADB 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)
* @param default_type string with the default type, in case the object has none
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axis2_status_t AXIS2_CALL
axis2_extension_mapper_deserialize(
adb_type_t* _object,
const axutil_env_t *env,
axiom_node_t** dp_parent,
axis2_bool_t *dp_is_early_node_valid,
axis2_bool_t dont_care_minoccurs,
axis2_char_t *default_type);
/**
* Will invoke the serialization function for the appropriate type.
* @param _object ADB object
* @param env pointer to environment struct
* @param om_node node to serialize from
* @param 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
* @param default_type string with the default type, in case the object has none
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
axiom_node_t* AXIS2_CALL
axis2_extension_mapper_serialize(
adb_type_t* _object,
const axutil_env_t *env,
axiom_node_t* om_node,
axiom_element_t *om_element,
int tag_closed,
axutil_hash_t *namespaces,
int *next_ns_index,
axis2_char_t *default_type);
#ifdef __cplusplus
}
#endif
#endif /* _H */
© 2015 - 2024 Weber Informatics LLC | Privacy Policy