~ubuntu-core-dev/ubuntu/maverick/eucalyptus/devel

« back to all changes in this revision

Viewing changes to gatherlog/generated/adb_getLogsType.c

  • Committer: Dustin Kirkland
  • Date: 2010-07-22 08:41:57 UTC
  • mfrom: (1050.1.19 ubuntu)
  • Revision ID: kirkland@x200-20100722084157-zh2p8dkawznvxxpn
Approving Dave Walker's merge of new upstream Eucalyptus 2.0 release.

Dustin Kirkland <kirkland@canonical.com>

* New major upstream version merge, 2.0 (r1211).
  - 01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated.
  - 11-state-cleanup-memleakfix.patch: Removed, fixed upstream.
  - 21-eucalyptus-1.7-with-gwt-1.6.4.patch: New patch, allows 
    eucalyptus-1.7 to be built against gwt 1.6.4. Based on patch courtesy 
    of Dmitrii Zagorodnov, upstream. (LP: #597330)
* debian/eucalyptus-java-common.links: 
  - Changed symlink for groovy, point to groovy.all.jar, making compatiable 
    with groovy versions >1.7. (LP: #595421)
  - Added ant.jar & jetty-rewrite-handler.jar as they are now required.
* debian/control
  - & debian/build-jars: Added libjavassist-java and libjetty-extra-java as 
    build dependencies.
  - Added libjetty-extra-java as a dependency of eucalyptus-java-common
* The binary resulting jar's have been renamed from eucalyptus-*-1.6.2.jar
  to eucalyptus-*-main.jar:    
  - debian/eucalyptus-cc.upstart
  - debian/eucalyptus-cloud.install
  - debian/eucalyptus-common.eucalyptus.upstart
  - debian/eucalyptus-java-common.install
  - debian/eucalyptus-network.upstart
  - debian/eucalyptus-sc.install
  - debian/eucalyptus-walrus.install
* debian/eucalyptus-java-common.install: New upstream jars that have been
  installed:
  - eucalyptus-db-hsqldb-ext-main.jar
  - eucalyptus-component-main.jar
* debian/control:
  - Updated Standards Version to 3.8.4 (no change)
  - Updated the upstream Homepage to: http://open.eucalyptus.com/
  - Changed Vcs-Bzr to reflect new location of Ubuntu hosted development branch.
  - Made the Build Dependency of groovy and the binary eucalyptus-java-common
    package depend on version >=1.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
        /**
4
 
         * adb_getLogsType.c
5
 
         *
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)
8
 
         */
9
 
 
10
 
        #include "adb_getLogsType.h"
11
 
 
12
 
                /*
13
 
                 * This type was generated from the piece of schema that had
14
 
                 * name = getLogsType
15
 
                 * Namespace URI = http://eucalyptus.ucsb.edu/
16
 
                 * Namespace Prefix = ns1
17
 
                 */
18
 
 
19
 
 
20
 
 
21
 
        struct adb_getLogsType
22
 
        {
23
 
            axis2_char_t* property_correlationId;
24
 
 
25
 
 
26
 
                axis2_bool_t is_valid_correlationId;
27
 
 
28
 
 
29
 
            axis2_char_t* property_userId;
30
 
 
31
 
 
32
 
                axis2_bool_t is_valid_userId;
33
 
 
34
 
 
35
 
            axis2_char_t* property_statusMessage;
36
 
 
37
 
 
38
 
                axis2_bool_t is_valid_statusMessage;
39
 
 
40
 
 
41
 
            axis2_bool_t property_return;
42
 
 
43
 
 
44
 
                axis2_bool_t is_valid_return;
45
 
 
46
 
 
47
 
            axis2_char_t* property_serviceTag;
48
 
 
49
 
 
50
 
                axis2_bool_t is_valid_serviceTag;
51
 
 
52
 
 
53
 
 
54
 
        };
55
 
 
56
 
 
57
 
       /************************* Private Function prototypes ********************************/
58
 
 
59
 
 
60
 
                axis2_status_t AXIS2_CALL
61
 
                adb_getLogsType_set_correlationId_nil(
62
 
                        adb_getLogsType_t* _getLogsType,
63
 
                        const axutil_env_t *env);
64
 
 
65
 
 
66
 
                axis2_status_t AXIS2_CALL
67
 
                adb_getLogsType_set_userId_nil(
68
 
                        adb_getLogsType_t* _getLogsType,
69
 
                        const axutil_env_t *env);
70
 
 
71
 
 
72
 
                axis2_status_t AXIS2_CALL
73
 
                adb_getLogsType_set_return_nil(
74
 
                        adb_getLogsType_t* _getLogsType,
75
 
                        const axutil_env_t *env);
76
 
 
77
 
 
78
 
                axis2_status_t AXIS2_CALL
79
 
                adb_getLogsType_set_serviceTag_nil(
80
 
                        adb_getLogsType_t* _getLogsType,
81
 
                        const axutil_env_t *env);
82
 
 
83
 
 
84
 
 
85
 
       /************************* Function Implmentations ********************************/
86
 
        adb_getLogsType_t* AXIS2_CALL
87
 
        adb_getLogsType_create(
88
 
            const axutil_env_t *env)
89
 
        {
90
 
            adb_getLogsType_t *_getLogsType = NULL;
91
 
 
92
 
            AXIS2_ENV_CHECK(env, NULL);
93
 
 
94
 
            _getLogsType = (adb_getLogsType_t *) AXIS2_MALLOC(env->
95
 
                allocator, sizeof(adb_getLogsType_t));
96
 
 
97
 
            if(NULL == _getLogsType)
98
 
            {
99
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
100
 
                return NULL;
101
 
            }
102
 
 
103
 
            memset(_getLogsType, 0, sizeof(adb_getLogsType_t));
104
 
 
105
 
            _getLogsType->property_correlationId  = NULL;
106
 
                  _getLogsType->is_valid_correlationId  = AXIS2_FALSE;
107
 
            _getLogsType->property_userId  = NULL;
108
 
                  _getLogsType->is_valid_userId  = AXIS2_FALSE;
109
 
            _getLogsType->property_statusMessage  = NULL;
110
 
                  _getLogsType->is_valid_statusMessage  = AXIS2_FALSE;
111
 
            _getLogsType->is_valid_return  = AXIS2_FALSE;
112
 
            _getLogsType->property_serviceTag  = NULL;
113
 
                  _getLogsType->is_valid_serviceTag  = AXIS2_FALSE;
114
 
 
115
 
 
116
 
            return _getLogsType;
117
 
        }
118
 
 
119
 
        axis2_status_t AXIS2_CALL
120
 
        adb_getLogsType_free (
121
 
                adb_getLogsType_t* _getLogsType,
122
 
                const axutil_env_t *env)
123
 
        {
124
 
 
125
 
 
126
 
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
127
 
            AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
128
 
 
129
 
            adb_getLogsType_reset_correlationId(_getLogsType, env);
130
 
            adb_getLogsType_reset_userId(_getLogsType, env);
131
 
            adb_getLogsType_reset_statusMessage(_getLogsType, env);
132
 
            adb_getLogsType_reset_return(_getLogsType, env);
133
 
            adb_getLogsType_reset_serviceTag(_getLogsType, env);
134
 
 
135
 
 
136
 
            if(_getLogsType)
137
 
            {
138
 
                AXIS2_FREE(env->allocator, _getLogsType);
139
 
                _getLogsType = NULL;
140
 
            }
141
 
            return AXIS2_SUCCESS;
142
 
        }
143
 
 
144
 
 
145
 
 
146
 
 
147
 
        axis2_status_t AXIS2_CALL
148
 
        adb_getLogsType_deserialize(
149
 
                adb_getLogsType_t* _getLogsType,
150
 
                const axutil_env_t *env,
151
 
                axiom_node_t **dp_parent,
152
 
                axis2_bool_t *dp_is_early_node_valid,
153
 
                axis2_bool_t dont_care_minoccurs)
154
 
        {
155
 
          axiom_node_t *parent = *dp_parent;
156
 
 
157
 
          axis2_status_t status = AXIS2_SUCCESS;
158
 
 
159
 
             axis2_char_t* text_value = NULL;
160
 
             axutil_qname_t *qname = NULL;
161
 
 
162
 
            axutil_qname_t *element_qname = NULL;
163
 
 
164
 
               axiom_node_t *first_node = NULL;
165
 
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
166
 
               axiom_node_t *current_node = NULL;
167
 
               axiom_element_t *current_element = NULL;
168
 
 
169
 
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
170
 
            AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
171
 
 
172
 
 
173
 
 
174
 
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
175
 
              {
176
 
                  parent = axiom_node_get_next_sibling(parent, env);
177
 
              }
178
 
              if (NULL == parent)
179
 
              {
180
 
                /* This should be checked before everything */
181
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
182
 
                            "Failed in building adb object for getLogsType : "
183
 
                            "NULL elemenet can not be passed to deserialize");
184
 
                return AXIS2_FAILURE;
185
 
              }
186
 
 
187
 
 
188
 
                      first_node = axiom_node_get_first_child(parent, env);
189
 
 
190
 
 
191
 
 
192
 
 
193
 
                     /*
194
 
                      * building correlationId element
195
 
                      */
196
 
 
197
 
 
198
 
 
199
 
                                   current_node = first_node;
200
 
                                   is_early_node_valid = AXIS2_FALSE;
201
 
 
202
 
 
203
 
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
204
 
                                    {
205
 
                                        current_node = axiom_node_get_next_sibling(current_node, env);
206
 
                                    }
207
 
                                    if(current_node != NULL)
208
 
                                    {
209
 
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
210
 
                                        qname = axiom_element_get_qname(current_element, env, current_node);
211
 
                                    }
212
 
 
213
 
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
214
 
 
215
 
 
216
 
                           if (
217
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
218
 
                           {
219
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
220
 
                              {
221
 
                                is_early_node_valid = AXIS2_TRUE;
222
 
                              }
223
 
 
224
 
 
225
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
226
 
                                      if(text_value != NULL)
227
 
                                      {
228
 
                                            status = adb_getLogsType_set_correlationId(_getLogsType, env,
229
 
                                                               text_value);
230
 
                                      }
231
 
 
232
 
                                      else
233
 
                                      {
234
 
                                            /*
235
 
                                             * axis2_qname_t *qname = NULL;
236
 
                                             * axiom_attribute_t *the_attri = NULL;
237
 
                                             *
238
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
239
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
240
 
                                             */
241
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
242
 
 
243
 
                                            axiom_attribute_t *the_attri = NULL;
244
 
                                            axis2_char_t *attrib_text = NULL;
245
 
                                            axutil_hash_t *attribute_hash = NULL;
246
 
 
247
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
248
 
 
249
 
                                            attrib_text = NULL;
250
 
                                            if(attribute_hash)
251
 
                                            {
252
 
                                                 axutil_hash_index_t *hi;
253
 
                                                 void *val;
254
 
                                                 const void *key;
255
 
 
256
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
257
 
                                                 {
258
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
259
 
 
260
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
261
 
                                                     {
262
 
                                                         the_attri = (axiom_attribute_t*)val;
263
 
                                                         break;
264
 
                                                     }
265
 
                                                 }
266
 
                                            }
267
 
 
268
 
                                            if(the_attri)
269
 
                                            {
270
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
271
 
                                            }
272
 
                                            else
273
 
                                            {
274
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
275
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
276
 
                                            }
277
 
 
278
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
279
 
                                            {
280
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
281
 
                                                status = AXIS2_FAILURE;
282
 
                                            }
283
 
                                            else
284
 
                                            {
285
 
                                                /* after all, we found this is a empty string */
286
 
                                                status = adb_getLogsType_set_correlationId(_getLogsType, env,
287
 
                                                                   "");
288
 
                                            }
289
 
                                      }
290
 
 
291
 
                                 if(AXIS2_FAILURE ==  status)
292
 
                                 {
293
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
294
 
                                     if(element_qname)
295
 
                                     {
296
 
                                         axutil_qname_free(element_qname, env);
297
 
                                     }
298
 
                                     return AXIS2_FAILURE;
299
 
                                 }
300
 
                              }
301
 
 
302
 
                  if(element_qname)
303
 
                  {
304
 
                     axutil_qname_free(element_qname, env);
305
 
                     element_qname = NULL;
306
 
                  }
307
 
 
308
 
 
309
 
 
310
 
                     /*
311
 
                      * building userId element
312
 
                      */
313
 
 
314
 
 
315
 
 
316
 
                                    /*
317
 
                                     * because elements are ordered this works fine
318
 
                                     */
319
 
 
320
 
 
321
 
                                   if(current_node != NULL && is_early_node_valid)
322
 
                                   {
323
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
324
 
 
325
 
 
326
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
327
 
                                        {
328
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
329
 
                                        }
330
 
                                        if(current_node != NULL)
331
 
                                        {
332
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
333
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
334
 
                                        }
335
 
 
336
 
                                   }
337
 
                                   is_early_node_valid = AXIS2_FALSE;
338
 
 
339
 
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
340
 
 
341
 
 
342
 
                           if (
343
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
344
 
                           {
345
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
346
 
                              {
347
 
                                is_early_node_valid = AXIS2_TRUE;
348
 
                              }
349
 
 
350
 
 
351
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
352
 
                                      if(text_value != NULL)
353
 
                                      {
354
 
                                            status = adb_getLogsType_set_userId(_getLogsType, env,
355
 
                                                               text_value);
356
 
                                      }
357
 
 
358
 
                                      else
359
 
                                      {
360
 
                                            /*
361
 
                                             * axis2_qname_t *qname = NULL;
362
 
                                             * axiom_attribute_t *the_attri = NULL;
363
 
                                             *
364
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
365
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
366
 
                                             */
367
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
368
 
 
369
 
                                            axiom_attribute_t *the_attri = NULL;
370
 
                                            axis2_char_t *attrib_text = NULL;
371
 
                                            axutil_hash_t *attribute_hash = NULL;
372
 
 
373
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
374
 
 
375
 
                                            attrib_text = NULL;
376
 
                                            if(attribute_hash)
377
 
                                            {
378
 
                                                 axutil_hash_index_t *hi;
379
 
                                                 void *val;
380
 
                                                 const void *key;
381
 
 
382
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
383
 
                                                 {
384
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
385
 
 
386
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
387
 
                                                     {
388
 
                                                         the_attri = (axiom_attribute_t*)val;
389
 
                                                         break;
390
 
                                                     }
391
 
                                                 }
392
 
                                            }
393
 
 
394
 
                                            if(the_attri)
395
 
                                            {
396
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
397
 
                                            }
398
 
                                            else
399
 
                                            {
400
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
401
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
402
 
                                            }
403
 
 
404
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
405
 
                                            {
406
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
407
 
                                                status = AXIS2_FAILURE;
408
 
                                            }
409
 
                                            else
410
 
                                            {
411
 
                                                /* after all, we found this is a empty string */
412
 
                                                status = adb_getLogsType_set_userId(_getLogsType, env,
413
 
                                                                   "");
414
 
                                            }
415
 
                                      }
416
 
 
417
 
                                 if(AXIS2_FAILURE ==  status)
418
 
                                 {
419
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
420
 
                                     if(element_qname)
421
 
                                     {
422
 
                                         axutil_qname_free(element_qname, env);
423
 
                                     }
424
 
                                     return AXIS2_FAILURE;
425
 
                                 }
426
 
                              }
427
 
 
428
 
                  if(element_qname)
429
 
                  {
430
 
                     axutil_qname_free(element_qname, env);
431
 
                     element_qname = NULL;
432
 
                  }
433
 
 
434
 
 
435
 
 
436
 
                     /*
437
 
                      * building statusMessage element
438
 
                      */
439
 
 
440
 
 
441
 
 
442
 
                                    /*
443
 
                                     * because elements are ordered this works fine
444
 
                                     */
445
 
 
446
 
 
447
 
                                   if(current_node != NULL && is_early_node_valid)
448
 
                                   {
449
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
450
 
 
451
 
 
452
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
453
 
                                        {
454
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
455
 
                                        }
456
 
                                        if(current_node != NULL)
457
 
                                        {
458
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
459
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
460
 
                                        }
461
 
 
462
 
                                   }
463
 
                                   is_early_node_valid = AXIS2_FALSE;
464
 
 
465
 
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
466
 
 
467
 
 
468
 
                           if (
469
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
470
 
                           {
471
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
472
 
                              {
473
 
                                is_early_node_valid = AXIS2_TRUE;
474
 
                              }
475
 
 
476
 
 
477
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
478
 
                                      if(text_value != NULL)
479
 
                                      {
480
 
                                            status = adb_getLogsType_set_statusMessage(_getLogsType, env,
481
 
                                                               text_value);
482
 
                                      }
483
 
 
484
 
                                 if(AXIS2_FAILURE ==  status)
485
 
                                 {
486
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
487
 
                                     if(element_qname)
488
 
                                     {
489
 
                                         axutil_qname_free(element_qname, env);
490
 
                                     }
491
 
                                     return AXIS2_FAILURE;
492
 
                                 }
493
 
                              }
494
 
 
495
 
                  if(element_qname)
496
 
                  {
497
 
                     axutil_qname_free(element_qname, env);
498
 
                     element_qname = NULL;
499
 
                  }
500
 
 
501
 
 
502
 
 
503
 
                     /*
504
 
                      * building return element
505
 
                      */
506
 
 
507
 
 
508
 
 
509
 
                                    /*
510
 
                                     * because elements are ordered this works fine
511
 
                                     */
512
 
 
513
 
 
514
 
                                   if(current_node != NULL && is_early_node_valid)
515
 
                                   {
516
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
517
 
 
518
 
 
519
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
520
 
                                        {
521
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
522
 
                                        }
523
 
                                        if(current_node != NULL)
524
 
                                        {
525
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
526
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
527
 
                                        }
528
 
 
529
 
                                   }
530
 
                                   is_early_node_valid = AXIS2_FALSE;
531
 
 
532
 
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
533
 
 
534
 
 
535
 
                           if (
536
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
537
 
                           {
538
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
539
 
                              {
540
 
                                is_early_node_valid = AXIS2_TRUE;
541
 
                              }
542
 
 
543
 
 
544
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
545
 
                                      if(text_value != NULL)
546
 
                                      {
547
 
                                            if (!axutil_strcasecmp(text_value , "true"))
548
 
                                            {
549
 
                                                status = adb_getLogsType_set_return(_getLogsType, env,
550
 
                                                                 AXIS2_TRUE);
551
 
                                            }
552
 
                                            else
553
 
                                            {
554
 
                                                status = adb_getLogsType_set_return(_getLogsType, env,
555
 
                                                                      AXIS2_FALSE);
556
 
                                            }
557
 
                                      }
558
 
 
559
 
                                      else
560
 
                                      {
561
 
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
562
 
                                          status = AXIS2_FAILURE;
563
 
                                      }
564
 
 
565
 
                                 if(AXIS2_FAILURE ==  status)
566
 
                                 {
567
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
568
 
                                     if(element_qname)
569
 
                                     {
570
 
                                         axutil_qname_free(element_qname, env);
571
 
                                     }
572
 
                                     return AXIS2_FAILURE;
573
 
                                 }
574
 
                              }
575
 
 
576
 
                  if(element_qname)
577
 
                  {
578
 
                     axutil_qname_free(element_qname, env);
579
 
                     element_qname = NULL;
580
 
                  }
581
 
 
582
 
 
583
 
 
584
 
                     /*
585
 
                      * building serviceTag element
586
 
                      */
587
 
 
588
 
 
589
 
 
590
 
                                    /*
591
 
                                     * because elements are ordered this works fine
592
 
                                     */
593
 
 
594
 
 
595
 
                                   if(current_node != NULL && is_early_node_valid)
596
 
                                   {
597
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
598
 
 
599
 
 
600
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
601
 
                                        {
602
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
603
 
                                        }
604
 
                                        if(current_node != NULL)
605
 
                                        {
606
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
607
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
608
 
                                        }
609
 
 
610
 
                                   }
611
 
                                   is_early_node_valid = AXIS2_FALSE;
612
 
 
613
 
                                 element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL);
614
 
 
615
 
 
616
 
                           if (
617
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
618
 
                           {
619
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
620
 
                              {
621
 
                                is_early_node_valid = AXIS2_TRUE;
622
 
                              }
623
 
 
624
 
 
625
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
626
 
                                      if(text_value != NULL)
627
 
                                      {
628
 
                                            status = adb_getLogsType_set_serviceTag(_getLogsType, env,
629
 
                                                               text_value);
630
 
                                      }
631
 
 
632
 
                                      else
633
 
                                      {
634
 
                                            /*
635
 
                                             * axis2_qname_t *qname = NULL;
636
 
                                             * axiom_attribute_t *the_attri = NULL;
637
 
                                             *
638
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
639
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
640
 
                                             */
641
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
642
 
 
643
 
                                            axiom_attribute_t *the_attri = NULL;
644
 
                                            axis2_char_t *attrib_text = NULL;
645
 
                                            axutil_hash_t *attribute_hash = NULL;
646
 
 
647
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
648
 
 
649
 
                                            attrib_text = NULL;
650
 
                                            if(attribute_hash)
651
 
                                            {
652
 
                                                 axutil_hash_index_t *hi;
653
 
                                                 void *val;
654
 
                                                 const void *key;
655
 
 
656
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
657
 
                                                 {
658
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
659
 
 
660
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
661
 
                                                     {
662
 
                                                         the_attri = (axiom_attribute_t*)val;
663
 
                                                         break;
664
 
                                                     }
665
 
                                                 }
666
 
                                            }
667
 
 
668
 
                                            if(the_attri)
669
 
                                            {
670
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
671
 
                                            }
672
 
                                            else
673
 
                                            {
674
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
675
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
676
 
                                            }
677
 
 
678
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
679
 
                                            {
680
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag");
681
 
                                                status = AXIS2_FAILURE;
682
 
                                            }
683
 
                                            else
684
 
                                            {
685
 
                                                /* after all, we found this is a empty string */
686
 
                                                status = adb_getLogsType_set_serviceTag(_getLogsType, env,
687
 
                                                                   "");
688
 
                                            }
689
 
                                      }
690
 
 
691
 
                                 if(AXIS2_FAILURE ==  status)
692
 
                                 {
693
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag ");
694
 
                                     if(element_qname)
695
 
                                     {
696
 
                                         axutil_qname_free(element_qname, env);
697
 
                                     }
698
 
                                     return AXIS2_FAILURE;
699
 
                                 }
700
 
                              }
701
 
 
702
 
                  if(element_qname)
703
 
                  {
704
 
                     axutil_qname_free(element_qname, env);
705
 
                     element_qname = NULL;
706
 
                  }
707
 
 
708
 
          return status;
709
 
       }
710
 
 
711
 
          axis2_bool_t AXIS2_CALL
712
 
          adb_getLogsType_is_particle()
713
 
          {
714
 
 
715
 
                 return AXIS2_FALSE;
716
 
 
717
 
          }
718
 
 
719
 
 
720
 
          void AXIS2_CALL
721
 
          adb_getLogsType_declare_parent_namespaces(
722
 
                    adb_getLogsType_t* _getLogsType,
723
 
                    const axutil_env_t *env, axiom_element_t *parent_element,
724
 
                    axutil_hash_t *namespaces, int *next_ns_index)
725
 
          {
726
 
 
727
 
                  /* Here this is an empty function, Nothing to declare */
728
 
 
729
 
          }
730
 
 
731
 
 
732
 
 
733
 
        axiom_node_t* AXIS2_CALL
734
 
        adb_getLogsType_serialize(
735
 
                adb_getLogsType_t* _getLogsType,
736
 
                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)
737
 
        {
738
 
 
739
 
 
740
 
             axis2_char_t *string_to_stream;
741
 
 
742
 
 
743
 
         axiom_node_t *current_node = NULL;
744
 
         int tag_closed = 0;
745
 
 
746
 
 
747
 
 
748
 
                axiom_namespace_t *ns1 = NULL;
749
 
 
750
 
                axis2_char_t *qname_uri = NULL;
751
 
                axis2_char_t *qname_prefix = NULL;
752
 
                axis2_char_t *p_prefix = NULL;
753
 
                axis2_bool_t ns_already_defined;
754
 
 
755
 
                    axis2_char_t *text_value_1;
756
 
                    axis2_char_t *text_value_1_temp;
757
 
 
758
 
                    axis2_char_t *text_value_2;
759
 
                    axis2_char_t *text_value_2_temp;
760
 
 
761
 
                    axis2_char_t *text_value_3;
762
 
                    axis2_char_t *text_value_3_temp;
763
 
 
764
 
                    axis2_char_t text_value_4[64];
765
 
 
766
 
                    axis2_char_t *text_value_5;
767
 
                    axis2_char_t *text_value_5_temp;
768
 
 
769
 
               axis2_char_t *start_input_str = NULL;
770
 
               axis2_char_t *end_input_str = NULL;
771
 
               unsigned int start_input_str_len = 0;
772
 
               unsigned int end_input_str_len = 0;
773
 
 
774
 
 
775
 
               axiom_data_source_t *data_source = NULL;
776
 
               axutil_stream_t *stream = NULL;
777
 
 
778
 
 
779
 
 
780
 
            AXIS2_ENV_CHECK(env, NULL);
781
 
            AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL);
782
 
 
783
 
 
784
 
                    current_node = parent;
785
 
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
786
 
                    if (!data_source)
787
 
                        return NULL;
788
 
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
789
 
                    if (!stream)
790
 
                        return NULL;
791
 
 
792
 
            if(!parent_tag_closed)
793
 
            {
794
 
 
795
 
              string_to_stream = ">";
796
 
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
797
 
              tag_closed = 1;
798
 
 
799
 
            }
800
 
 
801
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
802
 
                       {
803
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
804
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
805
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
806
 
 
807
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
808
 
                                            "http://eucalyptus.ucsb.edu/",
809
 
                                            p_prefix));
810
 
                       }
811
 
 
812
 
 
813
 
                   if (!_getLogsType->is_valid_correlationId)
814
 
                   {
815
 
 
816
 
                           /* no need to complain for minoccurs=0 element */
817
 
 
818
 
 
819
 
                   }
820
 
                   else
821
 
                   {
822
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
823
 
                                 (4 + axutil_strlen(p_prefix) +
824
 
                                  axutil_strlen("correlationId")));
825
 
 
826
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
827
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
828
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
829
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
830
 
 
831
 
 
832
 
 
833
 
 
834
 
 
835
 
 
836
 
                     /*
837
 
                      * parsing correlationId element
838
 
                      */
839
 
 
840
 
 
841
 
 
842
 
                            sprintf(start_input_str, "<%s%scorrelationId>",
843
 
                                 p_prefix?p_prefix:"",
844
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
845
 
 
846
 
                        start_input_str_len = axutil_strlen(start_input_str);
847
 
                        sprintf(end_input_str, "</%s%scorrelationId>",
848
 
                                 p_prefix?p_prefix:"",
849
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
850
 
                        end_input_str_len = axutil_strlen(end_input_str);
851
 
 
852
 
                           text_value_1 = _getLogsType->property_correlationId;
853
 
 
854
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
855
 
 
856
 
 
857
 
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
858
 
                           if (text_value_1_temp)
859
 
                           {
860
 
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
861
 
                               AXIS2_FREE(env->allocator, text_value_1_temp);
862
 
                           }
863
 
                           else
864
 
                           {
865
 
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
866
 
                           }
867
 
 
868
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
869
 
 
870
 
 
871
 
                     AXIS2_FREE(env->allocator,start_input_str);
872
 
                     AXIS2_FREE(env->allocator,end_input_str);
873
 
                 }
874
 
 
875
 
 
876
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
877
 
                       {
878
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
879
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
880
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
881
 
 
882
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
883
 
                                            "http://eucalyptus.ucsb.edu/",
884
 
                                            p_prefix));
885
 
                       }
886
 
 
887
 
 
888
 
                   if (!_getLogsType->is_valid_userId)
889
 
                   {
890
 
 
891
 
                           /* no need to complain for minoccurs=0 element */
892
 
 
893
 
 
894
 
                   }
895
 
                   else
896
 
                   {
897
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
898
 
                                 (4 + axutil_strlen(p_prefix) +
899
 
                                  axutil_strlen("userId")));
900
 
 
901
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
902
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
903
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
904
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
905
 
 
906
 
 
907
 
 
908
 
 
909
 
 
910
 
 
911
 
                     /*
912
 
                      * parsing userId element
913
 
                      */
914
 
 
915
 
 
916
 
 
917
 
                            sprintf(start_input_str, "<%s%suserId>",
918
 
                                 p_prefix?p_prefix:"",
919
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
920
 
 
921
 
                        start_input_str_len = axutil_strlen(start_input_str);
922
 
                        sprintf(end_input_str, "</%s%suserId>",
923
 
                                 p_prefix?p_prefix:"",
924
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
925
 
                        end_input_str_len = axutil_strlen(end_input_str);
926
 
 
927
 
                           text_value_2 = _getLogsType->property_userId;
928
 
 
929
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
930
 
 
931
 
 
932
 
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
933
 
                           if (text_value_2_temp)
934
 
                           {
935
 
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
936
 
                               AXIS2_FREE(env->allocator, text_value_2_temp);
937
 
                           }
938
 
                           else
939
 
                           {
940
 
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
941
 
                           }
942
 
 
943
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
944
 
 
945
 
 
946
 
                     AXIS2_FREE(env->allocator,start_input_str);
947
 
                     AXIS2_FREE(env->allocator,end_input_str);
948
 
                 }
949
 
 
950
 
 
951
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
952
 
                       {
953
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
954
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
955
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
956
 
 
957
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
958
 
                                            "http://eucalyptus.ucsb.edu/",
959
 
                                            p_prefix));
960
 
                       }
961
 
 
962
 
 
963
 
                   if (!_getLogsType->is_valid_statusMessage)
964
 
                   {
965
 
 
966
 
                           /* no need to complain for minoccurs=0 element */
967
 
 
968
 
 
969
 
                   }
970
 
                   else
971
 
                   {
972
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
973
 
                                 (4 + axutil_strlen(p_prefix) +
974
 
                                  axutil_strlen("statusMessage")));
975
 
 
976
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
977
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
978
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
979
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
980
 
 
981
 
 
982
 
 
983
 
 
984
 
 
985
 
 
986
 
                     /*
987
 
                      * parsing statusMessage element
988
 
                      */
989
 
 
990
 
 
991
 
 
992
 
                            sprintf(start_input_str, "<%s%sstatusMessage>",
993
 
                                 p_prefix?p_prefix:"",
994
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
995
 
 
996
 
                        start_input_str_len = axutil_strlen(start_input_str);
997
 
                        sprintf(end_input_str, "</%s%sstatusMessage>",
998
 
                                 p_prefix?p_prefix:"",
999
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1000
 
                        end_input_str_len = axutil_strlen(end_input_str);
1001
 
 
1002
 
                           text_value_3 = _getLogsType->property_statusMessage;
1003
 
 
1004
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1005
 
 
1006
 
 
1007
 
                           text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
1008
 
                           if (text_value_3_temp)
1009
 
                           {
1010
 
                               axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
1011
 
                               AXIS2_FREE(env->allocator, text_value_3_temp);
1012
 
                           }
1013
 
                           else
1014
 
                           {
1015
 
                               axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1016
 
                           }
1017
 
 
1018
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1019
 
 
1020
 
 
1021
 
                     AXIS2_FREE(env->allocator,start_input_str);
1022
 
                     AXIS2_FREE(env->allocator,end_input_str);
1023
 
                 }
1024
 
 
1025
 
 
1026
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1027
 
                       {
1028
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1029
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1030
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1031
 
 
1032
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1033
 
                                            "http://eucalyptus.ucsb.edu/",
1034
 
                                            p_prefix));
1035
 
                       }
1036
 
 
1037
 
 
1038
 
                   if (!_getLogsType->is_valid_return)
1039
 
                   {
1040
 
 
1041
 
                           /* no need to complain for minoccurs=0 element */
1042
 
 
1043
 
 
1044
 
                   }
1045
 
                   else
1046
 
                   {
1047
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1048
 
                                 (4 + axutil_strlen(p_prefix) +
1049
 
                                  axutil_strlen("return")));
1050
 
 
1051
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1052
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1053
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
1054
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1055
 
 
1056
 
 
1057
 
 
1058
 
 
1059
 
 
1060
 
 
1061
 
                     /*
1062
 
                      * parsing return element
1063
 
                      */
1064
 
 
1065
 
 
1066
 
 
1067
 
                            sprintf(start_input_str, "<%s%sreturn>",
1068
 
                                 p_prefix?p_prefix:"",
1069
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1070
 
 
1071
 
                        start_input_str_len = axutil_strlen(start_input_str);
1072
 
                        sprintf(end_input_str, "</%s%sreturn>",
1073
 
                                 p_prefix?p_prefix:"",
1074
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1075
 
                        end_input_str_len = axutil_strlen(end_input_str);
1076
 
 
1077
 
                           strcpy(text_value_4, (_getLogsType->property_return)?"true":"false");
1078
 
 
1079
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1080
 
 
1081
 
                           axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1082
 
 
1083
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1084
 
 
1085
 
 
1086
 
                     AXIS2_FREE(env->allocator,start_input_str);
1087
 
                     AXIS2_FREE(env->allocator,end_input_str);
1088
 
                 }
1089
 
 
1090
 
 
1091
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1092
 
                       {
1093
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1094
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1095
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1096
 
 
1097
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1098
 
                                            "http://eucalyptus.ucsb.edu/",
1099
 
                                            p_prefix));
1100
 
                       }
1101
 
 
1102
 
 
1103
 
                   if (!_getLogsType->is_valid_serviceTag)
1104
 
                   {
1105
 
 
1106
 
                           /* no need to complain for minoccurs=0 element */
1107
 
 
1108
 
 
1109
 
                   }
1110
 
                   else
1111
 
                   {
1112
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1113
 
                                 (4 + axutil_strlen(p_prefix) +
1114
 
                                  axutil_strlen("serviceTag")));
1115
 
 
1116
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1117
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1118
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag")));
1119
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1120
 
 
1121
 
 
1122
 
 
1123
 
 
1124
 
 
1125
 
 
1126
 
                     /*
1127
 
                      * parsing serviceTag element
1128
 
                      */
1129
 
 
1130
 
 
1131
 
 
1132
 
                            sprintf(start_input_str, "<%s%sserviceTag>",
1133
 
                                 p_prefix?p_prefix:"",
1134
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1135
 
 
1136
 
                        start_input_str_len = axutil_strlen(start_input_str);
1137
 
                        sprintf(end_input_str, "</%s%sserviceTag>",
1138
 
                                 p_prefix?p_prefix:"",
1139
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1140
 
                        end_input_str_len = axutil_strlen(end_input_str);
1141
 
 
1142
 
                           text_value_5 = _getLogsType->property_serviceTag;
1143
 
 
1144
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1145
 
 
1146
 
 
1147
 
                           text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
1148
 
                           if (text_value_5_temp)
1149
 
                           {
1150
 
                               axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
1151
 
                               AXIS2_FREE(env->allocator, text_value_5_temp);
1152
 
                           }
1153
 
                           else
1154
 
                           {
1155
 
                               axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1156
 
                           }
1157
 
 
1158
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1159
 
 
1160
 
 
1161
 
                     AXIS2_FREE(env->allocator,start_input_str);
1162
 
                     AXIS2_FREE(env->allocator,end_input_str);
1163
 
                 }
1164
 
 
1165
 
 
1166
 
 
1167
 
            return parent;
1168
 
        }
1169
 
 
1170
 
 
1171
 
 
1172
 
 
1173
 
            /**
1174
 
             * getter for correlationId.
1175
 
             */
1176
 
            axis2_char_t* AXIS2_CALL
1177
 
            adb_getLogsType_get_correlationId(
1178
 
                    adb_getLogsType_t* _getLogsType,
1179
 
                    const axutil_env_t *env)
1180
 
             {
1181
 
 
1182
 
                    AXIS2_ENV_CHECK(env, NULL);
1183
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL);
1184
 
 
1185
 
 
1186
 
                return _getLogsType->property_correlationId;
1187
 
             }
1188
 
 
1189
 
            /**
1190
 
             * setter for correlationId
1191
 
             */
1192
 
            axis2_status_t AXIS2_CALL
1193
 
            adb_getLogsType_set_correlationId(
1194
 
                    adb_getLogsType_t* _getLogsType,
1195
 
                    const axutil_env_t *env,
1196
 
                    const axis2_char_t*  arg_correlationId)
1197
 
             {
1198
 
 
1199
 
 
1200
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1201
 
                AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1202
 
 
1203
 
                if(_getLogsType->is_valid_correlationId &&
1204
 
                        arg_correlationId == _getLogsType->property_correlationId)
1205
 
                {
1206
 
 
1207
 
                    return AXIS2_SUCCESS;
1208
 
                }
1209
 
 
1210
 
                adb_getLogsType_reset_correlationId(_getLogsType, env);
1211
 
 
1212
 
 
1213
 
                if(NULL == arg_correlationId)
1214
 
                {
1215
 
                    /* We are already done */
1216
 
                    return AXIS2_SUCCESS;
1217
 
                }
1218
 
                _getLogsType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
1219
 
                        if(NULL == _getLogsType->property_correlationId)
1220
 
                        {
1221
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
1222
 
                            return AXIS2_FAILURE;
1223
 
                        }
1224
 
                        _getLogsType->is_valid_correlationId = AXIS2_TRUE;
1225
 
 
1226
 
                return AXIS2_SUCCESS;
1227
 
             }
1228
 
 
1229
 
 
1230
 
 
1231
 
           /**
1232
 
            * resetter for correlationId
1233
 
            */
1234
 
           axis2_status_t AXIS2_CALL
1235
 
           adb_getLogsType_reset_correlationId(
1236
 
                   adb_getLogsType_t* _getLogsType,
1237
 
                   const axutil_env_t *env)
1238
 
           {
1239
 
               int i = 0;
1240
 
               int count = 0;
1241
 
               void *element = NULL;
1242
 
 
1243
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1244
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1245
 
 
1246
 
 
1247
 
 
1248
 
 
1249
 
 
1250
 
                if(_getLogsType->property_correlationId != NULL)
1251
 
                {
1252
 
 
1253
 
 
1254
 
                        AXIS2_FREE(env-> allocator, _getLogsType->property_correlationId);
1255
 
                     _getLogsType->property_correlationId = NULL;
1256
 
                }
1257
 
 
1258
 
 
1259
 
 
1260
 
                _getLogsType->is_valid_correlationId = AXIS2_FALSE;
1261
 
               return AXIS2_SUCCESS;
1262
 
           }
1263
 
 
1264
 
           /**
1265
 
            * Check whether correlationId is nill
1266
 
            */
1267
 
           axis2_bool_t AXIS2_CALL
1268
 
           adb_getLogsType_is_correlationId_nil(
1269
 
                   adb_getLogsType_t* _getLogsType,
1270
 
                   const axutil_env_t *env)
1271
 
           {
1272
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1273
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE);
1274
 
 
1275
 
               return !_getLogsType->is_valid_correlationId;
1276
 
           }
1277
 
 
1278
 
           /**
1279
 
            * Set correlationId to nill (currently the same as reset)
1280
 
            */
1281
 
           axis2_status_t AXIS2_CALL
1282
 
           adb_getLogsType_set_correlationId_nil(
1283
 
                   adb_getLogsType_t* _getLogsType,
1284
 
                   const axutil_env_t *env)
1285
 
           {
1286
 
               return adb_getLogsType_reset_correlationId(_getLogsType, env);
1287
 
           }
1288
 
 
1289
 
 
1290
 
 
1291
 
            /**
1292
 
             * getter for userId.
1293
 
             */
1294
 
            axis2_char_t* AXIS2_CALL
1295
 
            adb_getLogsType_get_userId(
1296
 
                    adb_getLogsType_t* _getLogsType,
1297
 
                    const axutil_env_t *env)
1298
 
             {
1299
 
 
1300
 
                    AXIS2_ENV_CHECK(env, NULL);
1301
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL);
1302
 
 
1303
 
 
1304
 
                return _getLogsType->property_userId;
1305
 
             }
1306
 
 
1307
 
            /**
1308
 
             * setter for userId
1309
 
             */
1310
 
            axis2_status_t AXIS2_CALL
1311
 
            adb_getLogsType_set_userId(
1312
 
                    adb_getLogsType_t* _getLogsType,
1313
 
                    const axutil_env_t *env,
1314
 
                    const axis2_char_t*  arg_userId)
1315
 
             {
1316
 
 
1317
 
 
1318
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1319
 
                AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1320
 
 
1321
 
                if(_getLogsType->is_valid_userId &&
1322
 
                        arg_userId == _getLogsType->property_userId)
1323
 
                {
1324
 
 
1325
 
                    return AXIS2_SUCCESS;
1326
 
                }
1327
 
 
1328
 
                adb_getLogsType_reset_userId(_getLogsType, env);
1329
 
 
1330
 
 
1331
 
                if(NULL == arg_userId)
1332
 
                {
1333
 
                    /* We are already done */
1334
 
                    return AXIS2_SUCCESS;
1335
 
                }
1336
 
                _getLogsType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
1337
 
                        if(NULL == _getLogsType->property_userId)
1338
 
                        {
1339
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
1340
 
                            return AXIS2_FAILURE;
1341
 
                        }
1342
 
                        _getLogsType->is_valid_userId = AXIS2_TRUE;
1343
 
 
1344
 
                return AXIS2_SUCCESS;
1345
 
             }
1346
 
 
1347
 
 
1348
 
 
1349
 
           /**
1350
 
            * resetter for userId
1351
 
            */
1352
 
           axis2_status_t AXIS2_CALL
1353
 
           adb_getLogsType_reset_userId(
1354
 
                   adb_getLogsType_t* _getLogsType,
1355
 
                   const axutil_env_t *env)
1356
 
           {
1357
 
               int i = 0;
1358
 
               int count = 0;
1359
 
               void *element = NULL;
1360
 
 
1361
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1362
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
                if(_getLogsType->property_userId != NULL)
1369
 
                {
1370
 
 
1371
 
 
1372
 
                        AXIS2_FREE(env-> allocator, _getLogsType->property_userId);
1373
 
                     _getLogsType->property_userId = NULL;
1374
 
                }
1375
 
 
1376
 
 
1377
 
 
1378
 
                _getLogsType->is_valid_userId = AXIS2_FALSE;
1379
 
               return AXIS2_SUCCESS;
1380
 
           }
1381
 
 
1382
 
           /**
1383
 
            * Check whether userId is nill
1384
 
            */
1385
 
           axis2_bool_t AXIS2_CALL
1386
 
           adb_getLogsType_is_userId_nil(
1387
 
                   adb_getLogsType_t* _getLogsType,
1388
 
                   const axutil_env_t *env)
1389
 
           {
1390
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1391
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE);
1392
 
 
1393
 
               return !_getLogsType->is_valid_userId;
1394
 
           }
1395
 
 
1396
 
           /**
1397
 
            * Set userId to nill (currently the same as reset)
1398
 
            */
1399
 
           axis2_status_t AXIS2_CALL
1400
 
           adb_getLogsType_set_userId_nil(
1401
 
                   adb_getLogsType_t* _getLogsType,
1402
 
                   const axutil_env_t *env)
1403
 
           {
1404
 
               return adb_getLogsType_reset_userId(_getLogsType, env);
1405
 
           }
1406
 
 
1407
 
 
1408
 
 
1409
 
            /**
1410
 
             * getter for statusMessage.
1411
 
             */
1412
 
            axis2_char_t* AXIS2_CALL
1413
 
            adb_getLogsType_get_statusMessage(
1414
 
                    adb_getLogsType_t* _getLogsType,
1415
 
                    const axutil_env_t *env)
1416
 
             {
1417
 
 
1418
 
                    AXIS2_ENV_CHECK(env, NULL);
1419
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL);
1420
 
 
1421
 
 
1422
 
                return _getLogsType->property_statusMessage;
1423
 
             }
1424
 
 
1425
 
            /**
1426
 
             * setter for statusMessage
1427
 
             */
1428
 
            axis2_status_t AXIS2_CALL
1429
 
            adb_getLogsType_set_statusMessage(
1430
 
                    adb_getLogsType_t* _getLogsType,
1431
 
                    const axutil_env_t *env,
1432
 
                    const axis2_char_t*  arg_statusMessage)
1433
 
             {
1434
 
 
1435
 
 
1436
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1437
 
                AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1438
 
 
1439
 
                if(_getLogsType->is_valid_statusMessage &&
1440
 
                        arg_statusMessage == _getLogsType->property_statusMessage)
1441
 
                {
1442
 
 
1443
 
                    return AXIS2_SUCCESS;
1444
 
                }
1445
 
 
1446
 
                adb_getLogsType_reset_statusMessage(_getLogsType, env);
1447
 
 
1448
 
 
1449
 
                if(NULL == arg_statusMessage)
1450
 
                {
1451
 
                    /* We are already done */
1452
 
                    return AXIS2_SUCCESS;
1453
 
                }
1454
 
                _getLogsType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
1455
 
                        if(NULL == _getLogsType->property_statusMessage)
1456
 
                        {
1457
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
1458
 
                            return AXIS2_FAILURE;
1459
 
                        }
1460
 
                        _getLogsType->is_valid_statusMessage = AXIS2_TRUE;
1461
 
 
1462
 
                return AXIS2_SUCCESS;
1463
 
             }
1464
 
 
1465
 
 
1466
 
 
1467
 
           /**
1468
 
            * resetter for statusMessage
1469
 
            */
1470
 
           axis2_status_t AXIS2_CALL
1471
 
           adb_getLogsType_reset_statusMessage(
1472
 
                   adb_getLogsType_t* _getLogsType,
1473
 
                   const axutil_env_t *env)
1474
 
           {
1475
 
               int i = 0;
1476
 
               int count = 0;
1477
 
               void *element = NULL;
1478
 
 
1479
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1480
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
                if(_getLogsType->property_statusMessage != NULL)
1487
 
                {
1488
 
 
1489
 
 
1490
 
                        AXIS2_FREE(env-> allocator, _getLogsType->property_statusMessage);
1491
 
                     _getLogsType->property_statusMessage = NULL;
1492
 
                }
1493
 
 
1494
 
 
1495
 
 
1496
 
                _getLogsType->is_valid_statusMessage = AXIS2_FALSE;
1497
 
               return AXIS2_SUCCESS;
1498
 
           }
1499
 
 
1500
 
           /**
1501
 
            * Check whether statusMessage is nill
1502
 
            */
1503
 
           axis2_bool_t AXIS2_CALL
1504
 
           adb_getLogsType_is_statusMessage_nil(
1505
 
                   adb_getLogsType_t* _getLogsType,
1506
 
                   const axutil_env_t *env)
1507
 
           {
1508
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1509
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE);
1510
 
 
1511
 
               return !_getLogsType->is_valid_statusMessage;
1512
 
           }
1513
 
 
1514
 
           /**
1515
 
            * Set statusMessage to nill (currently the same as reset)
1516
 
            */
1517
 
           axis2_status_t AXIS2_CALL
1518
 
           adb_getLogsType_set_statusMessage_nil(
1519
 
                   adb_getLogsType_t* _getLogsType,
1520
 
                   const axutil_env_t *env)
1521
 
           {
1522
 
               return adb_getLogsType_reset_statusMessage(_getLogsType, env);
1523
 
           }
1524
 
 
1525
 
 
1526
 
 
1527
 
            /**
1528
 
             * getter for return.
1529
 
             */
1530
 
            axis2_bool_t AXIS2_CALL
1531
 
            adb_getLogsType_get_return(
1532
 
                    adb_getLogsType_t* _getLogsType,
1533
 
                    const axutil_env_t *env)
1534
 
             {
1535
 
 
1536
 
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
1537
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsType, (axis2_bool_t)0);
1538
 
 
1539
 
 
1540
 
                return _getLogsType->property_return;
1541
 
             }
1542
 
 
1543
 
            /**
1544
 
             * setter for return
1545
 
             */
1546
 
            axis2_status_t AXIS2_CALL
1547
 
            adb_getLogsType_set_return(
1548
 
                    adb_getLogsType_t* _getLogsType,
1549
 
                    const axutil_env_t *env,
1550
 
                    axis2_bool_t  arg_return)
1551
 
             {
1552
 
 
1553
 
 
1554
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1555
 
                AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1556
 
 
1557
 
                if(_getLogsType->is_valid_return &&
1558
 
                        arg_return == _getLogsType->property_return)
1559
 
                {
1560
 
 
1561
 
                    return AXIS2_SUCCESS;
1562
 
                }
1563
 
 
1564
 
                adb_getLogsType_reset_return(_getLogsType, env);
1565
 
 
1566
 
                _getLogsType->property_return = arg_return;
1567
 
                        _getLogsType->is_valid_return = AXIS2_TRUE;
1568
 
 
1569
 
                return AXIS2_SUCCESS;
1570
 
             }
1571
 
 
1572
 
 
1573
 
 
1574
 
           /**
1575
 
            * resetter for return
1576
 
            */
1577
 
           axis2_status_t AXIS2_CALL
1578
 
           adb_getLogsType_reset_return(
1579
 
                   adb_getLogsType_t* _getLogsType,
1580
 
                   const axutil_env_t *env)
1581
 
           {
1582
 
               int i = 0;
1583
 
               int count = 0;
1584
 
               void *element = NULL;
1585
 
 
1586
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1587
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1588
 
 
1589
 
 
1590
 
               _getLogsType->is_valid_return = AXIS2_FALSE;
1591
 
               return AXIS2_SUCCESS;
1592
 
           }
1593
 
 
1594
 
           /**
1595
 
            * Check whether return is nill
1596
 
            */
1597
 
           axis2_bool_t AXIS2_CALL
1598
 
           adb_getLogsType_is_return_nil(
1599
 
                   adb_getLogsType_t* _getLogsType,
1600
 
                   const axutil_env_t *env)
1601
 
           {
1602
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1603
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE);
1604
 
 
1605
 
               return !_getLogsType->is_valid_return;
1606
 
           }
1607
 
 
1608
 
           /**
1609
 
            * Set return to nill (currently the same as reset)
1610
 
            */
1611
 
           axis2_status_t AXIS2_CALL
1612
 
           adb_getLogsType_set_return_nil(
1613
 
                   adb_getLogsType_t* _getLogsType,
1614
 
                   const axutil_env_t *env)
1615
 
           {
1616
 
               return adb_getLogsType_reset_return(_getLogsType, env);
1617
 
           }
1618
 
 
1619
 
 
1620
 
 
1621
 
            /**
1622
 
             * getter for serviceTag.
1623
 
             */
1624
 
            axis2_char_t* AXIS2_CALL
1625
 
            adb_getLogsType_get_serviceTag(
1626
 
                    adb_getLogsType_t* _getLogsType,
1627
 
                    const axutil_env_t *env)
1628
 
             {
1629
 
 
1630
 
                    AXIS2_ENV_CHECK(env, NULL);
1631
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsType, NULL);
1632
 
 
1633
 
 
1634
 
                return _getLogsType->property_serviceTag;
1635
 
             }
1636
 
 
1637
 
            /**
1638
 
             * setter for serviceTag
1639
 
             */
1640
 
            axis2_status_t AXIS2_CALL
1641
 
            adb_getLogsType_set_serviceTag(
1642
 
                    adb_getLogsType_t* _getLogsType,
1643
 
                    const axutil_env_t *env,
1644
 
                    const axis2_char_t*  arg_serviceTag)
1645
 
             {
1646
 
 
1647
 
 
1648
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1649
 
                AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1650
 
 
1651
 
                if(_getLogsType->is_valid_serviceTag &&
1652
 
                        arg_serviceTag == _getLogsType->property_serviceTag)
1653
 
                {
1654
 
 
1655
 
                    return AXIS2_SUCCESS;
1656
 
                }
1657
 
 
1658
 
                adb_getLogsType_reset_serviceTag(_getLogsType, env);
1659
 
 
1660
 
 
1661
 
                if(NULL == arg_serviceTag)
1662
 
                {
1663
 
                    /* We are already done */
1664
 
                    return AXIS2_SUCCESS;
1665
 
                }
1666
 
                _getLogsType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag);
1667
 
                        if(NULL == _getLogsType->property_serviceTag)
1668
 
                        {
1669
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag");
1670
 
                            return AXIS2_FAILURE;
1671
 
                        }
1672
 
                        _getLogsType->is_valid_serviceTag = AXIS2_TRUE;
1673
 
 
1674
 
                return AXIS2_SUCCESS;
1675
 
             }
1676
 
 
1677
 
 
1678
 
 
1679
 
           /**
1680
 
            * resetter for serviceTag
1681
 
            */
1682
 
           axis2_status_t AXIS2_CALL
1683
 
           adb_getLogsType_reset_serviceTag(
1684
 
                   adb_getLogsType_t* _getLogsType,
1685
 
                   const axutil_env_t *env)
1686
 
           {
1687
 
               int i = 0;
1688
 
               int count = 0;
1689
 
               void *element = NULL;
1690
 
 
1691
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1692
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_FAILURE);
1693
 
 
1694
 
 
1695
 
 
1696
 
 
1697
 
 
1698
 
                if(_getLogsType->property_serviceTag != NULL)
1699
 
                {
1700
 
 
1701
 
 
1702
 
                        AXIS2_FREE(env-> allocator, _getLogsType->property_serviceTag);
1703
 
                     _getLogsType->property_serviceTag = NULL;
1704
 
                }
1705
 
 
1706
 
 
1707
 
 
1708
 
                _getLogsType->is_valid_serviceTag = AXIS2_FALSE;
1709
 
               return AXIS2_SUCCESS;
1710
 
           }
1711
 
 
1712
 
           /**
1713
 
            * Check whether serviceTag is nill
1714
 
            */
1715
 
           axis2_bool_t AXIS2_CALL
1716
 
           adb_getLogsType_is_serviceTag_nil(
1717
 
                   adb_getLogsType_t* _getLogsType,
1718
 
                   const axutil_env_t *env)
1719
 
           {
1720
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1721
 
               AXIS2_PARAM_CHECK(env->error, _getLogsType, AXIS2_TRUE);
1722
 
 
1723
 
               return !_getLogsType->is_valid_serviceTag;
1724
 
           }
1725
 
 
1726
 
           /**
1727
 
            * Set serviceTag to nill (currently the same as reset)
1728
 
            */
1729
 
           axis2_status_t AXIS2_CALL
1730
 
           adb_getLogsType_set_serviceTag_nil(
1731
 
                   adb_getLogsType_t* _getLogsType,
1732
 
                   const axutil_env_t *env)
1733
 
           {
1734
 
               return adb_getLogsType_reset_serviceTag(_getLogsType, env);
1735
 
           }
1736
 
 
1737
 
 
1738