~ubuntu-branches/ubuntu/maverick/eucalyptus/maverick

« back to all changes in this revision

Viewing changes to cluster/generated/adb_ncAttachVolumeType.c

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2010-07-21 17:27:10 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20100721172710-7xv07dmdqgivc3t9
Tags: 2.0~bzr1211-0ubuntu1
* New major upstream version merge, 2.0 (r1211).
* debian/patches/:
  - 01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated.
  - 02-Makefile.patch: Updated to reflect new code layout.
  - 07-local_support_euca_conf-in.patch: Updated to reflect new code layout.
  - 08-ubuntu-default-networking.patch: Refreshed.
  - 09-small-128-192MB.patch: Updated to point to new location.
  - 10-disable-iscsi.patch: Refreshed.
  - 11-state-cleanup-memleakfix.patch: Removed, fixed upstream.
  - 15-fix-default-ramdisk.patch: Updated to point to new location.
  - 16-kvm_libvirt_xml_default_use_kvm.patch: Updated to reflect changes.
  - 17-fix_walrus_OOM_errors.patch: Removed, fixed upstream.
  - 18-priv_security.patch: Updated to reflect upstream changes.
  - 20-brute-force-webui.patch: Updated to reflect upstream changes. 
  - 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:
8
8
         */
9
9
 
10
10
        #include "adb_ncAttachVolumeType.h"
11
 
 
 
11
        
12
12
                /*
13
13
                 * This type was generated from the piece of schema that had
14
14
                 * name = ncAttachVolumeType
15
15
                 * Namespace URI = http://eucalyptus.ucsb.edu/
16
16
                 * Namespace Prefix = ns1
17
17
                 */
18
 
 
 
18
           
19
19
 
20
20
 
21
21
        struct adb_ncAttachVolumeType
22
22
        {
23
23
            axis2_char_t* property_correlationId;
24
24
 
25
 
 
 
25
                
26
26
                axis2_bool_t is_valid_correlationId;
27
27
 
28
28
 
29
29
            axis2_char_t* property_userId;
30
30
 
31
 
 
 
31
                
32
32
                axis2_bool_t is_valid_userId;
33
33
 
34
34
 
35
35
            axis2_bool_t property_return;
36
36
 
37
 
 
 
37
                
38
38
                axis2_bool_t is_valid_return;
39
39
 
40
40
 
 
41
            axis2_char_t* property_nodeName;
 
42
 
 
43
                
 
44
                axis2_bool_t is_valid_nodeName;
 
45
 
 
46
 
41
47
            int property_statusMessage;
42
48
 
43
 
 
 
49
                
44
50
                axis2_bool_t is_valid_statusMessage;
45
51
 
46
52
 
 
53
            axis2_char_t* property_instanceId;
 
54
 
 
55
                
 
56
                axis2_bool_t is_valid_instanceId;
 
57
 
 
58
 
47
59
            axis2_char_t* property_volumeId;
48
60
 
49
 
 
 
61
                
50
62
                axis2_bool_t is_valid_volumeId;
51
63
 
52
64
 
53
 
            axis2_char_t* property_instanceId;
54
 
 
55
 
 
56
 
                axis2_bool_t is_valid_instanceId;
57
 
 
58
 
 
59
65
            axis2_char_t* property_remoteDev;
60
66
 
61
 
 
 
67
                
62
68
                axis2_bool_t is_valid_remoteDev;
63
69
 
64
70
 
65
71
            axis2_char_t* property_localDev;
66
72
 
67
 
 
 
73
                
68
74
                axis2_bool_t is_valid_localDev;
69
75
 
70
76
 
71
 
 
 
77
            
72
78
        };
73
79
 
74
80
 
75
81
       /************************* Private Function prototypes ********************************/
76
 
 
77
 
 
78
 
                axis2_status_t AXIS2_CALL
79
 
                adb_ncAttachVolumeType_set_correlationId_nil(
80
 
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
81
 
                        const axutil_env_t *env);
82
 
 
 
82
        
83
83
 
84
84
                axis2_status_t AXIS2_CALL
85
85
                adb_ncAttachVolumeType_set_userId_nil(
86
86
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
87
87
                        const axutil_env_t *env);
88
 
 
 
88
            
89
89
 
90
90
                axis2_status_t AXIS2_CALL
91
91
                adb_ncAttachVolumeType_set_return_nil(
92
92
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
93
93
                        const axutil_env_t *env);
 
94
            
94
95
 
 
96
                axis2_status_t AXIS2_CALL
 
97
                adb_ncAttachVolumeType_set_instanceId_nil(
 
98
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
99
                        const axutil_env_t *env);
 
100
            
95
101
 
96
102
                axis2_status_t AXIS2_CALL
97
103
                adb_ncAttachVolumeType_set_volumeId_nil(
98
104
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
99
105
                        const axutil_env_t *env);
100
 
 
101
 
 
102
 
                axis2_status_t AXIS2_CALL
103
 
                adb_ncAttachVolumeType_set_instanceId_nil(
104
 
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
105
 
                        const axutil_env_t *env);
106
 
 
 
106
            
107
107
 
108
108
                axis2_status_t AXIS2_CALL
109
109
                adb_ncAttachVolumeType_set_remoteDev_nil(
110
110
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
111
111
                        const axutil_env_t *env);
112
 
 
 
112
            
113
113
 
114
114
                axis2_status_t AXIS2_CALL
115
115
                adb_ncAttachVolumeType_set_localDev_nil(
116
116
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
117
117
                        const axutil_env_t *env);
118
 
 
 
118
            
119
119
 
120
120
 
121
121
       /************************* Function Implmentations ********************************/
124
124
            const axutil_env_t *env)
125
125
        {
126
126
            adb_ncAttachVolumeType_t *_ncAttachVolumeType = NULL;
127
 
 
 
127
            
128
128
            AXIS2_ENV_CHECK(env, NULL);
129
129
 
130
130
            _ncAttachVolumeType = (adb_ncAttachVolumeType_t *) AXIS2_MALLOC(env->
143
143
            _ncAttachVolumeType->property_userId  = NULL;
144
144
                  _ncAttachVolumeType->is_valid_userId  = AXIS2_FALSE;
145
145
            _ncAttachVolumeType->is_valid_return  = AXIS2_FALSE;
 
146
            _ncAttachVolumeType->property_nodeName  = NULL;
 
147
                  _ncAttachVolumeType->is_valid_nodeName  = AXIS2_FALSE;
146
148
            _ncAttachVolumeType->is_valid_statusMessage  = AXIS2_FALSE;
 
149
            _ncAttachVolumeType->property_instanceId  = NULL;
 
150
                  _ncAttachVolumeType->is_valid_instanceId  = AXIS2_FALSE;
147
151
            _ncAttachVolumeType->property_volumeId  = NULL;
148
152
                  _ncAttachVolumeType->is_valid_volumeId  = AXIS2_FALSE;
149
 
            _ncAttachVolumeType->property_instanceId  = NULL;
150
 
                  _ncAttachVolumeType->is_valid_instanceId  = AXIS2_FALSE;
151
153
            _ncAttachVolumeType->property_remoteDev  = NULL;
152
154
                  _ncAttachVolumeType->is_valid_remoteDev  = AXIS2_FALSE;
153
155
            _ncAttachVolumeType->property_localDev  = NULL;
154
156
                  _ncAttachVolumeType->is_valid_localDev  = AXIS2_FALSE;
155
 
 
 
157
            
156
158
 
157
159
            return _ncAttachVolumeType;
158
160
        }
162
164
                adb_ncAttachVolumeType_t* _ncAttachVolumeType,
163
165
                const axutil_env_t *env)
164
166
        {
165
 
 
 
167
            
166
168
 
167
169
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
168
170
            AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
170
172
            adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env);
171
173
            adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env);
172
174
            adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env);
 
175
            adb_ncAttachVolumeType_reset_nodeName(_ncAttachVolumeType, env);
173
176
            adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env);
 
177
            adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
174
178
            adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env);
175
 
            adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
176
179
            adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env);
177
180
            adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env);
178
 
 
 
181
            
179
182
 
180
183
            if(_ncAttachVolumeType)
181
184
            {
186
189
        }
187
190
 
188
191
 
189
 
 
 
192
        
190
193
 
191
194
        axis2_status_t AXIS2_CALL
192
195
        adb_ncAttachVolumeType_deserialize(
197
200
                axis2_bool_t dont_care_minoccurs)
198
201
        {
199
202
          axiom_node_t *parent = *dp_parent;
200
 
 
 
203
          
201
204
          axis2_status_t status = AXIS2_SUCCESS;
202
 
 
 
205
           
203
206
             axis2_char_t* text_value = NULL;
204
207
             axutil_qname_t *qname = NULL;
205
 
 
206
 
            axutil_qname_t *element_qname = NULL;
207
 
 
 
208
          
 
209
            axutil_qname_t *element_qname = NULL; 
 
210
            
208
211
               axiom_node_t *first_node = NULL;
209
212
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
210
213
               axiom_node_t *current_node = NULL;
211
214
               axiom_element_t *current_element = NULL;
212
 
 
 
215
            
213
216
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
214
217
            AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
215
218
 
216
 
 
217
 
 
 
219
            
 
220
              
218
221
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
219
222
              {
220
223
                  parent = axiom_node_get_next_sibling(parent, env);
222
225
              if (NULL == parent)
223
226
              {
224
227
                /* This should be checked before everything */
225
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
 
228
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
226
229
                            "Failed in building adb object for ncAttachVolumeType : "
227
230
                            "NULL elemenet can not be passed to deserialize");
228
231
                return AXIS2_FAILURE;
229
232
              }
230
 
 
231
 
 
 
233
              
 
234
                      
232
235
                      first_node = axiom_node_get_first_child(parent, env);
233
 
 
234
 
 
235
 
 
236
 
 
 
236
                      
 
237
                    
 
238
 
 
239
                     
237
240
                     /*
238
241
                      * building correlationId element
239
242
                      */
240
 
 
241
 
 
242
 
 
 
243
                     
 
244
                     
 
245
                     
243
246
                                   current_node = first_node;
244
247
                                   is_early_node_valid = AXIS2_FALSE;
245
 
 
246
 
 
 
248
                                   
 
249
                                   
247
250
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
248
251
                                    {
249
252
                                        current_node = axiom_node_get_next_sibling(current_node, env);
253
256
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
254
257
                                        qname = axiom_element_get_qname(current_element, env, current_node);
255
258
                                    }
256
 
 
 
259
                                   
257
260
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
258
 
 
259
 
 
260
 
                           if (
 
261
                                 
 
262
 
 
263
                           if ( 
261
264
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
262
265
                           {
263
266
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
264
267
                              {
265
268
                                is_early_node_valid = AXIS2_TRUE;
266
269
                              }
267
 
 
268
 
 
 
270
                              
 
271
                                 
269
272
                                      text_value = axiom_element_get_text(current_element, env, current_node);
270
273
                                      if(text_value != NULL)
271
274
                                      {
272
275
                                            status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env,
273
276
                                                               text_value);
274
277
                                      }
275
 
 
276
 
                                      else
277
 
                                      {
278
 
                                            /*
279
 
                                             * axis2_qname_t *qname = NULL;
280
 
                                             * axiom_attribute_t *the_attri = NULL;
281
 
                                             *
282
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
283
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
284
 
                                             */
285
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
286
 
 
287
 
                                            axiom_attribute_t *the_attri = NULL;
288
 
                                            axis2_char_t *attrib_text = NULL;
289
 
                                            axutil_hash_t *attribute_hash = NULL;
290
 
 
291
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
292
 
 
293
 
                                            attrib_text = NULL;
294
 
                                            if(attribute_hash)
295
 
                                            {
296
 
                                                 axutil_hash_index_t *hi;
297
 
                                                 void *val;
298
 
                                                 const void *key;
299
 
 
300
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
301
 
                                                 {
302
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
303
 
 
304
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
305
 
                                                     {
306
 
                                                         the_attri = (axiom_attribute_t*)val;
307
 
                                                         break;
308
 
                                                     }
309
 
                                                 }
310
 
                                            }
311
 
 
312
 
                                            if(the_attri)
313
 
                                            {
314
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
315
 
                                            }
316
 
                                            else
317
 
                                            {
318
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
319
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
320
 
                                            }
321
 
 
322
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
323
 
                                            {
324
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
325
 
                                                status = AXIS2_FAILURE;
326
 
                                            }
327
 
                                            else
328
 
                                            {
329
 
                                                /* after all, we found this is a empty string */
330
 
                                                status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env,
331
 
                                                                   "");
332
 
                                            }
333
 
                                      }
334
 
 
 
278
                                      
335
279
                                 if(AXIS2_FAILURE ==  status)
336
280
                                 {
337
281
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
342
286
                                     return AXIS2_FAILURE;
343
287
                                 }
344
288
                              }
345
 
 
 
289
                           
346
290
                  if(element_qname)
347
291
                  {
348
292
                     axutil_qname_free(element_qname, env);
349
293
                     element_qname = NULL;
350
294
                  }
351
 
 
352
 
 
353
 
 
 
295
                 
 
296
 
 
297
                     
354
298
                     /*
355
299
                      * building userId element
356
300
                      */
357
 
 
358
 
 
359
 
 
 
301
                     
 
302
                     
 
303
                     
360
304
                                    /*
361
305
                                     * because elements are ordered this works fine
362
306
                                     */
363
 
 
364
 
 
 
307
                                  
 
308
                                   
365
309
                                   if(current_node != NULL && is_early_node_valid)
366
310
                                   {
367
311
                                       current_node = axiom_node_get_next_sibling(current_node, env);
368
 
 
369
 
 
 
312
                                       
 
313
                                       
370
314
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
371
315
                                        {
372
316
                                            current_node = axiom_node_get_next_sibling(current_node, env);
376
320
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
377
321
                                            qname = axiom_element_get_qname(current_element, env, current_node);
378
322
                                        }
379
 
 
 
323
                                       
380
324
                                   }
381
325
                                   is_early_node_valid = AXIS2_FALSE;
382
 
 
 
326
                                 
383
327
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
384
 
 
385
 
 
386
 
                           if (
 
328
                                 
 
329
 
 
330
                           if ( 
387
331
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
388
332
                           {
389
333
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
390
334
                              {
391
335
                                is_early_node_valid = AXIS2_TRUE;
392
336
                              }
393
 
 
394
 
 
 
337
                              
 
338
                                 
395
339
                                      text_value = axiom_element_get_text(current_element, env, current_node);
396
340
                                      if(text_value != NULL)
397
341
                                      {
398
342
                                            status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env,
399
343
                                                               text_value);
400
344
                                      }
401
 
 
 
345
                                      
402
346
                                      else
403
347
                                      {
404
348
                                            /*
405
349
                                             * axis2_qname_t *qname = NULL;
406
350
                                             * axiom_attribute_t *the_attri = NULL;
407
 
                                             *
 
351
                                             * 
408
352
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
409
353
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
410
354
                                             */
422
366
                                                 axutil_hash_index_t *hi;
423
367
                                                 void *val;
424
368
                                                 const void *key;
425
 
 
426
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
369
                                        
 
370
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
427
371
                                                 {
428
372
                                                     axutil_hash_this(hi, &key, NULL, &val);
429
 
 
 
373
                                                     
430
374
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
431
375
                                                     {
432
376
                                                         the_attri = (axiom_attribute_t*)val;
457
401
                                                                   "");
458
402
                                            }
459
403
                                      }
460
 
 
 
404
                                      
461
405
                                 if(AXIS2_FAILURE ==  status)
462
406
                                 {
463
407
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
468
412
                                     return AXIS2_FAILURE;
469
413
                                 }
470
414
                              }
471
 
 
 
415
                           
472
416
                  if(element_qname)
473
417
                  {
474
418
                     axutil_qname_free(element_qname, env);
475
419
                     element_qname = NULL;
476
420
                  }
477
 
 
478
 
 
479
 
 
 
421
                 
 
422
 
 
423
                     
480
424
                     /*
481
425
                      * building return element
482
426
                      */
483
 
 
484
 
 
485
 
 
 
427
                     
 
428
                     
 
429
                     
486
430
                                    /*
487
431
                                     * because elements are ordered this works fine
488
432
                                     */
489
 
 
490
 
 
 
433
                                  
 
434
                                   
491
435
                                   if(current_node != NULL && is_early_node_valid)
492
436
                                   {
493
437
                                       current_node = axiom_node_get_next_sibling(current_node, env);
494
 
 
495
 
 
 
438
                                       
 
439
                                       
496
440
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
497
441
                                        {
498
442
                                            current_node = axiom_node_get_next_sibling(current_node, env);
502
446
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
503
447
                                            qname = axiom_element_get_qname(current_element, env, current_node);
504
448
                                        }
505
 
 
 
449
                                       
506
450
                                   }
507
451
                                   is_early_node_valid = AXIS2_FALSE;
508
 
 
 
452
                                 
509
453
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
510
 
 
511
 
 
512
 
                           if (
 
454
                                 
 
455
 
 
456
                           if ( 
513
457
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
514
458
                           {
515
459
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
516
460
                              {
517
461
                                is_early_node_valid = AXIS2_TRUE;
518
462
                              }
519
 
 
520
 
 
 
463
                              
 
464
                                 
521
465
                                      text_value = axiom_element_get_text(current_element, env, current_node);
522
466
                                      if(text_value != NULL)
523
467
                                      {
532
476
                                                                      AXIS2_FALSE);
533
477
                                            }
534
478
                                      }
535
 
 
 
479
                                      
536
480
                                      else
537
481
                                      {
538
482
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
539
483
                                          status = AXIS2_FAILURE;
540
484
                                      }
541
 
 
 
485
                                      
542
486
                                 if(AXIS2_FAILURE ==  status)
543
487
                                 {
544
488
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
549
493
                                     return AXIS2_FAILURE;
550
494
                                 }
551
495
                              }
552
 
 
553
 
                  if(element_qname)
554
 
                  {
555
 
                     axutil_qname_free(element_qname, env);
556
 
                     element_qname = NULL;
557
 
                  }
558
 
 
559
 
 
560
 
 
 
496
                           
 
497
                  if(element_qname)
 
498
                  {
 
499
                     axutil_qname_free(element_qname, env);
 
500
                     element_qname = NULL;
 
501
                  }
 
502
                 
 
503
 
 
504
                     
 
505
                     /*
 
506
                      * building nodeName element
 
507
                      */
 
508
                     
 
509
                     
 
510
                     
 
511
                                    /*
 
512
                                     * because elements are ordered this works fine
 
513
                                     */
 
514
                                  
 
515
                                   
 
516
                                   if(current_node != NULL && is_early_node_valid)
 
517
                                   {
 
518
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
519
                                       
 
520
                                       
 
521
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
522
                                        {
 
523
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
524
                                        }
 
525
                                        if(current_node != NULL)
 
526
                                        {
 
527
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
528
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
529
                                        }
 
530
                                       
 
531
                                   }
 
532
                                   is_early_node_valid = AXIS2_FALSE;
 
533
                                 
 
534
                                 element_qname = axutil_qname_create(env, "nodeName", "http://eucalyptus.ucsb.edu/", NULL);
 
535
                                 
 
536
 
 
537
                           if ( 
 
538
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
539
                           {
 
540
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
541
                              {
 
542
                                is_early_node_valid = AXIS2_TRUE;
 
543
                              }
 
544
                              
 
545
                                 
 
546
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
547
                                      if(text_value != NULL)
 
548
                                      {
 
549
                                            status = adb_ncAttachVolumeType_set_nodeName(_ncAttachVolumeType, env,
 
550
                                                               text_value);
 
551
                                      }
 
552
                                      
 
553
                                 if(AXIS2_FAILURE ==  status)
 
554
                                 {
 
555
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nodeName ");
 
556
                                     if(element_qname)
 
557
                                     {
 
558
                                         axutil_qname_free(element_qname, env);
 
559
                                     }
 
560
                                     return AXIS2_FAILURE;
 
561
                                 }
 
562
                              }
 
563
                           
 
564
                  if(element_qname)
 
565
                  {
 
566
                     axutil_qname_free(element_qname, env);
 
567
                     element_qname = NULL;
 
568
                  }
 
569
                 
 
570
 
 
571
                     
561
572
                     /*
562
573
                      * building statusMessage element
563
574
                      */
564
 
 
565
 
 
566
 
 
 
575
                     
 
576
                     
 
577
                     
567
578
                                    /*
568
579
                                     * because elements are ordered this works fine
569
580
                                     */
570
 
 
571
 
 
 
581
                                  
 
582
                                   
572
583
                                   if(current_node != NULL && is_early_node_valid)
573
584
                                   {
574
585
                                       current_node = axiom_node_get_next_sibling(current_node, env);
575
 
 
576
 
 
 
586
                                       
 
587
                                       
577
588
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
578
589
                                        {
579
590
                                            current_node = axiom_node_get_next_sibling(current_node, env);
583
594
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
584
595
                                            qname = axiom_element_get_qname(current_element, env, current_node);
585
596
                                        }
586
 
 
 
597
                                       
587
598
                                   }
588
599
                                   is_early_node_valid = AXIS2_FALSE;
589
 
 
 
600
                                 
590
601
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
591
 
 
592
 
 
593
 
                           if (
 
602
                                 
 
603
 
 
604
                           if ( 
594
605
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
595
606
                           {
596
607
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
597
608
                              {
598
609
                                is_early_node_valid = AXIS2_TRUE;
599
610
                              }
600
 
 
601
 
 
 
611
                              
 
612
                                 
602
613
                                      text_value = axiom_element_get_text(current_element, env, current_node);
603
614
                                      if(text_value != NULL)
604
615
                                      {
605
616
                                            status = adb_ncAttachVolumeType_set_statusMessage(_ncAttachVolumeType, env,
606
617
                                                                   atoi(text_value));
607
618
                                      }
608
 
 
 
619
                                      
609
620
                                 if(AXIS2_FAILURE ==  status)
610
621
                                 {
611
622
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
616
627
                                     return AXIS2_FAILURE;
617
628
                                 }
618
629
                              }
619
 
 
620
 
                  if(element_qname)
621
 
                  {
622
 
                     axutil_qname_free(element_qname, env);
623
 
                     element_qname = NULL;
624
 
                  }
625
 
 
626
 
 
627
 
 
 
630
                           
 
631
                  if(element_qname)
 
632
                  {
 
633
                     axutil_qname_free(element_qname, env);
 
634
                     element_qname = NULL;
 
635
                  }
 
636
                 
 
637
 
 
638
                     
 
639
                     /*
 
640
                      * building instanceId element
 
641
                      */
 
642
                     
 
643
                     
 
644
                     
 
645
                                    /*
 
646
                                     * because elements are ordered this works fine
 
647
                                     */
 
648
                                  
 
649
                                   
 
650
                                   if(current_node != NULL && is_early_node_valid)
 
651
                                   {
 
652
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
653
                                       
 
654
                                       
 
655
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
656
                                        {
 
657
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
658
                                        }
 
659
                                        if(current_node != NULL)
 
660
                                        {
 
661
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
662
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
663
                                        }
 
664
                                       
 
665
                                   }
 
666
                                   is_early_node_valid = AXIS2_FALSE;
 
667
                                 
 
668
                                 element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
 
669
                                 
 
670
 
 
671
                           if ( 
 
672
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
673
                           {
 
674
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
675
                              {
 
676
                                is_early_node_valid = AXIS2_TRUE;
 
677
                              }
 
678
                              
 
679
                                 
 
680
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
681
                                      if(text_value != NULL)
 
682
                                      {
 
683
                                            status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env,
 
684
                                                               text_value);
 
685
                                      }
 
686
                                      
 
687
                                      else
 
688
                                      {
 
689
                                            /*
 
690
                                             * axis2_qname_t *qname = NULL;
 
691
                                             * axiom_attribute_t *the_attri = NULL;
 
692
                                             * 
 
693
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
694
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
695
                                             */
 
696
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
697
 
 
698
                                            axiom_attribute_t *the_attri = NULL;
 
699
                                            axis2_char_t *attrib_text = NULL;
 
700
                                            axutil_hash_t *attribute_hash = NULL;
 
701
 
 
702
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
703
 
 
704
                                            attrib_text = NULL;
 
705
                                            if(attribute_hash)
 
706
                                            {
 
707
                                                 axutil_hash_index_t *hi;
 
708
                                                 void *val;
 
709
                                                 const void *key;
 
710
                                        
 
711
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
712
                                                 {
 
713
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
714
                                                     
 
715
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
716
                                                     {
 
717
                                                         the_attri = (axiom_attribute_t*)val;
 
718
                                                         break;
 
719
                                                     }
 
720
                                                 }
 
721
                                            }
 
722
 
 
723
                                            if(the_attri)
 
724
                                            {
 
725
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
726
                                            }
 
727
                                            else
 
728
                                            {
 
729
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
730
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
731
                                            }
 
732
 
 
733
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
734
                                            {
 
735
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
 
736
                                                status = AXIS2_FAILURE;
 
737
                                            }
 
738
                                            else
 
739
                                            {
 
740
                                                /* after all, we found this is a empty string */
 
741
                                                status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env,
 
742
                                                                   "");
 
743
                                            }
 
744
                                      }
 
745
                                      
 
746
                                 if(AXIS2_FAILURE ==  status)
 
747
                                 {
 
748
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
 
749
                                     if(element_qname)
 
750
                                     {
 
751
                                         axutil_qname_free(element_qname, env);
 
752
                                     }
 
753
                                     return AXIS2_FAILURE;
 
754
                                 }
 
755
                              }
 
756
                           
 
757
                  if(element_qname)
 
758
                  {
 
759
                     axutil_qname_free(element_qname, env);
 
760
                     element_qname = NULL;
 
761
                  }
 
762
                 
 
763
 
 
764
                     
628
765
                     /*
629
766
                      * building volumeId element
630
767
                      */
631
 
 
632
 
 
633
 
 
 
768
                     
 
769
                     
 
770
                     
634
771
                                    /*
635
772
                                     * because elements are ordered this works fine
636
773
                                     */
637
 
 
638
 
 
 
774
                                  
 
775
                                   
639
776
                                   if(current_node != NULL && is_early_node_valid)
640
777
                                   {
641
778
                                       current_node = axiom_node_get_next_sibling(current_node, env);
642
 
 
643
 
 
 
779
                                       
 
780
                                       
644
781
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
645
782
                                        {
646
783
                                            current_node = axiom_node_get_next_sibling(current_node, env);
650
787
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
651
788
                                            qname = axiom_element_get_qname(current_element, env, current_node);
652
789
                                        }
653
 
 
 
790
                                       
654
791
                                   }
655
792
                                   is_early_node_valid = AXIS2_FALSE;
656
 
 
 
793
                                 
657
794
                                 element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL);
658
 
 
659
 
 
660
 
                           if (
 
795
                                 
 
796
 
 
797
                           if ( 
661
798
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
662
799
                           {
663
800
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
664
801
                              {
665
802
                                is_early_node_valid = AXIS2_TRUE;
666
803
                              }
667
 
 
668
 
 
 
804
                              
 
805
                                 
669
806
                                      text_value = axiom_element_get_text(current_element, env, current_node);
670
807
                                      if(text_value != NULL)
671
808
                                      {
672
809
                                            status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env,
673
810
                                                               text_value);
674
811
                                      }
675
 
 
 
812
                                      
676
813
                                      else
677
814
                                      {
678
815
                                            /*
679
816
                                             * axis2_qname_t *qname = NULL;
680
817
                                             * axiom_attribute_t *the_attri = NULL;
681
 
                                             *
 
818
                                             * 
682
819
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
683
820
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
684
821
                                             */
696
833
                                                 axutil_hash_index_t *hi;
697
834
                                                 void *val;
698
835
                                                 const void *key;
699
 
 
700
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
836
                                        
 
837
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
701
838
                                                 {
702
839
                                                     axutil_hash_this(hi, &key, NULL, &val);
703
 
 
 
840
                                                     
704
841
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
705
842
                                                     {
706
843
                                                         the_attri = (axiom_attribute_t*)val;
731
868
                                                                   "");
732
869
                                            }
733
870
                                      }
734
 
 
 
871
                                      
735
872
                                 if(AXIS2_FAILURE ==  status)
736
873
                                 {
737
874
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId ");
742
879
                                     return AXIS2_FAILURE;
743
880
                                 }
744
881
                              }
745
 
 
746
 
                  if(element_qname)
747
 
                  {
748
 
                     axutil_qname_free(element_qname, env);
749
 
                     element_qname = NULL;
750
 
                  }
751
 
 
752
 
 
753
 
 
754
 
                     /*
755
 
                      * building instanceId element
756
 
                      */
757
 
 
758
 
 
759
 
 
760
 
                                    /*
761
 
                                     * because elements are ordered this works fine
762
 
                                     */
763
 
 
764
 
 
765
 
                                   if(current_node != NULL && is_early_node_valid)
766
 
                                   {
767
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
768
 
 
769
 
 
770
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
771
 
                                        {
772
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
773
 
                                        }
774
 
                                        if(current_node != NULL)
775
 
                                        {
776
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
777
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
778
 
                                        }
779
 
 
780
 
                                   }
781
 
                                   is_early_node_valid = AXIS2_FALSE;
782
 
 
783
 
                                 element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
784
 
 
785
 
 
786
 
                           if (
787
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
788
 
                           {
789
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
790
 
                              {
791
 
                                is_early_node_valid = AXIS2_TRUE;
792
 
                              }
793
 
 
794
 
 
795
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
796
 
                                      if(text_value != NULL)
797
 
                                      {
798
 
                                            status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env,
799
 
                                                               text_value);
800
 
                                      }
801
 
 
802
 
                                      else
803
 
                                      {
804
 
                                            /*
805
 
                                             * axis2_qname_t *qname = NULL;
806
 
                                             * axiom_attribute_t *the_attri = NULL;
807
 
                                             *
808
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
809
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
810
 
                                             */
811
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
812
 
 
813
 
                                            axiom_attribute_t *the_attri = NULL;
814
 
                                            axis2_char_t *attrib_text = NULL;
815
 
                                            axutil_hash_t *attribute_hash = NULL;
816
 
 
817
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
818
 
 
819
 
                                            attrib_text = NULL;
820
 
                                            if(attribute_hash)
821
 
                                            {
822
 
                                                 axutil_hash_index_t *hi;
823
 
                                                 void *val;
824
 
                                                 const void *key;
825
 
 
826
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
827
 
                                                 {
828
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
829
 
 
830
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
831
 
                                                     {
832
 
                                                         the_attri = (axiom_attribute_t*)val;
833
 
                                                         break;
834
 
                                                     }
835
 
                                                 }
836
 
                                            }
837
 
 
838
 
                                            if(the_attri)
839
 
                                            {
840
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
841
 
                                            }
842
 
                                            else
843
 
                                            {
844
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
845
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
846
 
                                            }
847
 
 
848
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
849
 
                                            {
850
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
851
 
                                                status = AXIS2_FAILURE;
852
 
                                            }
853
 
                                            else
854
 
                                            {
855
 
                                                /* after all, we found this is a empty string */
856
 
                                                status = adb_ncAttachVolumeType_set_instanceId(_ncAttachVolumeType, env,
857
 
                                                                   "");
858
 
                                            }
859
 
                                      }
860
 
 
861
 
                                 if(AXIS2_FAILURE ==  status)
862
 
                                 {
863
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
864
 
                                     if(element_qname)
865
 
                                     {
866
 
                                         axutil_qname_free(element_qname, env);
867
 
                                     }
868
 
                                     return AXIS2_FAILURE;
869
 
                                 }
870
 
                              }
871
 
 
872
 
                  if(element_qname)
873
 
                  {
874
 
                     axutil_qname_free(element_qname, env);
875
 
                     element_qname = NULL;
876
 
                  }
877
 
 
878
 
 
879
 
 
 
882
                           
 
883
                  if(element_qname)
 
884
                  {
 
885
                     axutil_qname_free(element_qname, env);
 
886
                     element_qname = NULL;
 
887
                  }
 
888
                 
 
889
 
 
890
                     
880
891
                     /*
881
892
                      * building remoteDev element
882
893
                      */
883
 
 
884
 
 
885
 
 
 
894
                     
 
895
                     
 
896
                     
886
897
                                    /*
887
898
                                     * because elements are ordered this works fine
888
899
                                     */
889
 
 
890
 
 
 
900
                                  
 
901
                                   
891
902
                                   if(current_node != NULL && is_early_node_valid)
892
903
                                   {
893
904
                                       current_node = axiom_node_get_next_sibling(current_node, env);
894
 
 
895
 
 
 
905
                                       
 
906
                                       
896
907
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
897
908
                                        {
898
909
                                            current_node = axiom_node_get_next_sibling(current_node, env);
902
913
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
903
914
                                            qname = axiom_element_get_qname(current_element, env, current_node);
904
915
                                        }
905
 
 
 
916
                                       
906
917
                                   }
907
918
                                   is_early_node_valid = AXIS2_FALSE;
908
 
 
 
919
                                 
909
920
                                 element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL);
910
 
 
911
 
 
912
 
                           if (
 
921
                                 
 
922
 
 
923
                           if ( 
913
924
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
914
925
                           {
915
926
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
916
927
                              {
917
928
                                is_early_node_valid = AXIS2_TRUE;
918
929
                              }
919
 
 
920
 
 
 
930
                              
 
931
                                 
921
932
                                      text_value = axiom_element_get_text(current_element, env, current_node);
922
933
                                      if(text_value != NULL)
923
934
                                      {
924
935
                                            status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env,
925
936
                                                               text_value);
926
937
                                      }
927
 
 
 
938
                                      
928
939
                                      else
929
940
                                      {
930
941
                                            /*
931
942
                                             * axis2_qname_t *qname = NULL;
932
943
                                             * axiom_attribute_t *the_attri = NULL;
933
 
                                             *
 
944
                                             * 
934
945
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
935
946
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
936
947
                                             */
948
959
                                                 axutil_hash_index_t *hi;
949
960
                                                 void *val;
950
961
                                                 const void *key;
951
 
 
952
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
962
                                        
 
963
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
953
964
                                                 {
954
965
                                                     axutil_hash_this(hi, &key, NULL, &val);
955
 
 
 
966
                                                     
956
967
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
957
968
                                                     {
958
969
                                                         the_attri = (axiom_attribute_t*)val;
983
994
                                                                   "");
984
995
                                            }
985
996
                                      }
986
 
 
 
997
                                      
987
998
                                 if(AXIS2_FAILURE ==  status)
988
999
                                 {
989
1000
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev ");
994
1005
                                     return AXIS2_FAILURE;
995
1006
                                 }
996
1007
                              }
997
 
 
 
1008
                           
998
1009
                  if(element_qname)
999
1010
                  {
1000
1011
                     axutil_qname_free(element_qname, env);
1001
1012
                     element_qname = NULL;
1002
1013
                  }
1003
 
 
1004
 
 
1005
 
 
 
1014
                 
 
1015
 
 
1016
                     
1006
1017
                     /*
1007
1018
                      * building localDev element
1008
1019
                      */
1009
 
 
1010
 
 
1011
 
 
 
1020
                     
 
1021
                     
 
1022
                     
1012
1023
                                    /*
1013
1024
                                     * because elements are ordered this works fine
1014
1025
                                     */
1015
 
 
1016
 
 
 
1026
                                  
 
1027
                                   
1017
1028
                                   if(current_node != NULL && is_early_node_valid)
1018
1029
                                   {
1019
1030
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1020
 
 
1021
 
 
 
1031
                                       
 
1032
                                       
1022
1033
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1023
1034
                                        {
1024
1035
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1028
1039
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1029
1040
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1030
1041
                                        }
1031
 
 
 
1042
                                       
1032
1043
                                   }
1033
1044
                                   is_early_node_valid = AXIS2_FALSE;
1034
 
 
 
1045
                                 
1035
1046
                                 element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL);
1036
 
 
1037
 
 
1038
 
                           if (
 
1047
                                 
 
1048
 
 
1049
                           if ( 
1039
1050
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1040
1051
                           {
1041
1052
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1042
1053
                              {
1043
1054
                                is_early_node_valid = AXIS2_TRUE;
1044
1055
                              }
1045
 
 
1046
 
 
 
1056
                              
 
1057
                                 
1047
1058
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1048
1059
                                      if(text_value != NULL)
1049
1060
                                      {
1050
1061
                                            status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env,
1051
1062
                                                               text_value);
1052
1063
                                      }
1053
 
 
 
1064
                                      
1054
1065
                                      else
1055
1066
                                      {
1056
1067
                                            /*
1057
1068
                                             * axis2_qname_t *qname = NULL;
1058
1069
                                             * axiom_attribute_t *the_attri = NULL;
1059
 
                                             *
 
1070
                                             * 
1060
1071
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1061
1072
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1062
1073
                                             */
1074
1085
                                                 axutil_hash_index_t *hi;
1075
1086
                                                 void *val;
1076
1087
                                                 const void *key;
1077
 
 
1078
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1088
                                        
 
1089
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1079
1090
                                                 {
1080
1091
                                                     axutil_hash_this(hi, &key, NULL, &val);
1081
 
 
 
1092
                                                     
1082
1093
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1083
1094
                                                     {
1084
1095
                                                         the_attri = (axiom_attribute_t*)val;
1109
1120
                                                                   "");
1110
1121
                                            }
1111
1122
                                      }
1112
 
 
 
1123
                                      
1113
1124
                                 if(AXIS2_FAILURE ==  status)
1114
1125
                                 {
1115
1126
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev ");
1120
1131
                                     return AXIS2_FAILURE;
1121
1132
                                 }
1122
1133
                              }
1123
 
 
 
1134
                           
1124
1135
                  if(element_qname)
1125
1136
                  {
1126
1137
                     axutil_qname_free(element_qname, env);
1127
1138
                     element_qname = NULL;
1128
1139
                  }
1129
 
 
 
1140
                 
1130
1141
          return status;
1131
1142
       }
1132
1143
 
1133
1144
          axis2_bool_t AXIS2_CALL
1134
1145
          adb_ncAttachVolumeType_is_particle()
1135
1146
          {
1136
 
 
 
1147
            
1137
1148
                 return AXIS2_FALSE;
1138
 
 
 
1149
              
1139
1150
          }
1140
1151
 
1141
1152
 
1145
1156
                    const axutil_env_t *env, axiom_element_t *parent_element,
1146
1157
                    axutil_hash_t *namespaces, int *next_ns_index)
1147
1158
          {
1148
 
 
 
1159
            
1149
1160
                  /* Here this is an empty function, Nothing to declare */
1150
 
 
 
1161
                 
1151
1162
          }
1152
1163
 
1153
 
 
1154
 
 
 
1164
        
 
1165
        
1155
1166
        axiom_node_t* AXIS2_CALL
1156
1167
        adb_ncAttachVolumeType_serialize(
1157
1168
                adb_ncAttachVolumeType_t* _ncAttachVolumeType,
1158
1169
                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)
1159
1170
        {
1160
 
 
1161
 
 
 
1171
            
 
1172
            
1162
1173
             axis2_char_t *string_to_stream;
1163
 
 
1164
 
 
 
1174
            
 
1175
         
1165
1176
         axiom_node_t *current_node = NULL;
1166
1177
         int tag_closed = 0;
1167
1178
 
1168
 
 
1169
 
 
 
1179
         
 
1180
         
1170
1181
                axiom_namespace_t *ns1 = NULL;
1171
1182
 
1172
1183
                axis2_char_t *qname_uri = NULL;
1173
1184
                axis2_char_t *qname_prefix = NULL;
1174
1185
                axis2_char_t *p_prefix = NULL;
1175
1186
                axis2_bool_t ns_already_defined;
1176
 
 
 
1187
            
1177
1188
                    axis2_char_t *text_value_1;
1178
1189
                    axis2_char_t *text_value_1_temp;
1179
 
 
 
1190
                    
1180
1191
                    axis2_char_t *text_value_2;
1181
1192
                    axis2_char_t *text_value_2_temp;
1182
 
 
 
1193
                    
1183
1194
                    axis2_char_t text_value_3[64];
1184
 
 
1185
 
                    axis2_char_t text_value_4[64];
1186
 
 
1187
 
                    axis2_char_t *text_value_5;
1188
 
                    axis2_char_t *text_value_5_temp;
1189
 
 
 
1195
                    
 
1196
                    axis2_char_t *text_value_4;
 
1197
                    axis2_char_t *text_value_4_temp;
 
1198
                    
 
1199
                    axis2_char_t text_value_5[64];
 
1200
                    
1190
1201
                    axis2_char_t *text_value_6;
1191
1202
                    axis2_char_t *text_value_6_temp;
1192
 
 
 
1203
                    
1193
1204
                    axis2_char_t *text_value_7;
1194
1205
                    axis2_char_t *text_value_7_temp;
1195
 
 
 
1206
                    
1196
1207
                    axis2_char_t *text_value_8;
1197
1208
                    axis2_char_t *text_value_8_temp;
1198
 
 
 
1209
                    
 
1210
                    axis2_char_t *text_value_9;
 
1211
                    axis2_char_t *text_value_9_temp;
 
1212
                    
1199
1213
               axis2_char_t *start_input_str = NULL;
1200
1214
               axis2_char_t *end_input_str = NULL;
1201
1215
               unsigned int start_input_str_len = 0;
1202
1216
               unsigned int end_input_str_len = 0;
1203
 
 
1204
 
 
 
1217
            
 
1218
            
1205
1219
               axiom_data_source_t *data_source = NULL;
1206
1220
               axutil_stream_t *stream = NULL;
1207
1221
 
1208
 
 
 
1222
            
1209
1223
 
1210
1224
            AXIS2_ENV_CHECK(env, NULL);
1211
1225
            AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
1212
 
 
1213
 
 
 
1226
            
 
1227
            
1214
1228
                    current_node = parent;
1215
1229
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
1216
1230
                    if (!data_source)
1218
1232
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
1219
1233
                    if (!stream)
1220
1234
                        return NULL;
1221
 
 
 
1235
                  
1222
1236
            if(!parent_tag_closed)
1223
1237
            {
1224
 
 
1225
 
              string_to_stream = ">";
 
1238
            
 
1239
              string_to_stream = ">"; 
1226
1240
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
1227
1241
              tag_closed = 1;
1228
 
 
 
1242
            
1229
1243
            }
1230
 
 
 
1244
            
1231
1245
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1232
1246
                       {
1233
1247
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1234
1248
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1235
1249
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1236
 
 
 
1250
                           
1237
1251
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1238
1252
                                            "http://eucalyptus.ucsb.edu/",
1239
1253
                                            p_prefix));
1240
1254
                       }
1241
 
 
 
1255
                      
1242
1256
 
1243
1257
                   if (!_ncAttachVolumeType->is_valid_correlationId)
1244
1258
                   {
1245
 
 
 
1259
                      
1246
1260
                           /* no need to complain for minoccurs=0 element */
1247
 
 
1248
 
 
 
1261
                            
 
1262
                          
1249
1263
                   }
1250
1264
                   else
1251
1265
                   {
1252
1266
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1253
 
                                 (4 + axutil_strlen(p_prefix) +
1254
 
                                  axutil_strlen("correlationId")));
1255
 
 
 
1267
                                 (4 + axutil_strlen(p_prefix) + 
 
1268
                                  axutil_strlen("correlationId"))); 
 
1269
                                 
1256
1270
                                 /* axutil_strlen("<:>") + 1 = 4 */
1257
1271
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1258
1272
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
1259
1273
                                  /* axutil_strlen("</:>") + 1 = 5 */
1260
 
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
 
1274
                                  
 
1275
                     
 
1276
 
 
1277
                   
 
1278
                   
 
1279
                     
1266
1280
                     /*
1267
1281
                      * parsing correlationId element
1268
1282
                      */
1269
1283
 
1270
 
 
1271
 
 
 
1284
                    
 
1285
                    
1272
1286
                            sprintf(start_input_str, "<%s%scorrelationId>",
1273
1287
                                 p_prefix?p_prefix:"",
1274
1288
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1275
 
 
 
1289
                            
1276
1290
                        start_input_str_len = axutil_strlen(start_input_str);
1277
1291
                        sprintf(end_input_str, "</%s%scorrelationId>",
1278
1292
                                 p_prefix?p_prefix:"",
1279
1293
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1280
1294
                        end_input_str_len = axutil_strlen(end_input_str);
1281
 
 
 
1295
                    
1282
1296
                           text_value_1 = _ncAttachVolumeType->property_correlationId;
1283
 
 
 
1297
                           
1284
1298
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1285
 
 
1286
 
 
 
1299
                           
 
1300
                            
1287
1301
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
1288
1302
                           if (text_value_1_temp)
1289
1303
                           {
1294
1308
                           {
1295
1309
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
1296
1310
                           }
1297
 
 
 
1311
                           
1298
1312
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1299
 
 
1300
 
 
 
1313
                           
 
1314
                     
1301
1315
                     AXIS2_FREE(env->allocator,start_input_str);
1302
1316
                     AXIS2_FREE(env->allocator,end_input_str);
1303
 
                 }
1304
 
 
1305
 
 
 
1317
                 } 
 
1318
 
 
1319
                 
1306
1320
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1307
1321
                       {
1308
1322
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1309
1323
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1310
1324
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1311
 
 
 
1325
                           
1312
1326
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1313
1327
                                            "http://eucalyptus.ucsb.edu/",
1314
1328
                                            p_prefix));
1315
1329
                       }
1316
 
 
 
1330
                      
1317
1331
 
1318
1332
                   if (!_ncAttachVolumeType->is_valid_userId)
1319
1333
                   {
1320
 
 
 
1334
                      
1321
1335
                           /* no need to complain for minoccurs=0 element */
1322
 
 
1323
 
 
 
1336
                            
 
1337
                          
1324
1338
                   }
1325
1339
                   else
1326
1340
                   {
1327
1341
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1328
 
                                 (4 + axutil_strlen(p_prefix) +
1329
 
                                  axutil_strlen("userId")));
1330
 
 
 
1342
                                 (4 + axutil_strlen(p_prefix) + 
 
1343
                                  axutil_strlen("userId"))); 
 
1344
                                 
1331
1345
                                 /* axutil_strlen("<:>") + 1 = 4 */
1332
1346
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1333
1347
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
1334
1348
                                  /* axutil_strlen("</:>") + 1 = 5 */
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
 
1349
                                  
 
1350
                     
 
1351
 
 
1352
                   
 
1353
                   
 
1354
                     
1341
1355
                     /*
1342
1356
                      * parsing userId element
1343
1357
                      */
1344
1358
 
1345
 
 
1346
 
 
 
1359
                    
 
1360
                    
1347
1361
                            sprintf(start_input_str, "<%s%suserId>",
1348
1362
                                 p_prefix?p_prefix:"",
1349
1363
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1350
 
 
 
1364
                            
1351
1365
                        start_input_str_len = axutil_strlen(start_input_str);
1352
1366
                        sprintf(end_input_str, "</%s%suserId>",
1353
1367
                                 p_prefix?p_prefix:"",
1354
1368
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1355
1369
                        end_input_str_len = axutil_strlen(end_input_str);
1356
 
 
 
1370
                    
1357
1371
                           text_value_2 = _ncAttachVolumeType->property_userId;
1358
 
 
 
1372
                           
1359
1373
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1360
 
 
1361
 
 
 
1374
                           
 
1375
                            
1362
1376
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
1363
1377
                           if (text_value_2_temp)
1364
1378
                           {
1369
1383
                           {
1370
1384
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
1371
1385
                           }
1372
 
 
 
1386
                           
1373
1387
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1374
 
 
1375
 
 
 
1388
                           
 
1389
                     
1376
1390
                     AXIS2_FREE(env->allocator,start_input_str);
1377
1391
                     AXIS2_FREE(env->allocator,end_input_str);
1378
 
                 }
1379
 
 
1380
 
 
 
1392
                 } 
 
1393
 
 
1394
                 
1381
1395
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1382
1396
                       {
1383
1397
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1384
1398
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1385
1399
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1386
 
 
 
1400
                           
1387
1401
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1388
1402
                                            "http://eucalyptus.ucsb.edu/",
1389
1403
                                            p_prefix));
1390
1404
                       }
1391
 
 
 
1405
                      
1392
1406
 
1393
1407
                   if (!_ncAttachVolumeType->is_valid_return)
1394
1408
                   {
1395
 
 
 
1409
                      
1396
1410
                           /* no need to complain for minoccurs=0 element */
1397
 
 
1398
 
 
 
1411
                            
 
1412
                          
1399
1413
                   }
1400
1414
                   else
1401
1415
                   {
1402
1416
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1403
 
                                 (4 + axutil_strlen(p_prefix) +
1404
 
                                  axutil_strlen("return")));
1405
 
 
 
1417
                                 (4 + axutil_strlen(p_prefix) + 
 
1418
                                  axutil_strlen("return"))); 
 
1419
                                 
1406
1420
                                 /* axutil_strlen("<:>") + 1 = 4 */
1407
1421
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1408
1422
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
1409
1423
                                  /* axutil_strlen("</:>") + 1 = 5 */
1410
 
 
1411
 
 
1412
 
 
1413
 
 
1414
 
 
1415
 
 
 
1424
                                  
 
1425
                     
 
1426
 
 
1427
                   
 
1428
                   
 
1429
                     
1416
1430
                     /*
1417
1431
                      * parsing return element
1418
1432
                      */
1419
1433
 
1420
 
 
1421
 
 
 
1434
                    
 
1435
                    
1422
1436
                            sprintf(start_input_str, "<%s%sreturn>",
1423
1437
                                 p_prefix?p_prefix:"",
1424
1438
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1425
 
 
 
1439
                            
1426
1440
                        start_input_str_len = axutil_strlen(start_input_str);
1427
1441
                        sprintf(end_input_str, "</%s%sreturn>",
1428
1442
                                 p_prefix?p_prefix:"",
1429
1443
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1430
1444
                        end_input_str_len = axutil_strlen(end_input_str);
1431
 
 
 
1445
                    
1432
1446
                           strcpy(text_value_3, (_ncAttachVolumeType->property_return)?"true":"false");
1433
 
 
 
1447
                           
1434
1448
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1435
 
 
 
1449
                           
1436
1450
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1437
 
 
1438
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1439
 
 
1440
 
 
1441
 
                     AXIS2_FREE(env->allocator,start_input_str);
1442
 
                     AXIS2_FREE(env->allocator,end_input_str);
1443
 
                 }
1444
 
 
1445
 
 
1446
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1447
 
                       {
1448
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1449
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1450
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1451
 
 
1452
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1453
 
                                            "http://eucalyptus.ucsb.edu/",
1454
 
                                            p_prefix));
1455
 
                       }
1456
 
 
 
1451
                           
 
1452
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1453
                           
 
1454
                     
 
1455
                     AXIS2_FREE(env->allocator,start_input_str);
 
1456
                     AXIS2_FREE(env->allocator,end_input_str);
 
1457
                 } 
 
1458
 
 
1459
                 
 
1460
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1461
                       {
 
1462
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1463
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1464
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1465
                           
 
1466
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1467
                                            "http://eucalyptus.ucsb.edu/",
 
1468
                                            p_prefix));
 
1469
                       }
 
1470
                      
 
1471
 
 
1472
                   if (!_ncAttachVolumeType->is_valid_nodeName)
 
1473
                   {
 
1474
                      
 
1475
                           /* no need to complain for minoccurs=0 element */
 
1476
                            
 
1477
                          
 
1478
                   }
 
1479
                   else
 
1480
                   {
 
1481
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1482
                                 (4 + axutil_strlen(p_prefix) + 
 
1483
                                  axutil_strlen("nodeName"))); 
 
1484
                                 
 
1485
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1486
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1487
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("nodeName")));
 
1488
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1489
                                  
 
1490
                     
 
1491
 
 
1492
                   
 
1493
                   
 
1494
                     
 
1495
                     /*
 
1496
                      * parsing nodeName element
 
1497
                      */
 
1498
 
 
1499
                    
 
1500
                    
 
1501
                            sprintf(start_input_str, "<%s%snodeName>",
 
1502
                                 p_prefix?p_prefix:"",
 
1503
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1504
                            
 
1505
                        start_input_str_len = axutil_strlen(start_input_str);
 
1506
                        sprintf(end_input_str, "</%s%snodeName>",
 
1507
                                 p_prefix?p_prefix:"",
 
1508
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1509
                        end_input_str_len = axutil_strlen(end_input_str);
 
1510
                    
 
1511
                           text_value_4 = _ncAttachVolumeType->property_nodeName;
 
1512
                           
 
1513
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1514
                           
 
1515
                            
 
1516
                           text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
 
1517
                           if (text_value_4_temp)
 
1518
                           {
 
1519
                               axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
 
1520
                               AXIS2_FREE(env->allocator, text_value_4_temp);
 
1521
                           }
 
1522
                           else
 
1523
                           {
 
1524
                               axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
 
1525
                           }
 
1526
                           
 
1527
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1528
                           
 
1529
                     
 
1530
                     AXIS2_FREE(env->allocator,start_input_str);
 
1531
                     AXIS2_FREE(env->allocator,end_input_str);
 
1532
                 } 
 
1533
 
 
1534
                 
 
1535
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1536
                       {
 
1537
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1538
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1539
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1540
                           
 
1541
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1542
                                            "http://eucalyptus.ucsb.edu/",
 
1543
                                            p_prefix));
 
1544
                       }
 
1545
                      
1457
1546
 
1458
1547
                   if (!_ncAttachVolumeType->is_valid_statusMessage)
1459
1548
                   {
1460
 
 
 
1549
                      
1461
1550
                           /* no need to complain for minoccurs=0 element */
1462
 
 
1463
 
 
 
1551
                            
 
1552
                          
1464
1553
                   }
1465
1554
                   else
1466
1555
                   {
1467
1556
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1468
 
                                 (4 + axutil_strlen(p_prefix) +
1469
 
                                  axutil_strlen("statusMessage")));
1470
 
 
 
1557
                                 (4 + axutil_strlen(p_prefix) + 
 
1558
                                  axutil_strlen("statusMessage"))); 
 
1559
                                 
1471
1560
                                 /* axutil_strlen("<:>") + 1 = 4 */
1472
1561
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1473
1562
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
1474
1563
                                  /* axutil_strlen("</:>") + 1 = 5 */
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
 
1564
                                  
 
1565
                     
 
1566
 
 
1567
                   
 
1568
                   
 
1569
                     
1481
1570
                     /*
1482
1571
                      * parsing statusMessage element
1483
1572
                      */
1484
1573
 
1485
 
 
1486
 
 
 
1574
                    
 
1575
                    
1487
1576
                            sprintf(start_input_str, "<%s%sstatusMessage>",
1488
1577
                                 p_prefix?p_prefix:"",
1489
1578
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1490
 
 
 
1579
                            
1491
1580
                        start_input_str_len = axutil_strlen(start_input_str);
1492
1581
                        sprintf(end_input_str, "</%s%sstatusMessage>",
1493
1582
                                 p_prefix?p_prefix:"",
1494
1583
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1495
1584
                        end_input_str_len = axutil_strlen(end_input_str);
1496
 
 
1497
 
                               sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncAttachVolumeType->property_statusMessage);
1498
 
 
1499
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1500
 
 
1501
 
                           axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1502
 
 
1503
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1504
 
 
1505
 
 
1506
 
                     AXIS2_FREE(env->allocator,start_input_str);
1507
 
                     AXIS2_FREE(env->allocator,end_input_str);
1508
 
                 }
1509
 
 
1510
 
 
1511
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1512
 
                       {
1513
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1514
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1515
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1516
 
 
1517
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1518
 
                                            "http://eucalyptus.ucsb.edu/",
1519
 
                                            p_prefix));
1520
 
                       }
1521
 
 
1522
 
 
1523
 
                   if (!_ncAttachVolumeType->is_valid_volumeId)
1524
 
                   {
1525
 
 
1526
 
                           /* no need to complain for minoccurs=0 element */
1527
 
 
1528
 
 
1529
 
                   }
1530
 
                   else
1531
 
                   {
1532
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1533
 
                                 (4 + axutil_strlen(p_prefix) +
1534
 
                                  axutil_strlen("volumeId")));
1535
 
 
1536
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1537
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1538
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId")));
1539
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1540
 
 
1541
 
 
1542
 
 
1543
 
 
1544
 
 
1545
 
 
1546
 
                     /*
1547
 
                      * parsing volumeId element
1548
 
                      */
1549
 
 
1550
 
 
1551
 
 
1552
 
                            sprintf(start_input_str, "<%s%svolumeId>",
1553
 
                                 p_prefix?p_prefix:"",
1554
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1555
 
 
1556
 
                        start_input_str_len = axutil_strlen(start_input_str);
1557
 
                        sprintf(end_input_str, "</%s%svolumeId>",
1558
 
                                 p_prefix?p_prefix:"",
1559
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1560
 
                        end_input_str_len = axutil_strlen(end_input_str);
1561
 
 
1562
 
                           text_value_5 = _ncAttachVolumeType->property_volumeId;
1563
 
 
1564
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1565
 
 
1566
 
 
1567
 
                           text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
1568
 
                           if (text_value_5_temp)
1569
 
                           {
1570
 
                               axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
1571
 
                               AXIS2_FREE(env->allocator, text_value_5_temp);
1572
 
                           }
1573
 
                           else
1574
 
                           {
1575
 
                               axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1576
 
                           }
1577
 
 
1578
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1579
 
 
1580
 
 
1581
 
                     AXIS2_FREE(env->allocator,start_input_str);
1582
 
                     AXIS2_FREE(env->allocator,end_input_str);
1583
 
                 }
1584
 
 
1585
 
 
1586
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1587
 
                       {
1588
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1589
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1590
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1591
 
 
1592
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1593
 
                                            "http://eucalyptus.ucsb.edu/",
1594
 
                                            p_prefix));
1595
 
                       }
1596
 
 
 
1585
                    
 
1586
                               sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncAttachVolumeType->property_statusMessage);
 
1587
                             
 
1588
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1589
                           
 
1590
                           axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
 
1591
                           
 
1592
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1593
                           
 
1594
                     
 
1595
                     AXIS2_FREE(env->allocator,start_input_str);
 
1596
                     AXIS2_FREE(env->allocator,end_input_str);
 
1597
                 } 
 
1598
 
 
1599
                 
 
1600
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1601
                       {
 
1602
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1603
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1604
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1605
                           
 
1606
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1607
                                            "http://eucalyptus.ucsb.edu/",
 
1608
                                            p_prefix));
 
1609
                       }
 
1610
                      
1597
1611
 
1598
1612
                   if (!_ncAttachVolumeType->is_valid_instanceId)
1599
1613
                   {
1600
 
 
 
1614
                      
1601
1615
                           /* no need to complain for minoccurs=0 element */
1602
 
 
1603
 
 
 
1616
                            
 
1617
                          
1604
1618
                   }
1605
1619
                   else
1606
1620
                   {
1607
1621
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1608
 
                                 (4 + axutil_strlen(p_prefix) +
1609
 
                                  axutil_strlen("instanceId")));
1610
 
 
 
1622
                                 (4 + axutil_strlen(p_prefix) + 
 
1623
                                  axutil_strlen("instanceId"))); 
 
1624
                                 
1611
1625
                                 /* axutil_strlen("<:>") + 1 = 4 */
1612
1626
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1613
1627
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
1614
1628
                                  /* axutil_strlen("</:>") + 1 = 5 */
1615
 
 
1616
 
 
1617
 
 
1618
 
 
1619
 
 
1620
 
 
 
1629
                                  
 
1630
                     
 
1631
 
 
1632
                   
 
1633
                   
 
1634
                     
1621
1635
                     /*
1622
1636
                      * parsing instanceId element
1623
1637
                      */
1624
1638
 
1625
 
 
1626
 
 
 
1639
                    
 
1640
                    
1627
1641
                            sprintf(start_input_str, "<%s%sinstanceId>",
1628
1642
                                 p_prefix?p_prefix:"",
1629
1643
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1630
 
 
 
1644
                            
1631
1645
                        start_input_str_len = axutil_strlen(start_input_str);
1632
1646
                        sprintf(end_input_str, "</%s%sinstanceId>",
1633
1647
                                 p_prefix?p_prefix:"",
1634
1648
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1635
1649
                        end_input_str_len = axutil_strlen(end_input_str);
1636
 
 
 
1650
                    
1637
1651
                           text_value_6 = _ncAttachVolumeType->property_instanceId;
1638
 
 
 
1652
                           
1639
1653
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1640
 
 
1641
 
 
 
1654
                           
 
1655
                            
1642
1656
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
1643
1657
                           if (text_value_6_temp)
1644
1658
                           {
1649
1663
                           {
1650
1664
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
1651
1665
                           }
1652
 
 
1653
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1654
 
 
1655
 
 
1656
 
                     AXIS2_FREE(env->allocator,start_input_str);
1657
 
                     AXIS2_FREE(env->allocator,end_input_str);
1658
 
                 }
1659
 
 
1660
 
 
1661
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1662
 
                       {
1663
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1664
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1665
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1666
 
 
1667
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1668
 
                                            "http://eucalyptus.ucsb.edu/",
1669
 
                                            p_prefix));
1670
 
                       }
1671
 
 
 
1666
                           
 
1667
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1668
                           
 
1669
                     
 
1670
                     AXIS2_FREE(env->allocator,start_input_str);
 
1671
                     AXIS2_FREE(env->allocator,end_input_str);
 
1672
                 } 
 
1673
 
 
1674
                 
 
1675
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1676
                       {
 
1677
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1678
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1679
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1680
                           
 
1681
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1682
                                            "http://eucalyptus.ucsb.edu/",
 
1683
                                            p_prefix));
 
1684
                       }
 
1685
                      
 
1686
 
 
1687
                   if (!_ncAttachVolumeType->is_valid_volumeId)
 
1688
                   {
 
1689
                      
 
1690
                           /* no need to complain for minoccurs=0 element */
 
1691
                            
 
1692
                          
 
1693
                   }
 
1694
                   else
 
1695
                   {
 
1696
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1697
                                 (4 + axutil_strlen(p_prefix) + 
 
1698
                                  axutil_strlen("volumeId"))); 
 
1699
                                 
 
1700
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1701
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1702
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId")));
 
1703
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1704
                                  
 
1705
                     
 
1706
 
 
1707
                   
 
1708
                   
 
1709
                     
 
1710
                     /*
 
1711
                      * parsing volumeId element
 
1712
                      */
 
1713
 
 
1714
                    
 
1715
                    
 
1716
                            sprintf(start_input_str, "<%s%svolumeId>",
 
1717
                                 p_prefix?p_prefix:"",
 
1718
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1719
                            
 
1720
                        start_input_str_len = axutil_strlen(start_input_str);
 
1721
                        sprintf(end_input_str, "</%s%svolumeId>",
 
1722
                                 p_prefix?p_prefix:"",
 
1723
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1724
                        end_input_str_len = axutil_strlen(end_input_str);
 
1725
                    
 
1726
                           text_value_7 = _ncAttachVolumeType->property_volumeId;
 
1727
                           
 
1728
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1729
                           
 
1730
                            
 
1731
                           text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
 
1732
                           if (text_value_7_temp)
 
1733
                           {
 
1734
                               axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
 
1735
                               AXIS2_FREE(env->allocator, text_value_7_temp);
 
1736
                           }
 
1737
                           else
 
1738
                           {
 
1739
                               axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
 
1740
                           }
 
1741
                           
 
1742
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1743
                           
 
1744
                     
 
1745
                     AXIS2_FREE(env->allocator,start_input_str);
 
1746
                     AXIS2_FREE(env->allocator,end_input_str);
 
1747
                 } 
 
1748
 
 
1749
                 
 
1750
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1751
                       {
 
1752
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1753
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1754
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1755
                           
 
1756
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1757
                                            "http://eucalyptus.ucsb.edu/",
 
1758
                                            p_prefix));
 
1759
                       }
 
1760
                      
1672
1761
 
1673
1762
                   if (!_ncAttachVolumeType->is_valid_remoteDev)
1674
1763
                   {
1675
 
 
 
1764
                      
1676
1765
                           /* no need to complain for minoccurs=0 element */
1677
 
 
1678
 
 
 
1766
                            
 
1767
                          
1679
1768
                   }
1680
1769
                   else
1681
1770
                   {
1682
1771
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1683
 
                                 (4 + axutil_strlen(p_prefix) +
1684
 
                                  axutil_strlen("remoteDev")));
1685
 
 
 
1772
                                 (4 + axutil_strlen(p_prefix) + 
 
1773
                                  axutil_strlen("remoteDev"))); 
 
1774
                                 
1686
1775
                                 /* axutil_strlen("<:>") + 1 = 4 */
1687
1776
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1688
1777
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev")));
1689
1778
                                  /* axutil_strlen("</:>") + 1 = 5 */
1690
 
 
1691
 
 
1692
 
 
1693
 
 
1694
 
 
1695
 
 
 
1779
                                  
 
1780
                     
 
1781
 
 
1782
                   
 
1783
                   
 
1784
                     
1696
1785
                     /*
1697
1786
                      * parsing remoteDev element
1698
1787
                      */
1699
1788
 
1700
 
 
1701
 
 
 
1789
                    
 
1790
                    
1702
1791
                            sprintf(start_input_str, "<%s%sremoteDev>",
1703
1792
                                 p_prefix?p_prefix:"",
1704
1793
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1705
 
 
 
1794
                            
1706
1795
                        start_input_str_len = axutil_strlen(start_input_str);
1707
1796
                        sprintf(end_input_str, "</%s%sremoteDev>",
1708
1797
                                 p_prefix?p_prefix:"",
1709
1798
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1710
1799
                        end_input_str_len = axutil_strlen(end_input_str);
1711
 
 
1712
 
                           text_value_7 = _ncAttachVolumeType->property_remoteDev;
1713
 
 
 
1800
                    
 
1801
                           text_value_8 = _ncAttachVolumeType->property_remoteDev;
 
1802
                           
1714
1803
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1715
 
 
1716
 
 
1717
 
                           text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
1718
 
                           if (text_value_7_temp)
 
1804
                           
 
1805
                            
 
1806
                           text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
 
1807
                           if (text_value_8_temp)
1719
1808
                           {
1720
 
                               axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
1721
 
                               AXIS2_FREE(env->allocator, text_value_7_temp);
 
1809
                               axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
 
1810
                               AXIS2_FREE(env->allocator, text_value_8_temp);
1722
1811
                           }
1723
1812
                           else
1724
1813
                           {
1725
 
                               axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
 
1814
                               axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
1726
1815
                           }
1727
 
 
 
1816
                           
1728
1817
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1729
 
 
1730
 
 
 
1818
                           
 
1819
                     
1731
1820
                     AXIS2_FREE(env->allocator,start_input_str);
1732
1821
                     AXIS2_FREE(env->allocator,end_input_str);
1733
 
                 }
1734
 
 
1735
 
 
 
1822
                 } 
 
1823
 
 
1824
                 
1736
1825
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1737
1826
                       {
1738
1827
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1739
1828
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1740
1829
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1741
 
 
 
1830
                           
1742
1831
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1743
1832
                                            "http://eucalyptus.ucsb.edu/",
1744
1833
                                            p_prefix));
1745
1834
                       }
1746
 
 
 
1835
                      
1747
1836
 
1748
1837
                   if (!_ncAttachVolumeType->is_valid_localDev)
1749
1838
                   {
1750
 
 
 
1839
                      
1751
1840
                           /* no need to complain for minoccurs=0 element */
1752
 
 
1753
 
 
 
1841
                            
 
1842
                          
1754
1843
                   }
1755
1844
                   else
1756
1845
                   {
1757
1846
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1758
 
                                 (4 + axutil_strlen(p_prefix) +
1759
 
                                  axutil_strlen("localDev")));
1760
 
 
 
1847
                                 (4 + axutil_strlen(p_prefix) + 
 
1848
                                  axutil_strlen("localDev"))); 
 
1849
                                 
1761
1850
                                 /* axutil_strlen("<:>") + 1 = 4 */
1762
1851
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1763
1852
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev")));
1764
1853
                                  /* axutil_strlen("</:>") + 1 = 5 */
1765
 
 
1766
 
 
1767
 
 
1768
 
 
1769
 
 
1770
 
 
 
1854
                                  
 
1855
                     
 
1856
 
 
1857
                   
 
1858
                   
 
1859
                     
1771
1860
                     /*
1772
1861
                      * parsing localDev element
1773
1862
                      */
1774
1863
 
1775
 
 
1776
 
 
 
1864
                    
 
1865
                    
1777
1866
                            sprintf(start_input_str, "<%s%slocalDev>",
1778
1867
                                 p_prefix?p_prefix:"",
1779
1868
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1780
 
 
 
1869
                            
1781
1870
                        start_input_str_len = axutil_strlen(start_input_str);
1782
1871
                        sprintf(end_input_str, "</%s%slocalDev>",
1783
1872
                                 p_prefix?p_prefix:"",
1784
1873
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1785
1874
                        end_input_str_len = axutil_strlen(end_input_str);
1786
 
 
1787
 
                           text_value_8 = _ncAttachVolumeType->property_localDev;
1788
 
 
 
1875
                    
 
1876
                           text_value_9 = _ncAttachVolumeType->property_localDev;
 
1877
                           
1789
1878
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1790
 
 
1791
 
 
1792
 
                           text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
1793
 
                           if (text_value_8_temp)
 
1879
                           
 
1880
                            
 
1881
                           text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
 
1882
                           if (text_value_9_temp)
1794
1883
                           {
1795
 
                               axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
1796
 
                               AXIS2_FREE(env->allocator, text_value_8_temp);
 
1884
                               axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
 
1885
                               AXIS2_FREE(env->allocator, text_value_9_temp);
1797
1886
                           }
1798
1887
                           else
1799
1888
                           {
1800
 
                               axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
 
1889
                               axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
1801
1890
                           }
1802
 
 
 
1891
                           
1803
1892
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1804
 
 
1805
 
 
 
1893
                           
 
1894
                     
1806
1895
                     AXIS2_FREE(env->allocator,start_input_str);
1807
1896
                     AXIS2_FREE(env->allocator,end_input_str);
1808
 
                 }
1809
 
 
1810
 
 
 
1897
                 } 
 
1898
 
 
1899
                 
1811
1900
 
1812
1901
            return parent;
1813
1902
        }
1814
1903
 
1815
1904
 
1816
 
 
 
1905
        
1817
1906
 
1818
1907
            /**
1819
1908
             * getter for correlationId.
1823
1912
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
1824
1913
                    const axutil_env_t *env)
1825
1914
             {
1826
 
 
 
1915
                
1827
1916
                    AXIS2_ENV_CHECK(env, NULL);
1828
1917
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
1829
 
 
 
1918
                  
1830
1919
 
1831
1920
                return _ncAttachVolumeType->property_correlationId;
1832
1921
             }
1840
1929
                    const axutil_env_t *env,
1841
1930
                    const axis2_char_t*  arg_correlationId)
1842
1931
             {
1843
 
 
 
1932
                
1844
1933
 
1845
1934
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1846
1935
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
1847
 
 
 
1936
                
1848
1937
                if(_ncAttachVolumeType->is_valid_correlationId &&
1849
1938
                        arg_correlationId == _ncAttachVolumeType->property_correlationId)
1850
1939
                {
1851
 
 
1852
 
                    return AXIS2_SUCCESS;
 
1940
                    
 
1941
                    return AXIS2_SUCCESS; 
1853
1942
                }
1854
1943
 
1855
1944
                adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env);
1856
1945
 
1857
 
 
 
1946
                
1858
1947
                if(NULL == arg_correlationId)
1859
1948
                {
1860
1949
                    /* We are already done */
1867
1956
                            return AXIS2_FAILURE;
1868
1957
                        }
1869
1958
                        _ncAttachVolumeType->is_valid_correlationId = AXIS2_TRUE;
1870
 
 
 
1959
                    
1871
1960
                return AXIS2_SUCCESS;
1872
1961
             }
1873
1962
 
1874
 
 
 
1963
             
1875
1964
 
1876
1965
           /**
1877
1966
            * resetter for correlationId
1887
1976
 
1888
1977
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1889
1978
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
1890
 
 
1891
 
 
1892
 
 
1893
 
 
1894
 
 
 
1979
               
 
1980
 
 
1981
               
 
1982
            
 
1983
                
1895
1984
                if(_ncAttachVolumeType->property_correlationId != NULL)
1896
1985
                {
1897
 
 
1898
 
 
 
1986
                   
 
1987
                   
1899
1988
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_correlationId);
1900
1989
                     _ncAttachVolumeType->property_correlationId = NULL;
1901
1990
                }
1902
 
 
1903
 
 
1904
 
 
1905
 
                _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE;
 
1991
            
 
1992
                
 
1993
                
 
1994
                _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE; 
1906
1995
               return AXIS2_SUCCESS;
1907
1996
           }
1908
1997
 
1916
2005
           {
1917
2006
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1918
2007
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
1919
 
 
 
2008
               
1920
2009
               return !_ncAttachVolumeType->is_valid_correlationId;
1921
2010
           }
1922
2011
 
1931
2020
               return adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env);
1932
2021
           }
1933
2022
 
1934
 
 
 
2023
           
1935
2024
 
1936
2025
            /**
1937
2026
             * getter for userId.
1941
2030
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
1942
2031
                    const axutil_env_t *env)
1943
2032
             {
1944
 
 
 
2033
                
1945
2034
                    AXIS2_ENV_CHECK(env, NULL);
1946
2035
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
1947
 
 
 
2036
                  
1948
2037
 
1949
2038
                return _ncAttachVolumeType->property_userId;
1950
2039
             }
1958
2047
                    const axutil_env_t *env,
1959
2048
                    const axis2_char_t*  arg_userId)
1960
2049
             {
1961
 
 
 
2050
                
1962
2051
 
1963
2052
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1964
2053
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
1965
 
 
 
2054
                
1966
2055
                if(_ncAttachVolumeType->is_valid_userId &&
1967
2056
                        arg_userId == _ncAttachVolumeType->property_userId)
1968
2057
                {
1969
 
 
1970
 
                    return AXIS2_SUCCESS;
 
2058
                    
 
2059
                    return AXIS2_SUCCESS; 
1971
2060
                }
1972
2061
 
1973
2062
                adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env);
1974
2063
 
1975
 
 
 
2064
                
1976
2065
                if(NULL == arg_userId)
1977
2066
                {
1978
2067
                    /* We are already done */
1985
2074
                            return AXIS2_FAILURE;
1986
2075
                        }
1987
2076
                        _ncAttachVolumeType->is_valid_userId = AXIS2_TRUE;
1988
 
 
 
2077
                    
1989
2078
                return AXIS2_SUCCESS;
1990
2079
             }
1991
2080
 
1992
 
 
 
2081
             
1993
2082
 
1994
2083
           /**
1995
2084
            * resetter for userId
2005
2094
 
2006
2095
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2007
2096
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2008
 
 
2009
 
 
2010
 
 
2011
 
 
2012
 
 
 
2097
               
 
2098
 
 
2099
               
 
2100
            
 
2101
                
2013
2102
                if(_ncAttachVolumeType->property_userId != NULL)
2014
2103
                {
2015
 
 
2016
 
 
 
2104
                   
 
2105
                   
2017
2106
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_userId);
2018
2107
                     _ncAttachVolumeType->property_userId = NULL;
2019
2108
                }
2020
 
 
2021
 
 
2022
 
 
2023
 
                _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE;
 
2109
            
 
2110
                
 
2111
                
 
2112
                _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE; 
2024
2113
               return AXIS2_SUCCESS;
2025
2114
           }
2026
2115
 
2034
2123
           {
2035
2124
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2036
2125
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2037
 
 
 
2126
               
2038
2127
               return !_ncAttachVolumeType->is_valid_userId;
2039
2128
           }
2040
2129
 
2049
2138
               return adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env);
2050
2139
           }
2051
2140
 
2052
 
 
 
2141
           
2053
2142
 
2054
2143
            /**
2055
2144
             * getter for return.
2059
2148
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2060
2149
                    const axutil_env_t *env)
2061
2150
             {
2062
 
 
 
2151
                
2063
2152
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
2064
2153
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (axis2_bool_t)0);
2065
 
 
 
2154
                  
2066
2155
 
2067
2156
                return _ncAttachVolumeType->property_return;
2068
2157
             }
2076
2165
                    const axutil_env_t *env,
2077
2166
                    axis2_bool_t  arg_return)
2078
2167
             {
2079
 
 
 
2168
                
2080
2169
 
2081
2170
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2082
2171
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2083
 
 
 
2172
                
2084
2173
                if(_ncAttachVolumeType->is_valid_return &&
2085
2174
                        arg_return == _ncAttachVolumeType->property_return)
2086
2175
                {
2087
 
 
2088
 
                    return AXIS2_SUCCESS;
 
2176
                    
 
2177
                    return AXIS2_SUCCESS; 
2089
2178
                }
2090
2179
 
2091
2180
                adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env);
2092
2181
 
2093
2182
                _ncAttachVolumeType->property_return = arg_return;
2094
2183
                        _ncAttachVolumeType->is_valid_return = AXIS2_TRUE;
2095
 
 
 
2184
                    
2096
2185
                return AXIS2_SUCCESS;
2097
2186
             }
2098
2187
 
2099
 
 
 
2188
             
2100
2189
 
2101
2190
           /**
2102
2191
            * resetter for return
2112
2201
 
2113
2202
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2114
2203
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2115
 
 
2116
 
 
2117
 
               _ncAttachVolumeType->is_valid_return = AXIS2_FALSE;
 
2204
               
 
2205
 
 
2206
               _ncAttachVolumeType->is_valid_return = AXIS2_FALSE; 
2118
2207
               return AXIS2_SUCCESS;
2119
2208
           }
2120
2209
 
2128
2217
           {
2129
2218
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2130
2219
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2131
 
 
 
2220
               
2132
2221
               return !_ncAttachVolumeType->is_valid_return;
2133
2222
           }
2134
2223
 
2143
2232
               return adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env);
2144
2233
           }
2145
2234
 
2146
 
 
 
2235
           
 
2236
 
 
2237
            /**
 
2238
             * getter for nodeName.
 
2239
             */
 
2240
            axis2_char_t* AXIS2_CALL
 
2241
            adb_ncAttachVolumeType_get_nodeName(
 
2242
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2243
                    const axutil_env_t *env)
 
2244
             {
 
2245
                
 
2246
                    AXIS2_ENV_CHECK(env, NULL);
 
2247
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
2248
                  
 
2249
 
 
2250
                return _ncAttachVolumeType->property_nodeName;
 
2251
             }
 
2252
 
 
2253
            /**
 
2254
             * setter for nodeName
 
2255
             */
 
2256
            axis2_status_t AXIS2_CALL
 
2257
            adb_ncAttachVolumeType_set_nodeName(
 
2258
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2259
                    const axutil_env_t *env,
 
2260
                    const axis2_char_t*  arg_nodeName)
 
2261
             {
 
2262
                
 
2263
 
 
2264
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2265
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2266
                
 
2267
                if(_ncAttachVolumeType->is_valid_nodeName &&
 
2268
                        arg_nodeName == _ncAttachVolumeType->property_nodeName)
 
2269
                {
 
2270
                    
 
2271
                    return AXIS2_SUCCESS; 
 
2272
                }
 
2273
 
 
2274
                adb_ncAttachVolumeType_reset_nodeName(_ncAttachVolumeType, env);
 
2275
 
 
2276
                
 
2277
                if(NULL == arg_nodeName)
 
2278
                {
 
2279
                    /* We are already done */
 
2280
                    return AXIS2_SUCCESS;
 
2281
                }
 
2282
                _ncAttachVolumeType->property_nodeName = (axis2_char_t *)axutil_strdup(env, arg_nodeName);
 
2283
                        if(NULL == _ncAttachVolumeType->property_nodeName)
 
2284
                        {
 
2285
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nodeName");
 
2286
                            return AXIS2_FAILURE;
 
2287
                        }
 
2288
                        _ncAttachVolumeType->is_valid_nodeName = AXIS2_TRUE;
 
2289
                    
 
2290
                return AXIS2_SUCCESS;
 
2291
             }
 
2292
 
 
2293
             
 
2294
 
 
2295
           /**
 
2296
            * resetter for nodeName
 
2297
            */
 
2298
           axis2_status_t AXIS2_CALL
 
2299
           adb_ncAttachVolumeType_reset_nodeName(
 
2300
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2301
                   const axutil_env_t *env)
 
2302
           {
 
2303
               int i = 0;
 
2304
               int count = 0;
 
2305
               void *element = NULL;
 
2306
 
 
2307
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2308
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2309
               
 
2310
 
 
2311
               
 
2312
            
 
2313
                
 
2314
                if(_ncAttachVolumeType->property_nodeName != NULL)
 
2315
                {
 
2316
                   
 
2317
                   
 
2318
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_nodeName);
 
2319
                     _ncAttachVolumeType->property_nodeName = NULL;
 
2320
                }
 
2321
            
 
2322
                
 
2323
                
 
2324
                _ncAttachVolumeType->is_valid_nodeName = AXIS2_FALSE; 
 
2325
               return AXIS2_SUCCESS;
 
2326
           }
 
2327
 
 
2328
           /**
 
2329
            * Check whether nodeName is nill
 
2330
            */
 
2331
           axis2_bool_t AXIS2_CALL
 
2332
           adb_ncAttachVolumeType_is_nodeName_nil(
 
2333
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2334
                   const axutil_env_t *env)
 
2335
           {
 
2336
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2337
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2338
               
 
2339
               return !_ncAttachVolumeType->is_valid_nodeName;
 
2340
           }
 
2341
 
 
2342
           /**
 
2343
            * Set nodeName to nill (currently the same as reset)
 
2344
            */
 
2345
           axis2_status_t AXIS2_CALL
 
2346
           adb_ncAttachVolumeType_set_nodeName_nil(
 
2347
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2348
                   const axutil_env_t *env)
 
2349
           {
 
2350
               return adb_ncAttachVolumeType_reset_nodeName(_ncAttachVolumeType, env);
 
2351
           }
 
2352
 
 
2353
           
2147
2354
 
2148
2355
            /**
2149
2356
             * getter for statusMessage.
2153
2360
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2154
2361
                    const axutil_env_t *env)
2155
2362
             {
2156
 
 
 
2363
                
2157
2364
                    AXIS2_ENV_CHECK(env, (int)0);
2158
2365
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (int)0);
2159
 
 
 
2366
                  
2160
2367
 
2161
2368
                return _ncAttachVolumeType->property_statusMessage;
2162
2369
             }
2170
2377
                    const axutil_env_t *env,
2171
2378
                    const int  arg_statusMessage)
2172
2379
             {
2173
 
 
 
2380
                
2174
2381
 
2175
2382
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2176
2383
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2177
 
 
 
2384
                
2178
2385
                if(_ncAttachVolumeType->is_valid_statusMessage &&
2179
2386
                        arg_statusMessage == _ncAttachVolumeType->property_statusMessage)
2180
2387
                {
2181
 
 
2182
 
                    return AXIS2_SUCCESS;
 
2388
                    
 
2389
                    return AXIS2_SUCCESS; 
2183
2390
                }
2184
2391
 
2185
2392
                adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env);
2186
2393
 
2187
2394
                _ncAttachVolumeType->property_statusMessage = arg_statusMessage;
2188
2395
                        _ncAttachVolumeType->is_valid_statusMessage = AXIS2_TRUE;
2189
 
 
 
2396
                    
2190
2397
                return AXIS2_SUCCESS;
2191
2398
             }
2192
2399
 
2193
 
 
 
2400
             
2194
2401
 
2195
2402
           /**
2196
2403
            * resetter for statusMessage
2206
2413
 
2207
2414
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2208
2415
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2209
 
 
2210
 
 
2211
 
               _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE;
 
2416
               
 
2417
 
 
2418
               _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE; 
2212
2419
               return AXIS2_SUCCESS;
2213
2420
           }
2214
2421
 
2222
2429
           {
2223
2430
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2224
2431
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2225
 
 
 
2432
               
2226
2433
               return !_ncAttachVolumeType->is_valid_statusMessage;
2227
2434
           }
2228
2435
 
2237
2444
               return adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env);
2238
2445
           }
2239
2446
 
2240
 
 
 
2447
           
 
2448
 
 
2449
            /**
 
2450
             * getter for instanceId.
 
2451
             */
 
2452
            axis2_char_t* AXIS2_CALL
 
2453
            adb_ncAttachVolumeType_get_instanceId(
 
2454
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2455
                    const axutil_env_t *env)
 
2456
             {
 
2457
                
 
2458
                    AXIS2_ENV_CHECK(env, NULL);
 
2459
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
2460
                  
 
2461
 
 
2462
                return _ncAttachVolumeType->property_instanceId;
 
2463
             }
 
2464
 
 
2465
            /**
 
2466
             * setter for instanceId
 
2467
             */
 
2468
            axis2_status_t AXIS2_CALL
 
2469
            adb_ncAttachVolumeType_set_instanceId(
 
2470
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2471
                    const axutil_env_t *env,
 
2472
                    const axis2_char_t*  arg_instanceId)
 
2473
             {
 
2474
                
 
2475
 
 
2476
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2477
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2478
                
 
2479
                if(_ncAttachVolumeType->is_valid_instanceId &&
 
2480
                        arg_instanceId == _ncAttachVolumeType->property_instanceId)
 
2481
                {
 
2482
                    
 
2483
                    return AXIS2_SUCCESS; 
 
2484
                }
 
2485
 
 
2486
                adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
 
2487
 
 
2488
                
 
2489
                if(NULL == arg_instanceId)
 
2490
                {
 
2491
                    /* We are already done */
 
2492
                    return AXIS2_SUCCESS;
 
2493
                }
 
2494
                _ncAttachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
 
2495
                        if(NULL == _ncAttachVolumeType->property_instanceId)
 
2496
                        {
 
2497
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
 
2498
                            return AXIS2_FAILURE;
 
2499
                        }
 
2500
                        _ncAttachVolumeType->is_valid_instanceId = AXIS2_TRUE;
 
2501
                    
 
2502
                return AXIS2_SUCCESS;
 
2503
             }
 
2504
 
 
2505
             
 
2506
 
 
2507
           /**
 
2508
            * resetter for instanceId
 
2509
            */
 
2510
           axis2_status_t AXIS2_CALL
 
2511
           adb_ncAttachVolumeType_reset_instanceId(
 
2512
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2513
                   const axutil_env_t *env)
 
2514
           {
 
2515
               int i = 0;
 
2516
               int count = 0;
 
2517
               void *element = NULL;
 
2518
 
 
2519
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2520
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2521
               
 
2522
 
 
2523
               
 
2524
            
 
2525
                
 
2526
                if(_ncAttachVolumeType->property_instanceId != NULL)
 
2527
                {
 
2528
                   
 
2529
                   
 
2530
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_instanceId);
 
2531
                     _ncAttachVolumeType->property_instanceId = NULL;
 
2532
                }
 
2533
            
 
2534
                
 
2535
                
 
2536
                _ncAttachVolumeType->is_valid_instanceId = AXIS2_FALSE; 
 
2537
               return AXIS2_SUCCESS;
 
2538
           }
 
2539
 
 
2540
           /**
 
2541
            * Check whether instanceId is nill
 
2542
            */
 
2543
           axis2_bool_t AXIS2_CALL
 
2544
           adb_ncAttachVolumeType_is_instanceId_nil(
 
2545
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2546
                   const axutil_env_t *env)
 
2547
           {
 
2548
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2549
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2550
               
 
2551
               return !_ncAttachVolumeType->is_valid_instanceId;
 
2552
           }
 
2553
 
 
2554
           /**
 
2555
            * Set instanceId to nill (currently the same as reset)
 
2556
            */
 
2557
           axis2_status_t AXIS2_CALL
 
2558
           adb_ncAttachVolumeType_set_instanceId_nil(
 
2559
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2560
                   const axutil_env_t *env)
 
2561
           {
 
2562
               return adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
 
2563
           }
 
2564
 
 
2565
           
2241
2566
 
2242
2567
            /**
2243
2568
             * getter for volumeId.
2247
2572
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2248
2573
                    const axutil_env_t *env)
2249
2574
             {
2250
 
 
 
2575
                
2251
2576
                    AXIS2_ENV_CHECK(env, NULL);
2252
2577
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
2253
 
 
 
2578
                  
2254
2579
 
2255
2580
                return _ncAttachVolumeType->property_volumeId;
2256
2581
             }
2264
2589
                    const axutil_env_t *env,
2265
2590
                    const axis2_char_t*  arg_volumeId)
2266
2591
             {
2267
 
 
 
2592
                
2268
2593
 
2269
2594
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2270
2595
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2271
 
 
 
2596
                
2272
2597
                if(_ncAttachVolumeType->is_valid_volumeId &&
2273
2598
                        arg_volumeId == _ncAttachVolumeType->property_volumeId)
2274
2599
                {
2275
 
 
2276
 
                    return AXIS2_SUCCESS;
 
2600
                    
 
2601
                    return AXIS2_SUCCESS; 
2277
2602
                }
2278
2603
 
2279
2604
                adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env);
2280
2605
 
2281
 
 
 
2606
                
2282
2607
                if(NULL == arg_volumeId)
2283
2608
                {
2284
2609
                    /* We are already done */
2291
2616
                            return AXIS2_FAILURE;
2292
2617
                        }
2293
2618
                        _ncAttachVolumeType->is_valid_volumeId = AXIS2_TRUE;
2294
 
 
 
2619
                    
2295
2620
                return AXIS2_SUCCESS;
2296
2621
             }
2297
2622
 
2298
 
 
 
2623
             
2299
2624
 
2300
2625
           /**
2301
2626
            * resetter for volumeId
2311
2636
 
2312
2637
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2313
2638
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2314
 
 
2315
 
 
2316
 
 
2317
 
 
2318
 
 
 
2639
               
 
2640
 
 
2641
               
 
2642
            
 
2643
                
2319
2644
                if(_ncAttachVolumeType->property_volumeId != NULL)
2320
2645
                {
2321
 
 
2322
 
 
 
2646
                   
 
2647
                   
2323
2648
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_volumeId);
2324
2649
                     _ncAttachVolumeType->property_volumeId = NULL;
2325
2650
                }
2326
 
 
2327
 
 
2328
 
 
2329
 
                _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE;
 
2651
            
 
2652
                
 
2653
                
 
2654
                _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE; 
2330
2655
               return AXIS2_SUCCESS;
2331
2656
           }
2332
2657
 
2340
2665
           {
2341
2666
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2342
2667
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2343
 
 
 
2668
               
2344
2669
               return !_ncAttachVolumeType->is_valid_volumeId;
2345
2670
           }
2346
2671
 
2355
2680
               return adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env);
2356
2681
           }
2357
2682
 
2358
 
 
2359
 
 
2360
 
            /**
2361
 
             * getter for instanceId.
2362
 
             */
2363
 
            axis2_char_t* AXIS2_CALL
2364
 
            adb_ncAttachVolumeType_get_instanceId(
2365
 
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2366
 
                    const axutil_env_t *env)
2367
 
             {
2368
 
 
2369
 
                    AXIS2_ENV_CHECK(env, NULL);
2370
 
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
2371
 
 
2372
 
 
2373
 
                return _ncAttachVolumeType->property_instanceId;
2374
 
             }
2375
 
 
2376
 
            /**
2377
 
             * setter for instanceId
2378
 
             */
2379
 
            axis2_status_t AXIS2_CALL
2380
 
            adb_ncAttachVolumeType_set_instanceId(
2381
 
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2382
 
                    const axutil_env_t *env,
2383
 
                    const axis2_char_t*  arg_instanceId)
2384
 
             {
2385
 
 
2386
 
 
2387
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2388
 
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2389
 
 
2390
 
                if(_ncAttachVolumeType->is_valid_instanceId &&
2391
 
                        arg_instanceId == _ncAttachVolumeType->property_instanceId)
2392
 
                {
2393
 
 
2394
 
                    return AXIS2_SUCCESS;
2395
 
                }
2396
 
 
2397
 
                adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
2398
 
 
2399
 
 
2400
 
                if(NULL == arg_instanceId)
2401
 
                {
2402
 
                    /* We are already done */
2403
 
                    return AXIS2_SUCCESS;
2404
 
                }
2405
 
                _ncAttachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
2406
 
                        if(NULL == _ncAttachVolumeType->property_instanceId)
2407
 
                        {
2408
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
2409
 
                            return AXIS2_FAILURE;
2410
 
                        }
2411
 
                        _ncAttachVolumeType->is_valid_instanceId = AXIS2_TRUE;
2412
 
 
2413
 
                return AXIS2_SUCCESS;
2414
 
             }
2415
 
 
2416
 
 
2417
 
 
2418
 
           /**
2419
 
            * resetter for instanceId
2420
 
            */
2421
 
           axis2_status_t AXIS2_CALL
2422
 
           adb_ncAttachVolumeType_reset_instanceId(
2423
 
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2424
 
                   const axutil_env_t *env)
2425
 
           {
2426
 
               int i = 0;
2427
 
               int count = 0;
2428
 
               void *element = NULL;
2429
 
 
2430
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2431
 
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2432
 
 
2433
 
 
2434
 
 
2435
 
 
2436
 
 
2437
 
                if(_ncAttachVolumeType->property_instanceId != NULL)
2438
 
                {
2439
 
 
2440
 
 
2441
 
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_instanceId);
2442
 
                     _ncAttachVolumeType->property_instanceId = NULL;
2443
 
                }
2444
 
 
2445
 
 
2446
 
 
2447
 
                _ncAttachVolumeType->is_valid_instanceId = AXIS2_FALSE;
2448
 
               return AXIS2_SUCCESS;
2449
 
           }
2450
 
 
2451
 
           /**
2452
 
            * Check whether instanceId is nill
2453
 
            */
2454
 
           axis2_bool_t AXIS2_CALL
2455
 
           adb_ncAttachVolumeType_is_instanceId_nil(
2456
 
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2457
 
                   const axutil_env_t *env)
2458
 
           {
2459
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2460
 
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2461
 
 
2462
 
               return !_ncAttachVolumeType->is_valid_instanceId;
2463
 
           }
2464
 
 
2465
 
           /**
2466
 
            * Set instanceId to nill (currently the same as reset)
2467
 
            */
2468
 
           axis2_status_t AXIS2_CALL
2469
 
           adb_ncAttachVolumeType_set_instanceId_nil(
2470
 
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2471
 
                   const axutil_env_t *env)
2472
 
           {
2473
 
               return adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
2474
 
           }
2475
 
 
2476
 
 
 
2683
           
2477
2684
 
2478
2685
            /**
2479
2686
             * getter for remoteDev.
2483
2690
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2484
2691
                    const axutil_env_t *env)
2485
2692
             {
2486
 
 
 
2693
                
2487
2694
                    AXIS2_ENV_CHECK(env, NULL);
2488
2695
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
2489
 
 
 
2696
                  
2490
2697
 
2491
2698
                return _ncAttachVolumeType->property_remoteDev;
2492
2699
             }
2500
2707
                    const axutil_env_t *env,
2501
2708
                    const axis2_char_t*  arg_remoteDev)
2502
2709
             {
2503
 
 
 
2710
                
2504
2711
 
2505
2712
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2506
2713
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2507
 
 
 
2714
                
2508
2715
                if(_ncAttachVolumeType->is_valid_remoteDev &&
2509
2716
                        arg_remoteDev == _ncAttachVolumeType->property_remoteDev)
2510
2717
                {
2511
 
 
2512
 
                    return AXIS2_SUCCESS;
 
2718
                    
 
2719
                    return AXIS2_SUCCESS; 
2513
2720
                }
2514
2721
 
2515
2722
                adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env);
2516
2723
 
2517
 
 
 
2724
                
2518
2725
                if(NULL == arg_remoteDev)
2519
2726
                {
2520
2727
                    /* We are already done */
2527
2734
                            return AXIS2_FAILURE;
2528
2735
                        }
2529
2736
                        _ncAttachVolumeType->is_valid_remoteDev = AXIS2_TRUE;
2530
 
 
 
2737
                    
2531
2738
                return AXIS2_SUCCESS;
2532
2739
             }
2533
2740
 
2534
 
 
 
2741
             
2535
2742
 
2536
2743
           /**
2537
2744
            * resetter for remoteDev
2547
2754
 
2548
2755
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2549
2756
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2550
 
 
2551
 
 
2552
 
 
2553
 
 
2554
 
 
 
2757
               
 
2758
 
 
2759
               
 
2760
            
 
2761
                
2555
2762
                if(_ncAttachVolumeType->property_remoteDev != NULL)
2556
2763
                {
2557
 
 
2558
 
 
 
2764
                   
 
2765
                   
2559
2766
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_remoteDev);
2560
2767
                     _ncAttachVolumeType->property_remoteDev = NULL;
2561
2768
                }
2562
 
 
2563
 
 
2564
 
 
2565
 
                _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE;
 
2769
            
 
2770
                
 
2771
                
 
2772
                _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE; 
2566
2773
               return AXIS2_SUCCESS;
2567
2774
           }
2568
2775
 
2576
2783
           {
2577
2784
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2578
2785
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2579
 
 
 
2786
               
2580
2787
               return !_ncAttachVolumeType->is_valid_remoteDev;
2581
2788
           }
2582
2789
 
2591
2798
               return adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env);
2592
2799
           }
2593
2800
 
2594
 
 
 
2801
           
2595
2802
 
2596
2803
            /**
2597
2804
             * getter for localDev.
2601
2808
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
2602
2809
                    const axutil_env_t *env)
2603
2810
             {
2604
 
 
 
2811
                
2605
2812
                    AXIS2_ENV_CHECK(env, NULL);
2606
2813
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
2607
 
 
 
2814
                  
2608
2815
 
2609
2816
                return _ncAttachVolumeType->property_localDev;
2610
2817
             }
2618
2825
                    const axutil_env_t *env,
2619
2826
                    const axis2_char_t*  arg_localDev)
2620
2827
             {
2621
 
 
 
2828
                
2622
2829
 
2623
2830
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2624
2831
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2625
 
 
 
2832
                
2626
2833
                if(_ncAttachVolumeType->is_valid_localDev &&
2627
2834
                        arg_localDev == _ncAttachVolumeType->property_localDev)
2628
2835
                {
2629
 
 
2630
 
                    return AXIS2_SUCCESS;
 
2836
                    
 
2837
                    return AXIS2_SUCCESS; 
2631
2838
                }
2632
2839
 
2633
2840
                adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env);
2634
2841
 
2635
 
 
 
2842
                
2636
2843
                if(NULL == arg_localDev)
2637
2844
                {
2638
2845
                    /* We are already done */
2645
2852
                            return AXIS2_FAILURE;
2646
2853
                        }
2647
2854
                        _ncAttachVolumeType->is_valid_localDev = AXIS2_TRUE;
2648
 
 
 
2855
                    
2649
2856
                return AXIS2_SUCCESS;
2650
2857
             }
2651
2858
 
2652
 
 
 
2859
             
2653
2860
 
2654
2861
           /**
2655
2862
            * resetter for localDev
2665
2872
 
2666
2873
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2667
2874
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
2668
 
 
2669
 
 
2670
 
 
2671
 
 
2672
 
 
 
2875
               
 
2876
 
 
2877
               
 
2878
            
 
2879
                
2673
2880
                if(_ncAttachVolumeType->property_localDev != NULL)
2674
2881
                {
2675
 
 
2676
 
 
 
2882
                   
 
2883
                   
2677
2884
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_localDev);
2678
2885
                     _ncAttachVolumeType->property_localDev = NULL;
2679
2886
                }
2680
 
 
2681
 
 
2682
 
 
2683
 
                _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE;
 
2887
            
 
2888
                
 
2889
                
 
2890
                _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE; 
2684
2891
               return AXIS2_SUCCESS;
2685
2892
           }
2686
2893
 
2694
2901
           {
2695
2902
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2696
2903
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
2697
 
 
 
2904
               
2698
2905
               return !_ncAttachVolumeType->is_valid_localDev;
2699
2906
           }
2700
2907
 
2709
2916
               return adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env);
2710
2917
           }
2711
2918
 
2712
 
 
 
2919
           
2713
2920