4
* adb_describeNetworksResponseType.c
6
* This file was auto-generated from WSDL
7
* by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
10
#include "adb_describeNetworksResponseType.h"
13
* This type was generated from the piece of schema that had
14
* name = describeNetworksResponseType
15
* Namespace URI = http://eucalyptus.ucsb.edu/
16
* Namespace Prefix = ns1
21
struct adb_describeNetworksResponseType
23
axis2_char_t* property_correlationId;
26
axis2_bool_t is_valid_correlationId;
29
axis2_char_t* property_userId;
32
axis2_bool_t is_valid_userId;
35
axis2_char_t* property_statusMessage;
38
axis2_bool_t is_valid_statusMessage;
41
axis2_bool_t property_return;
44
axis2_bool_t is_valid_return;
50
axis2_bool_t is_valid_mode;
53
int property_addrsPerNet;
56
axis2_bool_t is_valid_addrsPerNet;
59
axutil_array_list_t* property_activeNetworks;
62
axis2_bool_t is_valid_activeNetworks;
69
/************************* Private Function prototypes ********************************/
72
axis2_status_t AXIS2_CALL
73
adb_describeNetworksResponseType_set_correlationId_nil(
74
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
75
const axutil_env_t *env);
78
axis2_status_t AXIS2_CALL
79
adb_describeNetworksResponseType_set_userId_nil(
80
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
81
const axutil_env_t *env);
84
axis2_status_t AXIS2_CALL
85
adb_describeNetworksResponseType_set_return_nil(
86
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
87
const axutil_env_t *env);
90
axis2_status_t AXIS2_CALL
91
adb_describeNetworksResponseType_set_mode_nil(
92
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
93
const axutil_env_t *env);
96
axis2_status_t AXIS2_CALL
97
adb_describeNetworksResponseType_set_addrsPerNet_nil(
98
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
99
const axutil_env_t *env);
101
axis2_status_t AXIS2_CALL
102
adb_describeNetworksResponseType_set_activeNetworks_nil_at(
103
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
104
const axutil_env_t *env, int i);
107
axis2_status_t AXIS2_CALL
108
adb_describeNetworksResponseType_set_activeNetworks_nil(
109
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
110
const axutil_env_t *env);
114
/************************* Function Implmentations ********************************/
115
adb_describeNetworksResponseType_t* AXIS2_CALL
116
adb_describeNetworksResponseType_create(
117
const axutil_env_t *env)
119
adb_describeNetworksResponseType_t *_describeNetworksResponseType = NULL;
121
AXIS2_ENV_CHECK(env, NULL);
123
_describeNetworksResponseType = (adb_describeNetworksResponseType_t *) AXIS2_MALLOC(env->
124
allocator, sizeof(adb_describeNetworksResponseType_t));
126
if(NULL == _describeNetworksResponseType)
128
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
132
memset(_describeNetworksResponseType, 0, sizeof(adb_describeNetworksResponseType_t));
134
_describeNetworksResponseType->property_correlationId = NULL;
135
_describeNetworksResponseType->is_valid_correlationId = AXIS2_FALSE;
136
_describeNetworksResponseType->property_userId = NULL;
137
_describeNetworksResponseType->is_valid_userId = AXIS2_FALSE;
138
_describeNetworksResponseType->property_statusMessage = NULL;
139
_describeNetworksResponseType->is_valid_statusMessage = AXIS2_FALSE;
140
_describeNetworksResponseType->is_valid_return = AXIS2_FALSE;
141
_describeNetworksResponseType->is_valid_mode = AXIS2_FALSE;
142
_describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_FALSE;
143
_describeNetworksResponseType->property_activeNetworks = NULL;
144
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
147
return _describeNetworksResponseType;
150
axis2_status_t AXIS2_CALL
151
adb_describeNetworksResponseType_free (
152
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
153
const axutil_env_t *env)
158
void *element = NULL;
161
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
162
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
164
adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env);
165
adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env);
166
adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env);
167
adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env);
168
adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env);
169
adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env);
170
adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env);
173
if(_describeNetworksResponseType)
175
AXIS2_FREE(env->allocator, _describeNetworksResponseType);
176
_describeNetworksResponseType = NULL;
178
return AXIS2_SUCCESS;
184
axis2_status_t AXIS2_CALL
185
adb_describeNetworksResponseType_deserialize(
186
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
187
const axutil_env_t *env,
188
axiom_node_t **dp_parent,
189
axis2_bool_t *dp_is_early_node_valid,
190
axis2_bool_t dont_care_minoccurs)
192
axiom_node_t *parent = *dp_parent;
194
axis2_status_t status = AXIS2_SUCCESS;
196
void *element = NULL;
198
axis2_char_t* text_value = NULL;
199
axutil_qname_t *qname = NULL;
202
axutil_array_list_t *arr_list = NULL;
204
int sequence_broken = 0;
205
axiom_node_t *tmp_node = NULL;
207
axutil_qname_t *element_qname = NULL;
209
axiom_node_t *first_node = NULL;
210
axis2_bool_t is_early_node_valid = AXIS2_TRUE;
211
axiom_node_t *current_node = NULL;
212
axiom_element_t *current_element = NULL;
214
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
215
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
219
while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
221
parent = axiom_node_get_next_sibling(parent, env);
225
/* This should be checked before everything */
226
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
227
"Failed in building adb object for describeNetworksResponseType : "
228
"NULL elemenet can not be passed to deserialize");
229
return AXIS2_FAILURE;
233
first_node = axiom_node_get_first_child(parent, env);
239
* building correlationId element
244
current_node = first_node;
245
is_early_node_valid = AXIS2_FALSE;
248
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
250
current_node = axiom_node_get_next_sibling(current_node, env);
252
if(current_node != NULL)
254
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
255
qname = axiom_element_get_qname(current_element, env, current_node);
258
element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
262
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
264
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
266
is_early_node_valid = AXIS2_TRUE;
270
text_value = axiom_element_get_text(current_element, env, current_node);
271
if(text_value != NULL)
273
status = adb_describeNetworksResponseType_set_correlationId(_describeNetworksResponseType, env,
280
* axis2_qname_t *qname = NULL;
281
* axiom_attribute_t *the_attri = NULL;
283
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
284
* the_attri = axiom_element_get_attribute(current_element, env, qname);
286
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
288
axiom_attribute_t *the_attri = NULL;
289
axis2_char_t *attrib_text = NULL;
290
axutil_hash_t *attribute_hash = NULL;
292
attribute_hash = axiom_element_get_all_attributes(current_element, env);
297
axutil_hash_index_t *hi;
301
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
303
axutil_hash_this(hi, &key, NULL, &val);
305
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
307
the_attri = (axiom_attribute_t*)val;
315
attrib_text = axiom_attribute_get_value(the_attri, env);
319
/* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
320
attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
323
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
325
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
326
status = AXIS2_FAILURE;
330
/* after all, we found this is a empty string */
331
status = adb_describeNetworksResponseType_set_correlationId(_describeNetworksResponseType, env,
336
if(AXIS2_FAILURE == status)
338
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
341
axutil_qname_free(element_qname, env);
343
return AXIS2_FAILURE;
349
axutil_qname_free(element_qname, env);
350
element_qname = NULL;
356
* building userId element
362
* because elements are ordered this works fine
366
if(current_node != NULL && is_early_node_valid)
368
current_node = axiom_node_get_next_sibling(current_node, env);
371
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
373
current_node = axiom_node_get_next_sibling(current_node, env);
375
if(current_node != NULL)
377
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
378
qname = axiom_element_get_qname(current_element, env, current_node);
382
is_early_node_valid = AXIS2_FALSE;
384
element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
388
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
390
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
392
is_early_node_valid = AXIS2_TRUE;
396
text_value = axiom_element_get_text(current_element, env, current_node);
397
if(text_value != NULL)
399
status = adb_describeNetworksResponseType_set_userId(_describeNetworksResponseType, env,
406
* axis2_qname_t *qname = NULL;
407
* axiom_attribute_t *the_attri = NULL;
409
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
410
* the_attri = axiom_element_get_attribute(current_element, env, qname);
412
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
414
axiom_attribute_t *the_attri = NULL;
415
axis2_char_t *attrib_text = NULL;
416
axutil_hash_t *attribute_hash = NULL;
418
attribute_hash = axiom_element_get_all_attributes(current_element, env);
423
axutil_hash_index_t *hi;
427
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
429
axutil_hash_this(hi, &key, NULL, &val);
431
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
433
the_attri = (axiom_attribute_t*)val;
441
attrib_text = axiom_attribute_get_value(the_attri, env);
445
/* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
446
attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
449
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
451
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
452
status = AXIS2_FAILURE;
456
/* after all, we found this is a empty string */
457
status = adb_describeNetworksResponseType_set_userId(_describeNetworksResponseType, env,
462
if(AXIS2_FAILURE == status)
464
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
467
axutil_qname_free(element_qname, env);
469
return AXIS2_FAILURE;
475
axutil_qname_free(element_qname, env);
476
element_qname = NULL;
482
* building statusMessage element
488
* because elements are ordered this works fine
492
if(current_node != NULL && is_early_node_valid)
494
current_node = axiom_node_get_next_sibling(current_node, env);
497
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
499
current_node = axiom_node_get_next_sibling(current_node, env);
501
if(current_node != NULL)
503
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
504
qname = axiom_element_get_qname(current_element, env, current_node);
508
is_early_node_valid = AXIS2_FALSE;
510
element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
514
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
516
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
518
is_early_node_valid = AXIS2_TRUE;
522
text_value = axiom_element_get_text(current_element, env, current_node);
523
if(text_value != NULL)
525
status = adb_describeNetworksResponseType_set_statusMessage(_describeNetworksResponseType, env,
529
if(AXIS2_FAILURE == status)
531
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
534
axutil_qname_free(element_qname, env);
536
return AXIS2_FAILURE;
542
axutil_qname_free(element_qname, env);
543
element_qname = NULL;
549
* building return element
555
* because elements are ordered this works fine
559
if(current_node != NULL && is_early_node_valid)
561
current_node = axiom_node_get_next_sibling(current_node, env);
564
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
566
current_node = axiom_node_get_next_sibling(current_node, env);
568
if(current_node != NULL)
570
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
571
qname = axiom_element_get_qname(current_element, env, current_node);
575
is_early_node_valid = AXIS2_FALSE;
577
element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
581
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
583
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
585
is_early_node_valid = AXIS2_TRUE;
589
text_value = axiom_element_get_text(current_element, env, current_node);
590
if(text_value != NULL)
592
if (!axutil_strcasecmp(text_value , "true"))
594
status = adb_describeNetworksResponseType_set_return(_describeNetworksResponseType, env,
599
status = adb_describeNetworksResponseType_set_return(_describeNetworksResponseType, env,
606
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
607
status = AXIS2_FAILURE;
610
if(AXIS2_FAILURE == status)
612
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
615
axutil_qname_free(element_qname, env);
617
return AXIS2_FAILURE;
623
axutil_qname_free(element_qname, env);
624
element_qname = NULL;
630
* building mode element
636
* because elements are ordered this works fine
640
if(current_node != NULL && is_early_node_valid)
642
current_node = axiom_node_get_next_sibling(current_node, env);
645
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
647
current_node = axiom_node_get_next_sibling(current_node, env);
649
if(current_node != NULL)
651
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
652
qname = axiom_element_get_qname(current_element, env, current_node);
656
is_early_node_valid = AXIS2_FALSE;
658
element_qname = axutil_qname_create(env, "mode", "http://eucalyptus.ucsb.edu/", NULL);
662
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
664
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
666
is_early_node_valid = AXIS2_TRUE;
670
text_value = axiom_element_get_text(current_element, env, current_node);
671
if(text_value != NULL)
673
status = adb_describeNetworksResponseType_set_mode(_describeNetworksResponseType, env,
679
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element mode");
680
status = AXIS2_FAILURE;
683
if(AXIS2_FAILURE == status)
685
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for mode ");
688
axutil_qname_free(element_qname, env);
690
return AXIS2_FAILURE;
696
axutil_qname_free(element_qname, env);
697
element_qname = NULL;
703
* building addrsPerNet element
709
* because elements are ordered this works fine
713
if(current_node != NULL && is_early_node_valid)
715
current_node = axiom_node_get_next_sibling(current_node, env);
718
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
720
current_node = axiom_node_get_next_sibling(current_node, env);
722
if(current_node != NULL)
724
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
725
qname = axiom_element_get_qname(current_element, env, current_node);
729
is_early_node_valid = AXIS2_FALSE;
731
element_qname = axutil_qname_create(env, "addrsPerNet", "http://eucalyptus.ucsb.edu/", NULL);
735
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
737
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
739
is_early_node_valid = AXIS2_TRUE;
743
text_value = axiom_element_get_text(current_element, env, current_node);
744
if(text_value != NULL)
746
status = adb_describeNetworksResponseType_set_addrsPerNet(_describeNetworksResponseType, env,
752
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element addrsPerNet");
753
status = AXIS2_FAILURE;
756
if(AXIS2_FAILURE == status)
758
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for addrsPerNet ");
761
axutil_qname_free(element_qname, env);
763
return AXIS2_FAILURE;
769
axutil_qname_free(element_qname, env);
770
element_qname = NULL;
774
* building activeNetworks array
776
arr_list = axutil_array_list_create(env, 10);
781
* building activeNetworks element
786
element_qname = axutil_qname_create(env, "activeNetworks", "http://eucalyptus.ucsb.edu/", NULL);
789
for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
792
if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
794
current_node =axiom_node_get_next_sibling(current_node, env);
795
is_early_node_valid = AXIS2_FALSE;
799
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
800
qname = axiom_element_get_qname(current_element, env, current_node);
802
if (axutil_qname_equals(element_qname, env, qname))
805
is_early_node_valid = AXIS2_TRUE;
808
element = (void*)adb_networkType_create(env);
810
status = adb_networkType_deserialize((adb_networkType_t*)element, env,
811
¤t_node, &is_early_node_valid, AXIS2_FALSE);
813
if(AXIS2_FAILURE == status)
815
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element activeNetworks ");
819
axutil_array_list_add_at(arr_list, env, i, element);
822
if(AXIS2_FAILURE == status)
824
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for activeNetworks ");
827
axutil_qname_free(element_qname, env);
831
axutil_array_list_free(arr_list, env);
833
return AXIS2_FAILURE;
837
current_node = axiom_node_get_next_sibling(current_node, env);
841
is_early_node_valid = AXIS2_FALSE;
850
/* found element out of order */
851
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeNetworks (@minOccurs = '0') only have %d elements", i);
854
axutil_qname_free(element_qname, env);
858
axutil_array_list_free(arr_list, env);
860
return AXIS2_FAILURE;
864
if(0 == axutil_array_list_size(arr_list,env))
866
axutil_array_list_free(arr_list, env);
870
status = adb_describeNetworksResponseType_set_activeNetworks(_describeNetworksResponseType, env,
877
axutil_qname_free(element_qname, env);
878
element_qname = NULL;
884
axis2_bool_t AXIS2_CALL
885
adb_describeNetworksResponseType_is_particle()
894
adb_describeNetworksResponseType_declare_parent_namespaces(
895
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
896
const axutil_env_t *env, axiom_element_t *parent_element,
897
axutil_hash_t *namespaces, int *next_ns_index)
900
/* Here this is an empty function, Nothing to declare */
906
axiom_node_t* AXIS2_CALL
907
adb_describeNetworksResponseType_serialize(
908
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
909
const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
913
axis2_char_t *string_to_stream;
916
axiom_node_t *current_node = NULL;
921
axiom_namespace_t *ns1 = NULL;
923
axis2_char_t *qname_uri = NULL;
924
axis2_char_t *qname_prefix = NULL;
925
axis2_char_t *p_prefix = NULL;
926
axis2_bool_t ns_already_defined;
930
void *element = NULL;
932
axis2_char_t *text_value_1;
933
axis2_char_t *text_value_1_temp;
935
axis2_char_t *text_value_2;
936
axis2_char_t *text_value_2_temp;
938
axis2_char_t *text_value_3;
939
axis2_char_t *text_value_3_temp;
941
axis2_char_t text_value_4[64];
943
axis2_char_t text_value_5[64];
945
axis2_char_t text_value_6[64];
947
axis2_char_t text_value_7[64];
949
axis2_char_t *start_input_str = NULL;
950
axis2_char_t *end_input_str = NULL;
951
unsigned int start_input_str_len = 0;
952
unsigned int end_input_str_len = 0;
955
axiom_data_source_t *data_source = NULL;
956
axutil_stream_t *stream = NULL;
960
AXIS2_ENV_CHECK(env, NULL);
961
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
964
current_node = parent;
965
data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
968
stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
972
if(!parent_tag_closed)
975
string_to_stream = ">";
976
axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
981
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
983
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
984
sprintf(p_prefix, "n%d", (*next_ns_index)++);
985
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
987
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
988
"http://eucalyptus.ucsb.edu/",
993
if (!_describeNetworksResponseType->is_valid_correlationId)
996
/* no need to complain for minoccurs=0 element */
1002
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1003
(4 + axutil_strlen(p_prefix) +
1004
axutil_strlen("correlationId")));
1006
/* axutil_strlen("<:>") + 1 = 4 */
1007
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1008
(5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
1009
/* axutil_strlen("</:>") + 1 = 5 */
1017
* parsing correlationId element
1022
sprintf(start_input_str, "<%s%scorrelationId>",
1023
p_prefix?p_prefix:"",
1024
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1026
start_input_str_len = axutil_strlen(start_input_str);
1027
sprintf(end_input_str, "</%s%scorrelationId>",
1028
p_prefix?p_prefix:"",
1029
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1030
end_input_str_len = axutil_strlen(end_input_str);
1032
text_value_1 = _describeNetworksResponseType->property_correlationId;
1034
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1037
text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
1038
if (text_value_1_temp)
1040
axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
1041
AXIS2_FREE(env->allocator, text_value_1_temp);
1045
axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
1048
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1051
AXIS2_FREE(env->allocator,start_input_str);
1052
AXIS2_FREE(env->allocator,end_input_str);
1056
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1058
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1059
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1060
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1062
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1063
"http://eucalyptus.ucsb.edu/",
1068
if (!_describeNetworksResponseType->is_valid_userId)
1071
/* no need to complain for minoccurs=0 element */
1077
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1078
(4 + axutil_strlen(p_prefix) +
1079
axutil_strlen("userId")));
1081
/* axutil_strlen("<:>") + 1 = 4 */
1082
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1083
(5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
1084
/* axutil_strlen("</:>") + 1 = 5 */
1092
* parsing userId element
1097
sprintf(start_input_str, "<%s%suserId>",
1098
p_prefix?p_prefix:"",
1099
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1101
start_input_str_len = axutil_strlen(start_input_str);
1102
sprintf(end_input_str, "</%s%suserId>",
1103
p_prefix?p_prefix:"",
1104
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1105
end_input_str_len = axutil_strlen(end_input_str);
1107
text_value_2 = _describeNetworksResponseType->property_userId;
1109
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1112
text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
1113
if (text_value_2_temp)
1115
axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
1116
AXIS2_FREE(env->allocator, text_value_2_temp);
1120
axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
1123
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1126
AXIS2_FREE(env->allocator,start_input_str);
1127
AXIS2_FREE(env->allocator,end_input_str);
1131
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1133
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1134
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1135
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1137
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1138
"http://eucalyptus.ucsb.edu/",
1143
if (!_describeNetworksResponseType->is_valid_statusMessage)
1146
/* no need to complain for minoccurs=0 element */
1152
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1153
(4 + axutil_strlen(p_prefix) +
1154
axutil_strlen("statusMessage")));
1156
/* axutil_strlen("<:>") + 1 = 4 */
1157
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1158
(5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
1159
/* axutil_strlen("</:>") + 1 = 5 */
1167
* parsing statusMessage element
1172
sprintf(start_input_str, "<%s%sstatusMessage>",
1173
p_prefix?p_prefix:"",
1174
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1176
start_input_str_len = axutil_strlen(start_input_str);
1177
sprintf(end_input_str, "</%s%sstatusMessage>",
1178
p_prefix?p_prefix:"",
1179
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1180
end_input_str_len = axutil_strlen(end_input_str);
1182
text_value_3 = _describeNetworksResponseType->property_statusMessage;
1184
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1187
text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
1188
if (text_value_3_temp)
1190
axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
1191
AXIS2_FREE(env->allocator, text_value_3_temp);
1195
axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1198
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1201
AXIS2_FREE(env->allocator,start_input_str);
1202
AXIS2_FREE(env->allocator,end_input_str);
1206
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1208
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1209
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1210
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1212
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1213
"http://eucalyptus.ucsb.edu/",
1218
if (!_describeNetworksResponseType->is_valid_return)
1221
/* no need to complain for minoccurs=0 element */
1227
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1228
(4 + axutil_strlen(p_prefix) +
1229
axutil_strlen("return")));
1231
/* axutil_strlen("<:>") + 1 = 4 */
1232
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1233
(5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
1234
/* axutil_strlen("</:>") + 1 = 5 */
1242
* parsing return element
1247
sprintf(start_input_str, "<%s%sreturn>",
1248
p_prefix?p_prefix:"",
1249
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1251
start_input_str_len = axutil_strlen(start_input_str);
1252
sprintf(end_input_str, "</%s%sreturn>",
1253
p_prefix?p_prefix:"",
1254
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1255
end_input_str_len = axutil_strlen(end_input_str);
1257
strcpy(text_value_4, (_describeNetworksResponseType->property_return)?"true":"false");
1259
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1261
axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1263
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1266
AXIS2_FREE(env->allocator,start_input_str);
1267
AXIS2_FREE(env->allocator,end_input_str);
1271
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1273
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1274
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1275
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1277
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1278
"http://eucalyptus.ucsb.edu/",
1283
if (!_describeNetworksResponseType->is_valid_mode)
1286
/* no need to complain for minoccurs=0 element */
1292
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1293
(4 + axutil_strlen(p_prefix) +
1294
axutil_strlen("mode")));
1296
/* axutil_strlen("<:>") + 1 = 4 */
1297
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1298
(5 + axutil_strlen(p_prefix) + axutil_strlen("mode")));
1299
/* axutil_strlen("</:>") + 1 = 5 */
1307
* parsing mode element
1312
sprintf(start_input_str, "<%s%smode>",
1313
p_prefix?p_prefix:"",
1314
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1316
start_input_str_len = axutil_strlen(start_input_str);
1317
sprintf(end_input_str, "</%s%smode>",
1318
p_prefix?p_prefix:"",
1319
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1320
end_input_str_len = axutil_strlen(end_input_str);
1322
sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _describeNetworksResponseType->property_mode);
1324
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1326
axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1328
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1331
AXIS2_FREE(env->allocator,start_input_str);
1332
AXIS2_FREE(env->allocator,end_input_str);
1336
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1338
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1339
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1340
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1342
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1343
"http://eucalyptus.ucsb.edu/",
1348
if (!_describeNetworksResponseType->is_valid_addrsPerNet)
1351
/* no need to complain for minoccurs=0 element */
1357
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1358
(4 + axutil_strlen(p_prefix) +
1359
axutil_strlen("addrsPerNet")));
1361
/* axutil_strlen("<:>") + 1 = 4 */
1362
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1363
(5 + axutil_strlen(p_prefix) + axutil_strlen("addrsPerNet")));
1364
/* axutil_strlen("</:>") + 1 = 5 */
1372
* parsing addrsPerNet element
1377
sprintf(start_input_str, "<%s%saddrsPerNet>",
1378
p_prefix?p_prefix:"",
1379
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1381
start_input_str_len = axutil_strlen(start_input_str);
1382
sprintf(end_input_str, "</%s%saddrsPerNet>",
1383
p_prefix?p_prefix:"",
1384
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1385
end_input_str_len = axutil_strlen(end_input_str);
1387
sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _describeNetworksResponseType->property_addrsPerNet);
1389
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1391
axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
1393
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1396
AXIS2_FREE(env->allocator,start_input_str);
1397
AXIS2_FREE(env->allocator,end_input_str);
1401
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1403
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1404
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1405
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1407
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1408
"http://eucalyptus.ucsb.edu/",
1413
if (!_describeNetworksResponseType->is_valid_activeNetworks)
1416
/* no need to complain for minoccurs=0 element */
1422
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1423
(4 + axutil_strlen(p_prefix) +
1424
axutil_strlen("activeNetworks")));
1426
/* axutil_strlen("<:>") + 1 = 4 */
1427
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1428
(5 + axutil_strlen(p_prefix) + axutil_strlen("activeNetworks")));
1429
/* axutil_strlen("</:>") + 1 = 5 */
1436
* Parsing activeNetworks array
1438
if (_describeNetworksResponseType->property_activeNetworks != NULL)
1442
sprintf(start_input_str, "<%s%sactiveNetworks",
1443
p_prefix?p_prefix:"",
1444
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1446
start_input_str_len = axutil_strlen(start_input_str);
1448
sprintf(end_input_str, "</%s%sactiveNetworks>",
1449
p_prefix?p_prefix:"",
1450
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1451
end_input_str_len = axutil_strlen(end_input_str);
1453
count = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
1454
for(i = 0; i < count; i ++)
1456
element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
1465
* parsing activeNetworks element
1470
if(!adb_networkType_is_particle())
1472
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1475
adb_networkType_serialize((adb_networkType_t*)element,
1476
env, current_node, parent_element,
1477
adb_networkType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
1479
if(!adb_networkType_is_particle())
1481
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1488
AXIS2_FREE(env->allocator,start_input_str);
1489
AXIS2_FREE(env->allocator,end_input_str);
1501
* getter for correlationId.
1503
axis2_char_t* AXIS2_CALL
1504
adb_describeNetworksResponseType_get_correlationId(
1505
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1506
const axutil_env_t *env)
1509
AXIS2_ENV_CHECK(env, NULL);
1510
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
1513
return _describeNetworksResponseType->property_correlationId;
1517
* setter for correlationId
1519
axis2_status_t AXIS2_CALL
1520
adb_describeNetworksResponseType_set_correlationId(
1521
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1522
const axutil_env_t *env,
1523
const axis2_char_t* arg_correlationId)
1527
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1528
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1530
if(_describeNetworksResponseType->is_valid_correlationId &&
1531
arg_correlationId == _describeNetworksResponseType->property_correlationId)
1534
return AXIS2_SUCCESS;
1537
adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env);
1540
if(NULL == arg_correlationId)
1542
/* We are already done */
1543
return AXIS2_SUCCESS;
1545
_describeNetworksResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
1546
if(NULL == _describeNetworksResponseType->property_correlationId)
1548
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
1549
return AXIS2_FAILURE;
1551
_describeNetworksResponseType->is_valid_correlationId = AXIS2_TRUE;
1553
return AXIS2_SUCCESS;
1559
* resetter for correlationId
1561
axis2_status_t AXIS2_CALL
1562
adb_describeNetworksResponseType_reset_correlationId(
1563
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1564
const axutil_env_t *env)
1568
void *element = NULL;
1570
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1571
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1577
if(_describeNetworksResponseType->property_correlationId != NULL)
1581
AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_correlationId);
1582
_describeNetworksResponseType->property_correlationId = NULL;
1587
_describeNetworksResponseType->is_valid_correlationId = AXIS2_FALSE;
1588
return AXIS2_SUCCESS;
1592
* Check whether correlationId is nill
1594
axis2_bool_t AXIS2_CALL
1595
adb_describeNetworksResponseType_is_correlationId_nil(
1596
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1597
const axutil_env_t *env)
1599
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1600
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
1602
return !_describeNetworksResponseType->is_valid_correlationId;
1606
* Set correlationId to nill (currently the same as reset)
1608
axis2_status_t AXIS2_CALL
1609
adb_describeNetworksResponseType_set_correlationId_nil(
1610
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1611
const axutil_env_t *env)
1613
return adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env);
1619
* getter for userId.
1621
axis2_char_t* AXIS2_CALL
1622
adb_describeNetworksResponseType_get_userId(
1623
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1624
const axutil_env_t *env)
1627
AXIS2_ENV_CHECK(env, NULL);
1628
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
1631
return _describeNetworksResponseType->property_userId;
1637
axis2_status_t AXIS2_CALL
1638
adb_describeNetworksResponseType_set_userId(
1639
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1640
const axutil_env_t *env,
1641
const axis2_char_t* arg_userId)
1645
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1646
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1648
if(_describeNetworksResponseType->is_valid_userId &&
1649
arg_userId == _describeNetworksResponseType->property_userId)
1652
return AXIS2_SUCCESS;
1655
adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env);
1658
if(NULL == arg_userId)
1660
/* We are already done */
1661
return AXIS2_SUCCESS;
1663
_describeNetworksResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
1664
if(NULL == _describeNetworksResponseType->property_userId)
1666
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
1667
return AXIS2_FAILURE;
1669
_describeNetworksResponseType->is_valid_userId = AXIS2_TRUE;
1671
return AXIS2_SUCCESS;
1677
* resetter for userId
1679
axis2_status_t AXIS2_CALL
1680
adb_describeNetworksResponseType_reset_userId(
1681
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1682
const axutil_env_t *env)
1686
void *element = NULL;
1688
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1689
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1695
if(_describeNetworksResponseType->property_userId != NULL)
1699
AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_userId);
1700
_describeNetworksResponseType->property_userId = NULL;
1705
_describeNetworksResponseType->is_valid_userId = AXIS2_FALSE;
1706
return AXIS2_SUCCESS;
1710
* Check whether userId is nill
1712
axis2_bool_t AXIS2_CALL
1713
adb_describeNetworksResponseType_is_userId_nil(
1714
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1715
const axutil_env_t *env)
1717
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1718
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
1720
return !_describeNetworksResponseType->is_valid_userId;
1724
* Set userId to nill (currently the same as reset)
1726
axis2_status_t AXIS2_CALL
1727
adb_describeNetworksResponseType_set_userId_nil(
1728
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1729
const axutil_env_t *env)
1731
return adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env);
1737
* getter for statusMessage.
1739
axis2_char_t* AXIS2_CALL
1740
adb_describeNetworksResponseType_get_statusMessage(
1741
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1742
const axutil_env_t *env)
1745
AXIS2_ENV_CHECK(env, NULL);
1746
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
1749
return _describeNetworksResponseType->property_statusMessage;
1753
* setter for statusMessage
1755
axis2_status_t AXIS2_CALL
1756
adb_describeNetworksResponseType_set_statusMessage(
1757
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1758
const axutil_env_t *env,
1759
const axis2_char_t* arg_statusMessage)
1763
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1764
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1766
if(_describeNetworksResponseType->is_valid_statusMessage &&
1767
arg_statusMessage == _describeNetworksResponseType->property_statusMessage)
1770
return AXIS2_SUCCESS;
1773
adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env);
1776
if(NULL == arg_statusMessage)
1778
/* We are already done */
1779
return AXIS2_SUCCESS;
1781
_describeNetworksResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
1782
if(NULL == _describeNetworksResponseType->property_statusMessage)
1784
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
1785
return AXIS2_FAILURE;
1787
_describeNetworksResponseType->is_valid_statusMessage = AXIS2_TRUE;
1789
return AXIS2_SUCCESS;
1795
* resetter for statusMessage
1797
axis2_status_t AXIS2_CALL
1798
adb_describeNetworksResponseType_reset_statusMessage(
1799
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1800
const axutil_env_t *env)
1804
void *element = NULL;
1806
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1807
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1813
if(_describeNetworksResponseType->property_statusMessage != NULL)
1817
AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_statusMessage);
1818
_describeNetworksResponseType->property_statusMessage = NULL;
1823
_describeNetworksResponseType->is_valid_statusMessage = AXIS2_FALSE;
1824
return AXIS2_SUCCESS;
1828
* Check whether statusMessage is nill
1830
axis2_bool_t AXIS2_CALL
1831
adb_describeNetworksResponseType_is_statusMessage_nil(
1832
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1833
const axutil_env_t *env)
1835
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1836
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
1838
return !_describeNetworksResponseType->is_valid_statusMessage;
1842
* Set statusMessage to nill (currently the same as reset)
1844
axis2_status_t AXIS2_CALL
1845
adb_describeNetworksResponseType_set_statusMessage_nil(
1846
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1847
const axutil_env_t *env)
1849
return adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env);
1855
* getter for return.
1857
axis2_bool_t AXIS2_CALL
1858
adb_describeNetworksResponseType_get_return(
1859
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1860
const axutil_env_t *env)
1863
AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
1864
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (axis2_bool_t)0);
1867
return _describeNetworksResponseType->property_return;
1873
axis2_status_t AXIS2_CALL
1874
adb_describeNetworksResponseType_set_return(
1875
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1876
const axutil_env_t *env,
1877
axis2_bool_t arg_return)
1881
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1882
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1884
if(_describeNetworksResponseType->is_valid_return &&
1885
arg_return == _describeNetworksResponseType->property_return)
1888
return AXIS2_SUCCESS;
1891
adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env);
1893
_describeNetworksResponseType->property_return = arg_return;
1894
_describeNetworksResponseType->is_valid_return = AXIS2_TRUE;
1896
return AXIS2_SUCCESS;
1902
* resetter for return
1904
axis2_status_t AXIS2_CALL
1905
adb_describeNetworksResponseType_reset_return(
1906
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1907
const axutil_env_t *env)
1911
void *element = NULL;
1913
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1914
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1917
_describeNetworksResponseType->is_valid_return = AXIS2_FALSE;
1918
return AXIS2_SUCCESS;
1922
* Check whether return is nill
1924
axis2_bool_t AXIS2_CALL
1925
adb_describeNetworksResponseType_is_return_nil(
1926
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1927
const axutil_env_t *env)
1929
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1930
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
1932
return !_describeNetworksResponseType->is_valid_return;
1936
* Set return to nill (currently the same as reset)
1938
axis2_status_t AXIS2_CALL
1939
adb_describeNetworksResponseType_set_return_nil(
1940
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1941
const axutil_env_t *env)
1943
return adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env);
1952
adb_describeNetworksResponseType_get_mode(
1953
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1954
const axutil_env_t *env)
1957
AXIS2_ENV_CHECK(env, (int)0);
1958
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (int)0);
1961
return _describeNetworksResponseType->property_mode;
1967
axis2_status_t AXIS2_CALL
1968
adb_describeNetworksResponseType_set_mode(
1969
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
1970
const axutil_env_t *env,
1975
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1976
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
1978
if(_describeNetworksResponseType->is_valid_mode &&
1979
arg_mode == _describeNetworksResponseType->property_mode)
1982
return AXIS2_SUCCESS;
1985
adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env);
1987
_describeNetworksResponseType->property_mode = arg_mode;
1988
_describeNetworksResponseType->is_valid_mode = AXIS2_TRUE;
1990
return AXIS2_SUCCESS;
1998
axis2_status_t AXIS2_CALL
1999
adb_describeNetworksResponseType_reset_mode(
2000
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2001
const axutil_env_t *env)
2005
void *element = NULL;
2007
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2008
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2011
_describeNetworksResponseType->is_valid_mode = AXIS2_FALSE;
2012
return AXIS2_SUCCESS;
2016
* Check whether mode is nill
2018
axis2_bool_t AXIS2_CALL
2019
adb_describeNetworksResponseType_is_mode_nil(
2020
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2021
const axutil_env_t *env)
2023
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2024
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
2026
return !_describeNetworksResponseType->is_valid_mode;
2030
* Set mode to nill (currently the same as reset)
2032
axis2_status_t AXIS2_CALL
2033
adb_describeNetworksResponseType_set_mode_nil(
2034
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2035
const axutil_env_t *env)
2037
return adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env);
2043
* getter for addrsPerNet.
2046
adb_describeNetworksResponseType_get_addrsPerNet(
2047
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2048
const axutil_env_t *env)
2051
AXIS2_ENV_CHECK(env, (int)0);
2052
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (int)0);
2055
return _describeNetworksResponseType->property_addrsPerNet;
2059
* setter for addrsPerNet
2061
axis2_status_t AXIS2_CALL
2062
adb_describeNetworksResponseType_set_addrsPerNet(
2063
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2064
const axutil_env_t *env,
2065
const int arg_addrsPerNet)
2069
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2070
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2072
if(_describeNetworksResponseType->is_valid_addrsPerNet &&
2073
arg_addrsPerNet == _describeNetworksResponseType->property_addrsPerNet)
2076
return AXIS2_SUCCESS;
2079
adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env);
2081
_describeNetworksResponseType->property_addrsPerNet = arg_addrsPerNet;
2082
_describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_TRUE;
2084
return AXIS2_SUCCESS;
2090
* resetter for addrsPerNet
2092
axis2_status_t AXIS2_CALL
2093
adb_describeNetworksResponseType_reset_addrsPerNet(
2094
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2095
const axutil_env_t *env)
2099
void *element = NULL;
2101
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2102
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2105
_describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_FALSE;
2106
return AXIS2_SUCCESS;
2110
* Check whether addrsPerNet is nill
2112
axis2_bool_t AXIS2_CALL
2113
adb_describeNetworksResponseType_is_addrsPerNet_nil(
2114
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2115
const axutil_env_t *env)
2117
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2118
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
2120
return !_describeNetworksResponseType->is_valid_addrsPerNet;
2124
* Set addrsPerNet to nill (currently the same as reset)
2126
axis2_status_t AXIS2_CALL
2127
adb_describeNetworksResponseType_set_addrsPerNet_nil(
2128
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2129
const axutil_env_t *env)
2131
return adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env);
2137
* getter for activeNetworks.
2139
axutil_array_list_t* AXIS2_CALL
2140
adb_describeNetworksResponseType_get_activeNetworks(
2141
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2142
const axutil_env_t *env)
2145
AXIS2_ENV_CHECK(env, NULL);
2146
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
2149
return _describeNetworksResponseType->property_activeNetworks;
2153
* setter for activeNetworks
2155
axis2_status_t AXIS2_CALL
2156
adb_describeNetworksResponseType_set_activeNetworks(
2157
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2158
const axutil_env_t *env,
2159
axutil_array_list_t* arg_activeNetworks)
2164
axis2_bool_t non_nil_exists = AXIS2_FALSE;
2167
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2168
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2170
if(_describeNetworksResponseType->is_valid_activeNetworks &&
2171
arg_activeNetworks == _describeNetworksResponseType->property_activeNetworks)
2174
return AXIS2_SUCCESS;
2178
size = axutil_array_list_size(arg_activeNetworks, env);
2182
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeNetworks has less than minOccurs(0)");
2183
return AXIS2_FAILURE;
2185
for(i = 0; i < size; i ++ )
2187
if(NULL != axutil_array_list_get(arg_activeNetworks, env, i))
2189
non_nil_exists = AXIS2_TRUE;
2194
adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env);
2197
if(NULL == arg_activeNetworks)
2199
/* We are already done */
2200
return AXIS2_SUCCESS;
2202
_describeNetworksResponseType->property_activeNetworks = arg_activeNetworks;
2205
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE;
2209
return AXIS2_SUCCESS;
2214
* Get ith element of activeNetworks.
2216
adb_networkType_t* AXIS2_CALL
2217
adb_describeNetworksResponseType_get_activeNetworks_at(
2218
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2219
const axutil_env_t *env, int i)
2221
adb_networkType_t* ret_val;
2224
AXIS2_ENV_CHECK(env, NULL);
2225
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
2228
if(_describeNetworksResponseType->property_activeNetworks == NULL)
2230
return (adb_networkType_t*)0;
2232
ret_val = (adb_networkType_t*)axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
2239
* Set the ith element of activeNetworks.
2241
axis2_status_t AXIS2_CALL
2242
adb_describeNetworksResponseType_set_activeNetworks_at(
2243
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2244
const axutil_env_t *env, int i,
2245
adb_networkType_t* arg_activeNetworks)
2247
void *element = NULL;
2251
axis2_bool_t non_nil_exists = AXIS2_FALSE;
2255
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2256
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2258
if( _describeNetworksResponseType->is_valid_activeNetworks &&
2259
_describeNetworksResponseType->property_activeNetworks &&
2261
arg_activeNetworks == (adb_networkType_t*)axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i))
2265
return AXIS2_SUCCESS;
2269
if(NULL == arg_activeNetworks)
2271
if(_describeNetworksResponseType->property_activeNetworks != NULL)
2273
size = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
2274
for(j = 0, k = 0; j < size; j ++ )
2276
if(i == j) continue;
2277
if(NULL != axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i))
2280
non_nil_exists = AXIS2_TRUE;
2291
non_nil_exists = AXIS2_TRUE;
2296
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeNetworks is beinng set to be smaller than the specificed number of minOccurs(0)");
2297
return AXIS2_FAILURE;
2300
if(_describeNetworksResponseType->property_activeNetworks == NULL)
2302
_describeNetworksResponseType->property_activeNetworks = axutil_array_list_create(env, 10);
2305
/* check whether there already exist an element */
2306
element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
2312
adb_networkType_free((adb_networkType_t*)element, env);
2320
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
2321
axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL);
2323
return AXIS2_SUCCESS;
2326
axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, arg_activeNetworks);
2327
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE;
2329
return AXIS2_SUCCESS;
2333
* Add to activeNetworks.
2335
axis2_status_t AXIS2_CALL
2336
adb_describeNetworksResponseType_add_activeNetworks(
2337
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2338
const axutil_env_t *env,
2339
adb_networkType_t* arg_activeNetworks)
2343
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2344
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2347
if(NULL == arg_activeNetworks)
2350
return AXIS2_SUCCESS;
2355
if(_describeNetworksResponseType->property_activeNetworks == NULL)
2357
_describeNetworksResponseType->property_activeNetworks = axutil_array_list_create(env, 10);
2359
if(_describeNetworksResponseType->property_activeNetworks == NULL)
2361
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for activeNetworks");
2362
return AXIS2_FAILURE;
2366
axutil_array_list_add(_describeNetworksResponseType->property_activeNetworks , env, arg_activeNetworks);
2367
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE;
2368
return AXIS2_SUCCESS;
2372
* Get the size of the activeNetworks array.
2375
adb_describeNetworksResponseType_sizeof_activeNetworks(
2376
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2377
const axutil_env_t *env)
2379
AXIS2_ENV_CHECK(env, -1);
2380
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, -1);
2381
if(_describeNetworksResponseType->property_activeNetworks == NULL)
2385
return axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
2389
* remove the ith element, same as set_nil_at.
2391
axis2_status_t AXIS2_CALL
2392
adb_describeNetworksResponseType_remove_activeNetworks_at(
2393
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2394
const axutil_env_t *env, int i)
2396
return adb_describeNetworksResponseType_set_activeNetworks_nil_at(_describeNetworksResponseType, env, i);
2402
* resetter for activeNetworks
2404
axis2_status_t AXIS2_CALL
2405
adb_describeNetworksResponseType_reset_activeNetworks(
2406
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2407
const axutil_env_t *env)
2411
void *element = NULL;
2413
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2414
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2418
if (_describeNetworksResponseType->property_activeNetworks != NULL)
2420
count = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
2421
for(i = 0; i < count; i ++)
2423
element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
2431
adb_networkType_free((adb_networkType_t*)element, env);
2439
axutil_array_list_free(_describeNetworksResponseType->property_activeNetworks, env);
2441
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
2442
return AXIS2_SUCCESS;
2446
* Check whether activeNetworks is nill
2448
axis2_bool_t AXIS2_CALL
2449
adb_describeNetworksResponseType_is_activeNetworks_nil(
2450
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2451
const axutil_env_t *env)
2453
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2454
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
2456
return !_describeNetworksResponseType->is_valid_activeNetworks;
2460
* Set activeNetworks to nill (currently the same as reset)
2462
axis2_status_t AXIS2_CALL
2463
adb_describeNetworksResponseType_set_activeNetworks_nil(
2464
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2465
const axutil_env_t *env)
2467
return adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env);
2472
* Check whether activeNetworks is nill at i
2474
axis2_bool_t AXIS2_CALL
2475
adb_describeNetworksResponseType_is_activeNetworks_nil_at(
2476
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2477
const axutil_env_t *env, int i)
2479
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2480
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
2482
return (_describeNetworksResponseType->is_valid_activeNetworks == AXIS2_FALSE ||
2483
NULL == _describeNetworksResponseType->property_activeNetworks ||
2484
NULL == axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i));
2488
* Set activeNetworks to nill at i
2490
axis2_status_t AXIS2_CALL
2491
adb_describeNetworksResponseType_set_activeNetworks_nil_at(
2492
adb_describeNetworksResponseType_t* _describeNetworksResponseType,
2493
const axutil_env_t *env, int i)
2495
void *element = NULL;
2498
axis2_bool_t non_nil_exists = AXIS2_FALSE;
2502
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2503
AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
2505
if(_describeNetworksResponseType->property_activeNetworks == NULL ||
2506
_describeNetworksResponseType->is_valid_activeNetworks == AXIS2_FALSE)
2509
non_nil_exists = AXIS2_FALSE;
2513
size = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
2514
for(j = 0, k = 0; j < size; j ++ )
2516
if(i == j) continue;
2517
if(NULL != axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i))
2520
non_nil_exists = AXIS2_TRUE;
2532
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeNetworks is beinng set to be smaller than the specificed number of minOccurs(0)");
2533
return AXIS2_FAILURE;
2536
if(_describeNetworksResponseType->property_activeNetworks == NULL)
2538
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
2540
return AXIS2_SUCCESS;
2543
/* check whether there already exist an element */
2544
element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
2550
adb_networkType_free((adb_networkType_t*)element, env);
2558
_describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
2559
axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL);
2560
return AXIS2_SUCCESS;
2565
axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL);
2567
return AXIS2_SUCCESS;