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

« back to all changes in this revision

Viewing changes to node/generated/adb_ncAttachVolumeType.c

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

Dustin Kirkland <kirkland@canonical.com>

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
        /**
 
4
         * adb_ncAttachVolumeType.c
 
5
         *
 
6
         * This file was auto-generated from WSDL
 
7
         * by the Apache Axis2/C version: SNAPSHOT  Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
 
8
         */
 
9
 
 
10
        #include "adb_ncAttachVolumeType.h"
 
11
        
 
12
                /*
 
13
                 * This type was generated from the piece of schema that had
 
14
                 * name = ncAttachVolumeType
 
15
                 * Namespace URI = http://eucalyptus.ucsb.edu/
 
16
                 * Namespace Prefix = ns1
 
17
                 */
 
18
           
 
19
 
 
20
 
 
21
        struct adb_ncAttachVolumeType
 
22
        {
 
23
            axis2_char_t* property_correlationId;
 
24
 
 
25
                
 
26
                axis2_bool_t is_valid_correlationId;
 
27
 
 
28
 
 
29
            axis2_char_t* property_userId;
 
30
 
 
31
                
 
32
                axis2_bool_t is_valid_userId;
 
33
 
 
34
 
 
35
            axis2_bool_t property_return;
 
36
 
 
37
                
 
38
                axis2_bool_t is_valid_return;
 
39
 
 
40
 
 
41
            axis2_char_t* property_nodeName;
 
42
 
 
43
                
 
44
                axis2_bool_t is_valid_nodeName;
 
45
 
 
46
 
 
47
            int property_statusMessage;
 
48
 
 
49
                
 
50
                axis2_bool_t is_valid_statusMessage;
 
51
 
 
52
 
 
53
            axis2_char_t* property_instanceId;
 
54
 
 
55
                
 
56
                axis2_bool_t is_valid_instanceId;
 
57
 
 
58
 
 
59
            axis2_char_t* property_volumeId;
 
60
 
 
61
                
 
62
                axis2_bool_t is_valid_volumeId;
 
63
 
 
64
 
 
65
            axis2_char_t* property_remoteDev;
 
66
 
 
67
                
 
68
                axis2_bool_t is_valid_remoteDev;
 
69
 
 
70
 
 
71
            axis2_char_t* property_localDev;
 
72
 
 
73
                
 
74
                axis2_bool_t is_valid_localDev;
 
75
 
 
76
 
 
77
            
 
78
        };
 
79
 
 
80
 
 
81
       /************************* Private Function prototypes ********************************/
 
82
        
 
83
 
 
84
                axis2_status_t AXIS2_CALL
 
85
                adb_ncAttachVolumeType_set_userId_nil(
 
86
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
87
                        const axutil_env_t *env);
 
88
            
 
89
 
 
90
                axis2_status_t AXIS2_CALL
 
91
                adb_ncAttachVolumeType_set_return_nil(
 
92
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
93
                        const axutil_env_t *env);
 
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
            
 
101
 
 
102
                axis2_status_t AXIS2_CALL
 
103
                adb_ncAttachVolumeType_set_volumeId_nil(
 
104
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
105
                        const axutil_env_t *env);
 
106
            
 
107
 
 
108
                axis2_status_t AXIS2_CALL
 
109
                adb_ncAttachVolumeType_set_remoteDev_nil(
 
110
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
111
                        const axutil_env_t *env);
 
112
            
 
113
 
 
114
                axis2_status_t AXIS2_CALL
 
115
                adb_ncAttachVolumeType_set_localDev_nil(
 
116
                        adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
117
                        const axutil_env_t *env);
 
118
            
 
119
 
 
120
 
 
121
       /************************* Function Implmentations ********************************/
 
122
        adb_ncAttachVolumeType_t* AXIS2_CALL
 
123
        adb_ncAttachVolumeType_create(
 
124
            const axutil_env_t *env)
 
125
        {
 
126
            adb_ncAttachVolumeType_t *_ncAttachVolumeType = NULL;
 
127
            
 
128
            AXIS2_ENV_CHECK(env, NULL);
 
129
 
 
130
            _ncAttachVolumeType = (adb_ncAttachVolumeType_t *) AXIS2_MALLOC(env->
 
131
                allocator, sizeof(adb_ncAttachVolumeType_t));
 
132
 
 
133
            if(NULL == _ncAttachVolumeType)
 
134
            {
 
135
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
 
136
                return NULL;
 
137
            }
 
138
 
 
139
            memset(_ncAttachVolumeType, 0, sizeof(adb_ncAttachVolumeType_t));
 
140
 
 
141
            _ncAttachVolumeType->property_correlationId  = NULL;
 
142
                  _ncAttachVolumeType->is_valid_correlationId  = AXIS2_FALSE;
 
143
            _ncAttachVolumeType->property_userId  = NULL;
 
144
                  _ncAttachVolumeType->is_valid_userId  = AXIS2_FALSE;
 
145
            _ncAttachVolumeType->is_valid_return  = AXIS2_FALSE;
 
146
            _ncAttachVolumeType->property_nodeName  = NULL;
 
147
                  _ncAttachVolumeType->is_valid_nodeName  = AXIS2_FALSE;
 
148
            _ncAttachVolumeType->is_valid_statusMessage  = AXIS2_FALSE;
 
149
            _ncAttachVolumeType->property_instanceId  = NULL;
 
150
                  _ncAttachVolumeType->is_valid_instanceId  = AXIS2_FALSE;
 
151
            _ncAttachVolumeType->property_volumeId  = NULL;
 
152
                  _ncAttachVolumeType->is_valid_volumeId  = AXIS2_FALSE;
 
153
            _ncAttachVolumeType->property_remoteDev  = NULL;
 
154
                  _ncAttachVolumeType->is_valid_remoteDev  = AXIS2_FALSE;
 
155
            _ncAttachVolumeType->property_localDev  = NULL;
 
156
                  _ncAttachVolumeType->is_valid_localDev  = AXIS2_FALSE;
 
157
            
 
158
 
 
159
            return _ncAttachVolumeType;
 
160
        }
 
161
 
 
162
        axis2_status_t AXIS2_CALL
 
163
        adb_ncAttachVolumeType_free (
 
164
                adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
165
                const axutil_env_t *env)
 
166
        {
 
167
            
 
168
 
 
169
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
170
            AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
171
 
 
172
            adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env);
 
173
            adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env);
 
174
            adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env);
 
175
            adb_ncAttachVolumeType_reset_nodeName(_ncAttachVolumeType, env);
 
176
            adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env);
 
177
            adb_ncAttachVolumeType_reset_instanceId(_ncAttachVolumeType, env);
 
178
            adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env);
 
179
            adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env);
 
180
            adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env);
 
181
            
 
182
 
 
183
            if(_ncAttachVolumeType)
 
184
            {
 
185
                AXIS2_FREE(env->allocator, _ncAttachVolumeType);
 
186
                _ncAttachVolumeType = NULL;
 
187
            }
 
188
            return AXIS2_SUCCESS;
 
189
        }
 
190
 
 
191
 
 
192
        
 
193
 
 
194
        axis2_status_t AXIS2_CALL
 
195
        adb_ncAttachVolumeType_deserialize(
 
196
                adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
197
                const axutil_env_t *env,
 
198
                axiom_node_t **dp_parent,
 
199
                axis2_bool_t *dp_is_early_node_valid,
 
200
                axis2_bool_t dont_care_minoccurs)
 
201
        {
 
202
          axiom_node_t *parent = *dp_parent;
 
203
          
 
204
          axis2_status_t status = AXIS2_SUCCESS;
 
205
           
 
206
             axis2_char_t* text_value = NULL;
 
207
             axutil_qname_t *qname = NULL;
 
208
          
 
209
            axutil_qname_t *element_qname = NULL; 
 
210
            
 
211
               axiom_node_t *first_node = NULL;
 
212
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
 
213
               axiom_node_t *current_node = NULL;
 
214
               axiom_element_t *current_element = NULL;
 
215
            
 
216
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
217
            AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
218
 
 
219
            
 
220
              
 
221
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
 
222
              {
 
223
                  parent = axiom_node_get_next_sibling(parent, env);
 
224
              }
 
225
              if (NULL == parent)
 
226
              {
 
227
                /* This should be checked before everything */
 
228
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
 
229
                            "Failed in building adb object for ncAttachVolumeType : "
 
230
                            "NULL elemenet can not be passed to deserialize");
 
231
                return AXIS2_FAILURE;
 
232
              }
 
233
              
 
234
                      
 
235
                      first_node = axiom_node_get_first_child(parent, env);
 
236
                      
 
237
                    
 
238
 
 
239
                     
 
240
                     /*
 
241
                      * building correlationId element
 
242
                      */
 
243
                     
 
244
                     
 
245
                     
 
246
                                   current_node = first_node;
 
247
                                   is_early_node_valid = AXIS2_FALSE;
 
248
                                   
 
249
                                   
 
250
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
251
                                    {
 
252
                                        current_node = axiom_node_get_next_sibling(current_node, env);
 
253
                                    }
 
254
                                    if(current_node != NULL)
 
255
                                    {
 
256
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
257
                                        qname = axiom_element_get_qname(current_element, env, current_node);
 
258
                                    }
 
259
                                   
 
260
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
 
261
                                 
 
262
 
 
263
                           if ( 
 
264
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
265
                           {
 
266
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
267
                              {
 
268
                                is_early_node_valid = AXIS2_TRUE;
 
269
                              }
 
270
                              
 
271
                                 
 
272
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
273
                                      if(text_value != NULL)
 
274
                                      {
 
275
                                            status = adb_ncAttachVolumeType_set_correlationId(_ncAttachVolumeType, env,
 
276
                                                               text_value);
 
277
                                      }
 
278
                                      
 
279
                                 if(AXIS2_FAILURE ==  status)
 
280
                                 {
 
281
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
 
282
                                     if(element_qname)
 
283
                                     {
 
284
                                         axutil_qname_free(element_qname, env);
 
285
                                     }
 
286
                                     return AXIS2_FAILURE;
 
287
                                 }
 
288
                              }
 
289
                           
 
290
                  if(element_qname)
 
291
                  {
 
292
                     axutil_qname_free(element_qname, env);
 
293
                     element_qname = NULL;
 
294
                  }
 
295
                 
 
296
 
 
297
                     
 
298
                     /*
 
299
                      * building userId element
 
300
                      */
 
301
                     
 
302
                     
 
303
                     
 
304
                                    /*
 
305
                                     * because elements are ordered this works fine
 
306
                                     */
 
307
                                  
 
308
                                   
 
309
                                   if(current_node != NULL && is_early_node_valid)
 
310
                                   {
 
311
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
312
                                       
 
313
                                       
 
314
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
315
                                        {
 
316
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
317
                                        }
 
318
                                        if(current_node != NULL)
 
319
                                        {
 
320
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
321
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
322
                                        }
 
323
                                       
 
324
                                   }
 
325
                                   is_early_node_valid = AXIS2_FALSE;
 
326
                                 
 
327
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
 
328
                                 
 
329
 
 
330
                           if ( 
 
331
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
332
                           {
 
333
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
334
                              {
 
335
                                is_early_node_valid = AXIS2_TRUE;
 
336
                              }
 
337
                              
 
338
                                 
 
339
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
340
                                      if(text_value != NULL)
 
341
                                      {
 
342
                                            status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env,
 
343
                                                               text_value);
 
344
                                      }
 
345
                                      
 
346
                                      else
 
347
                                      {
 
348
                                            /*
 
349
                                             * axis2_qname_t *qname = NULL;
 
350
                                             * axiom_attribute_t *the_attri = NULL;
 
351
                                             * 
 
352
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
353
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
354
                                             */
 
355
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
356
 
 
357
                                            axiom_attribute_t *the_attri = NULL;
 
358
                                            axis2_char_t *attrib_text = NULL;
 
359
                                            axutil_hash_t *attribute_hash = NULL;
 
360
 
 
361
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
362
 
 
363
                                            attrib_text = NULL;
 
364
                                            if(attribute_hash)
 
365
                                            {
 
366
                                                 axutil_hash_index_t *hi;
 
367
                                                 void *val;
 
368
                                                 const void *key;
 
369
                                        
 
370
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
371
                                                 {
 
372
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
373
                                                     
 
374
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
375
                                                     {
 
376
                                                         the_attri = (axiom_attribute_t*)val;
 
377
                                                         break;
 
378
                                                     }
 
379
                                                 }
 
380
                                            }
 
381
 
 
382
                                            if(the_attri)
 
383
                                            {
 
384
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
385
                                            }
 
386
                                            else
 
387
                                            {
 
388
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
389
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
390
                                            }
 
391
 
 
392
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
393
                                            {
 
394
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
 
395
                                                status = AXIS2_FAILURE;
 
396
                                            }
 
397
                                            else
 
398
                                            {
 
399
                                                /* after all, we found this is a empty string */
 
400
                                                status = adb_ncAttachVolumeType_set_userId(_ncAttachVolumeType, env,
 
401
                                                                   "");
 
402
                                            }
 
403
                                      }
 
404
                                      
 
405
                                 if(AXIS2_FAILURE ==  status)
 
406
                                 {
 
407
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
 
408
                                     if(element_qname)
 
409
                                     {
 
410
                                         axutil_qname_free(element_qname, env);
 
411
                                     }
 
412
                                     return AXIS2_FAILURE;
 
413
                                 }
 
414
                              }
 
415
                           
 
416
                  if(element_qname)
 
417
                  {
 
418
                     axutil_qname_free(element_qname, env);
 
419
                     element_qname = NULL;
 
420
                  }
 
421
                 
 
422
 
 
423
                     
 
424
                     /*
 
425
                      * building return element
 
426
                      */
 
427
                     
 
428
                     
 
429
                     
 
430
                                    /*
 
431
                                     * because elements are ordered this works fine
 
432
                                     */
 
433
                                  
 
434
                                   
 
435
                                   if(current_node != NULL && is_early_node_valid)
 
436
                                   {
 
437
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
438
                                       
 
439
                                       
 
440
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
441
                                        {
 
442
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
443
                                        }
 
444
                                        if(current_node != NULL)
 
445
                                        {
 
446
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
447
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
448
                                        }
 
449
                                       
 
450
                                   }
 
451
                                   is_early_node_valid = AXIS2_FALSE;
 
452
                                 
 
453
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
 
454
                                 
 
455
 
 
456
                           if ( 
 
457
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
458
                           {
 
459
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
460
                              {
 
461
                                is_early_node_valid = AXIS2_TRUE;
 
462
                              }
 
463
                              
 
464
                                 
 
465
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
466
                                      if(text_value != NULL)
 
467
                                      {
 
468
                                            if (!axutil_strcasecmp(text_value , "true"))
 
469
                                            {
 
470
                                                status = adb_ncAttachVolumeType_set_return(_ncAttachVolumeType, env,
 
471
                                                                 AXIS2_TRUE);
 
472
                                            }
 
473
                                            else
 
474
                                            {
 
475
                                                status = adb_ncAttachVolumeType_set_return(_ncAttachVolumeType, env,
 
476
                                                                      AXIS2_FALSE);
 
477
                                            }
 
478
                                      }
 
479
                                      
 
480
                                      else
 
481
                                      {
 
482
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
 
483
                                          status = AXIS2_FAILURE;
 
484
                                      }
 
485
                                      
 
486
                                 if(AXIS2_FAILURE ==  status)
 
487
                                 {
 
488
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
 
489
                                     if(element_qname)
 
490
                                     {
 
491
                                         axutil_qname_free(element_qname, env);
 
492
                                     }
 
493
                                     return AXIS2_FAILURE;
 
494
                                 }
 
495
                              }
 
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
                     
 
572
                     /*
 
573
                      * building statusMessage element
 
574
                      */
 
575
                     
 
576
                     
 
577
                     
 
578
                                    /*
 
579
                                     * because elements are ordered this works fine
 
580
                                     */
 
581
                                  
 
582
                                   
 
583
                                   if(current_node != NULL && is_early_node_valid)
 
584
                                   {
 
585
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
586
                                       
 
587
                                       
 
588
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
589
                                        {
 
590
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
591
                                        }
 
592
                                        if(current_node != NULL)
 
593
                                        {
 
594
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
595
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
596
                                        }
 
597
                                       
 
598
                                   }
 
599
                                   is_early_node_valid = AXIS2_FALSE;
 
600
                                 
 
601
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
 
602
                                 
 
603
 
 
604
                           if ( 
 
605
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
606
                           {
 
607
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
608
                              {
 
609
                                is_early_node_valid = AXIS2_TRUE;
 
610
                              }
 
611
                              
 
612
                                 
 
613
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
614
                                      if(text_value != NULL)
 
615
                                      {
 
616
                                            status = adb_ncAttachVolumeType_set_statusMessage(_ncAttachVolumeType, env,
 
617
                                                                   atoi(text_value));
 
618
                                      }
 
619
                                      
 
620
                                 if(AXIS2_FAILURE ==  status)
 
621
                                 {
 
622
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
 
623
                                     if(element_qname)
 
624
                                     {
 
625
                                         axutil_qname_free(element_qname, env);
 
626
                                     }
 
627
                                     return AXIS2_FAILURE;
 
628
                                 }
 
629
                              }
 
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
                     
 
765
                     /*
 
766
                      * building volumeId element
 
767
                      */
 
768
                     
 
769
                     
 
770
                     
 
771
                                    /*
 
772
                                     * because elements are ordered this works fine
 
773
                                     */
 
774
                                  
 
775
                                   
 
776
                                   if(current_node != NULL && is_early_node_valid)
 
777
                                   {
 
778
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
779
                                       
 
780
                                       
 
781
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
782
                                        {
 
783
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
784
                                        }
 
785
                                        if(current_node != NULL)
 
786
                                        {
 
787
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
788
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
789
                                        }
 
790
                                       
 
791
                                   }
 
792
                                   is_early_node_valid = AXIS2_FALSE;
 
793
                                 
 
794
                                 element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL);
 
795
                                 
 
796
 
 
797
                           if ( 
 
798
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
799
                           {
 
800
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
801
                              {
 
802
                                is_early_node_valid = AXIS2_TRUE;
 
803
                              }
 
804
                              
 
805
                                 
 
806
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
807
                                      if(text_value != NULL)
 
808
                                      {
 
809
                                            status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env,
 
810
                                                               text_value);
 
811
                                      }
 
812
                                      
 
813
                                      else
 
814
                                      {
 
815
                                            /*
 
816
                                             * axis2_qname_t *qname = NULL;
 
817
                                             * axiom_attribute_t *the_attri = NULL;
 
818
                                             * 
 
819
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
820
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
821
                                             */
 
822
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
823
 
 
824
                                            axiom_attribute_t *the_attri = NULL;
 
825
                                            axis2_char_t *attrib_text = NULL;
 
826
                                            axutil_hash_t *attribute_hash = NULL;
 
827
 
 
828
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
829
 
 
830
                                            attrib_text = NULL;
 
831
                                            if(attribute_hash)
 
832
                                            {
 
833
                                                 axutil_hash_index_t *hi;
 
834
                                                 void *val;
 
835
                                                 const void *key;
 
836
                                        
 
837
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
838
                                                 {
 
839
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
840
                                                     
 
841
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
842
                                                     {
 
843
                                                         the_attri = (axiom_attribute_t*)val;
 
844
                                                         break;
 
845
                                                     }
 
846
                                                 }
 
847
                                            }
 
848
 
 
849
                                            if(the_attri)
 
850
                                            {
 
851
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
852
                                            }
 
853
                                            else
 
854
                                            {
 
855
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
856
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
857
                                            }
 
858
 
 
859
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
860
                                            {
 
861
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId");
 
862
                                                status = AXIS2_FAILURE;
 
863
                                            }
 
864
                                            else
 
865
                                            {
 
866
                                                /* after all, we found this is a empty string */
 
867
                                                status = adb_ncAttachVolumeType_set_volumeId(_ncAttachVolumeType, env,
 
868
                                                                   "");
 
869
                                            }
 
870
                                      }
 
871
                                      
 
872
                                 if(AXIS2_FAILURE ==  status)
 
873
                                 {
 
874
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId ");
 
875
                                     if(element_qname)
 
876
                                     {
 
877
                                         axutil_qname_free(element_qname, env);
 
878
                                     }
 
879
                                     return AXIS2_FAILURE;
 
880
                                 }
 
881
                              }
 
882
                           
 
883
                  if(element_qname)
 
884
                  {
 
885
                     axutil_qname_free(element_qname, env);
 
886
                     element_qname = NULL;
 
887
                  }
 
888
                 
 
889
 
 
890
                     
 
891
                     /*
 
892
                      * building remoteDev element
 
893
                      */
 
894
                     
 
895
                     
 
896
                     
 
897
                                    /*
 
898
                                     * because elements are ordered this works fine
 
899
                                     */
 
900
                                  
 
901
                                   
 
902
                                   if(current_node != NULL && is_early_node_valid)
 
903
                                   {
 
904
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
905
                                       
 
906
                                       
 
907
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
908
                                        {
 
909
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
910
                                        }
 
911
                                        if(current_node != NULL)
 
912
                                        {
 
913
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
914
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
915
                                        }
 
916
                                       
 
917
                                   }
 
918
                                   is_early_node_valid = AXIS2_FALSE;
 
919
                                 
 
920
                                 element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL);
 
921
                                 
 
922
 
 
923
                           if ( 
 
924
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
925
                           {
 
926
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
927
                              {
 
928
                                is_early_node_valid = AXIS2_TRUE;
 
929
                              }
 
930
                              
 
931
                                 
 
932
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
933
                                      if(text_value != NULL)
 
934
                                      {
 
935
                                            status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env,
 
936
                                                               text_value);
 
937
                                      }
 
938
                                      
 
939
                                      else
 
940
                                      {
 
941
                                            /*
 
942
                                             * axis2_qname_t *qname = NULL;
 
943
                                             * axiom_attribute_t *the_attri = NULL;
 
944
                                             * 
 
945
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
946
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
947
                                             */
 
948
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
949
 
 
950
                                            axiom_attribute_t *the_attri = NULL;
 
951
                                            axis2_char_t *attrib_text = NULL;
 
952
                                            axutil_hash_t *attribute_hash = NULL;
 
953
 
 
954
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
955
 
 
956
                                            attrib_text = NULL;
 
957
                                            if(attribute_hash)
 
958
                                            {
 
959
                                                 axutil_hash_index_t *hi;
 
960
                                                 void *val;
 
961
                                                 const void *key;
 
962
                                        
 
963
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
964
                                                 {
 
965
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
966
                                                     
 
967
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
968
                                                     {
 
969
                                                         the_attri = (axiom_attribute_t*)val;
 
970
                                                         break;
 
971
                                                     }
 
972
                                                 }
 
973
                                            }
 
974
 
 
975
                                            if(the_attri)
 
976
                                            {
 
977
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
978
                                            }
 
979
                                            else
 
980
                                            {
 
981
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
982
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
983
                                            }
 
984
 
 
985
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
986
                                            {
 
987
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev");
 
988
                                                status = AXIS2_FAILURE;
 
989
                                            }
 
990
                                            else
 
991
                                            {
 
992
                                                /* after all, we found this is a empty string */
 
993
                                                status = adb_ncAttachVolumeType_set_remoteDev(_ncAttachVolumeType, env,
 
994
                                                                   "");
 
995
                                            }
 
996
                                      }
 
997
                                      
 
998
                                 if(AXIS2_FAILURE ==  status)
 
999
                                 {
 
1000
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev ");
 
1001
                                     if(element_qname)
 
1002
                                     {
 
1003
                                         axutil_qname_free(element_qname, env);
 
1004
                                     }
 
1005
                                     return AXIS2_FAILURE;
 
1006
                                 }
 
1007
                              }
 
1008
                           
 
1009
                  if(element_qname)
 
1010
                  {
 
1011
                     axutil_qname_free(element_qname, env);
 
1012
                     element_qname = NULL;
 
1013
                  }
 
1014
                 
 
1015
 
 
1016
                     
 
1017
                     /*
 
1018
                      * building localDev element
 
1019
                      */
 
1020
                     
 
1021
                     
 
1022
                     
 
1023
                                    /*
 
1024
                                     * because elements are ordered this works fine
 
1025
                                     */
 
1026
                                  
 
1027
                                   
 
1028
                                   if(current_node != NULL && is_early_node_valid)
 
1029
                                   {
 
1030
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
1031
                                       
 
1032
                                       
 
1033
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
1034
                                        {
 
1035
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
1036
                                        }
 
1037
                                        if(current_node != NULL)
 
1038
                                        {
 
1039
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
1040
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
1041
                                        }
 
1042
                                       
 
1043
                                   }
 
1044
                                   is_early_node_valid = AXIS2_FALSE;
 
1045
                                 
 
1046
                                 element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL);
 
1047
                                 
 
1048
 
 
1049
                           if ( 
 
1050
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
1051
                           {
 
1052
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
1053
                              {
 
1054
                                is_early_node_valid = AXIS2_TRUE;
 
1055
                              }
 
1056
                              
 
1057
                                 
 
1058
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
1059
                                      if(text_value != NULL)
 
1060
                                      {
 
1061
                                            status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env,
 
1062
                                                               text_value);
 
1063
                                      }
 
1064
                                      
 
1065
                                      else
 
1066
                                      {
 
1067
                                            /*
 
1068
                                             * axis2_qname_t *qname = NULL;
 
1069
                                             * axiom_attribute_t *the_attri = NULL;
 
1070
                                             * 
 
1071
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
1072
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
1073
                                             */
 
1074
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
1075
 
 
1076
                                            axiom_attribute_t *the_attri = NULL;
 
1077
                                            axis2_char_t *attrib_text = NULL;
 
1078
                                            axutil_hash_t *attribute_hash = NULL;
 
1079
 
 
1080
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
1081
 
 
1082
                                            attrib_text = NULL;
 
1083
                                            if(attribute_hash)
 
1084
                                            {
 
1085
                                                 axutil_hash_index_t *hi;
 
1086
                                                 void *val;
 
1087
                                                 const void *key;
 
1088
                                        
 
1089
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
1090
                                                 {
 
1091
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
1092
                                                     
 
1093
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
1094
                                                     {
 
1095
                                                         the_attri = (axiom_attribute_t*)val;
 
1096
                                                         break;
 
1097
                                                     }
 
1098
                                                 }
 
1099
                                            }
 
1100
 
 
1101
                                            if(the_attri)
 
1102
                                            {
 
1103
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
1104
                                            }
 
1105
                                            else
 
1106
                                            {
 
1107
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
1108
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
1109
                                            }
 
1110
 
 
1111
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
1112
                                            {
 
1113
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev");
 
1114
                                                status = AXIS2_FAILURE;
 
1115
                                            }
 
1116
                                            else
 
1117
                                            {
 
1118
                                                /* after all, we found this is a empty string */
 
1119
                                                status = adb_ncAttachVolumeType_set_localDev(_ncAttachVolumeType, env,
 
1120
                                                                   "");
 
1121
                                            }
 
1122
                                      }
 
1123
                                      
 
1124
                                 if(AXIS2_FAILURE ==  status)
 
1125
                                 {
 
1126
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev ");
 
1127
                                     if(element_qname)
 
1128
                                     {
 
1129
                                         axutil_qname_free(element_qname, env);
 
1130
                                     }
 
1131
                                     return AXIS2_FAILURE;
 
1132
                                 }
 
1133
                              }
 
1134
                           
 
1135
                  if(element_qname)
 
1136
                  {
 
1137
                     axutil_qname_free(element_qname, env);
 
1138
                     element_qname = NULL;
 
1139
                  }
 
1140
                 
 
1141
          return status;
 
1142
       }
 
1143
 
 
1144
          axis2_bool_t AXIS2_CALL
 
1145
          adb_ncAttachVolumeType_is_particle()
 
1146
          {
 
1147
            
 
1148
                 return AXIS2_FALSE;
 
1149
              
 
1150
          }
 
1151
 
 
1152
 
 
1153
          void AXIS2_CALL
 
1154
          adb_ncAttachVolumeType_declare_parent_namespaces(
 
1155
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
1156
                    const axutil_env_t *env, axiom_element_t *parent_element,
 
1157
                    axutil_hash_t *namespaces, int *next_ns_index)
 
1158
          {
 
1159
            
 
1160
                  /* Here this is an empty function, Nothing to declare */
 
1161
                 
 
1162
          }
 
1163
 
 
1164
        
 
1165
        
 
1166
        axiom_node_t* AXIS2_CALL
 
1167
        adb_ncAttachVolumeType_serialize(
 
1168
                adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
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)
 
1170
        {
 
1171
            
 
1172
            
 
1173
             axis2_char_t *string_to_stream;
 
1174
            
 
1175
         
 
1176
         axiom_node_t *current_node = NULL;
 
1177
         int tag_closed = 0;
 
1178
 
 
1179
         
 
1180
         
 
1181
                axiom_namespace_t *ns1 = NULL;
 
1182
 
 
1183
                axis2_char_t *qname_uri = NULL;
 
1184
                axis2_char_t *qname_prefix = NULL;
 
1185
                axis2_char_t *p_prefix = NULL;
 
1186
                axis2_bool_t ns_already_defined;
 
1187
            
 
1188
                    axis2_char_t *text_value_1;
 
1189
                    axis2_char_t *text_value_1_temp;
 
1190
                    
 
1191
                    axis2_char_t *text_value_2;
 
1192
                    axis2_char_t *text_value_2_temp;
 
1193
                    
 
1194
                    axis2_char_t text_value_3[64];
 
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
                    
 
1201
                    axis2_char_t *text_value_6;
 
1202
                    axis2_char_t *text_value_6_temp;
 
1203
                    
 
1204
                    axis2_char_t *text_value_7;
 
1205
                    axis2_char_t *text_value_7_temp;
 
1206
                    
 
1207
                    axis2_char_t *text_value_8;
 
1208
                    axis2_char_t *text_value_8_temp;
 
1209
                    
 
1210
                    axis2_char_t *text_value_9;
 
1211
                    axis2_char_t *text_value_9_temp;
 
1212
                    
 
1213
               axis2_char_t *start_input_str = NULL;
 
1214
               axis2_char_t *end_input_str = NULL;
 
1215
               unsigned int start_input_str_len = 0;
 
1216
               unsigned int end_input_str_len = 0;
 
1217
            
 
1218
            
 
1219
               axiom_data_source_t *data_source = NULL;
 
1220
               axutil_stream_t *stream = NULL;
 
1221
 
 
1222
            
 
1223
 
 
1224
            AXIS2_ENV_CHECK(env, NULL);
 
1225
            AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
1226
            
 
1227
            
 
1228
                    current_node = parent;
 
1229
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
 
1230
                    if (!data_source)
 
1231
                        return NULL;
 
1232
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
 
1233
                    if (!stream)
 
1234
                        return NULL;
 
1235
                  
 
1236
            if(!parent_tag_closed)
 
1237
            {
 
1238
            
 
1239
              string_to_stream = ">"; 
 
1240
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
 
1241
              tag_closed = 1;
 
1242
            
 
1243
            }
 
1244
            
 
1245
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1246
                       {
 
1247
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1248
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1249
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1250
                           
 
1251
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1252
                                            "http://eucalyptus.ucsb.edu/",
 
1253
                                            p_prefix));
 
1254
                       }
 
1255
                      
 
1256
 
 
1257
                   if (!_ncAttachVolumeType->is_valid_correlationId)
 
1258
                   {
 
1259
                      
 
1260
                           /* no need to complain for minoccurs=0 element */
 
1261
                            
 
1262
                          
 
1263
                   }
 
1264
                   else
 
1265
                   {
 
1266
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1267
                                 (4 + axutil_strlen(p_prefix) + 
 
1268
                                  axutil_strlen("correlationId"))); 
 
1269
                                 
 
1270
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1271
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1272
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
 
1273
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1274
                                  
 
1275
                     
 
1276
 
 
1277
                   
 
1278
                   
 
1279
                     
 
1280
                     /*
 
1281
                      * parsing correlationId element
 
1282
                      */
 
1283
 
 
1284
                    
 
1285
                    
 
1286
                            sprintf(start_input_str, "<%s%scorrelationId>",
 
1287
                                 p_prefix?p_prefix:"",
 
1288
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1289
                            
 
1290
                        start_input_str_len = axutil_strlen(start_input_str);
 
1291
                        sprintf(end_input_str, "</%s%scorrelationId>",
 
1292
                                 p_prefix?p_prefix:"",
 
1293
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1294
                        end_input_str_len = axutil_strlen(end_input_str);
 
1295
                    
 
1296
                           text_value_1 = _ncAttachVolumeType->property_correlationId;
 
1297
                           
 
1298
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1299
                           
 
1300
                            
 
1301
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
 
1302
                           if (text_value_1_temp)
 
1303
                           {
 
1304
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
 
1305
                               AXIS2_FREE(env->allocator, text_value_1_temp);
 
1306
                           }
 
1307
                           else
 
1308
                           {
 
1309
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
 
1310
                           }
 
1311
                           
 
1312
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1313
                           
 
1314
                     
 
1315
                     AXIS2_FREE(env->allocator,start_input_str);
 
1316
                     AXIS2_FREE(env->allocator,end_input_str);
 
1317
                 } 
 
1318
 
 
1319
                 
 
1320
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1321
                       {
 
1322
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1323
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1324
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1325
                           
 
1326
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1327
                                            "http://eucalyptus.ucsb.edu/",
 
1328
                                            p_prefix));
 
1329
                       }
 
1330
                      
 
1331
 
 
1332
                   if (!_ncAttachVolumeType->is_valid_userId)
 
1333
                   {
 
1334
                      
 
1335
                           /* no need to complain for minoccurs=0 element */
 
1336
                            
 
1337
                          
 
1338
                   }
 
1339
                   else
 
1340
                   {
 
1341
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1342
                                 (4 + axutil_strlen(p_prefix) + 
 
1343
                                  axutil_strlen("userId"))); 
 
1344
                                 
 
1345
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1346
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1347
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
 
1348
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1349
                                  
 
1350
                     
 
1351
 
 
1352
                   
 
1353
                   
 
1354
                     
 
1355
                     /*
 
1356
                      * parsing userId element
 
1357
                      */
 
1358
 
 
1359
                    
 
1360
                    
 
1361
                            sprintf(start_input_str, "<%s%suserId>",
 
1362
                                 p_prefix?p_prefix:"",
 
1363
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1364
                            
 
1365
                        start_input_str_len = axutil_strlen(start_input_str);
 
1366
                        sprintf(end_input_str, "</%s%suserId>",
 
1367
                                 p_prefix?p_prefix:"",
 
1368
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1369
                        end_input_str_len = axutil_strlen(end_input_str);
 
1370
                    
 
1371
                           text_value_2 = _ncAttachVolumeType->property_userId;
 
1372
                           
 
1373
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1374
                           
 
1375
                            
 
1376
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
 
1377
                           if (text_value_2_temp)
 
1378
                           {
 
1379
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
 
1380
                               AXIS2_FREE(env->allocator, text_value_2_temp);
 
1381
                           }
 
1382
                           else
 
1383
                           {
 
1384
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
 
1385
                           }
 
1386
                           
 
1387
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1388
                           
 
1389
                     
 
1390
                     AXIS2_FREE(env->allocator,start_input_str);
 
1391
                     AXIS2_FREE(env->allocator,end_input_str);
 
1392
                 } 
 
1393
 
 
1394
                 
 
1395
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1396
                       {
 
1397
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1398
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1399
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1400
                           
 
1401
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1402
                                            "http://eucalyptus.ucsb.edu/",
 
1403
                                            p_prefix));
 
1404
                       }
 
1405
                      
 
1406
 
 
1407
                   if (!_ncAttachVolumeType->is_valid_return)
 
1408
                   {
 
1409
                      
 
1410
                           /* no need to complain for minoccurs=0 element */
 
1411
                            
 
1412
                          
 
1413
                   }
 
1414
                   else
 
1415
                   {
 
1416
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1417
                                 (4 + axutil_strlen(p_prefix) + 
 
1418
                                  axutil_strlen("return"))); 
 
1419
                                 
 
1420
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1421
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1422
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
 
1423
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1424
                                  
 
1425
                     
 
1426
 
 
1427
                   
 
1428
                   
 
1429
                     
 
1430
                     /*
 
1431
                      * parsing return element
 
1432
                      */
 
1433
 
 
1434
                    
 
1435
                    
 
1436
                            sprintf(start_input_str, "<%s%sreturn>",
 
1437
                                 p_prefix?p_prefix:"",
 
1438
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1439
                            
 
1440
                        start_input_str_len = axutil_strlen(start_input_str);
 
1441
                        sprintf(end_input_str, "</%s%sreturn>",
 
1442
                                 p_prefix?p_prefix:"",
 
1443
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1444
                        end_input_str_len = axutil_strlen(end_input_str);
 
1445
                    
 
1446
                           strcpy(text_value_3, (_ncAttachVolumeType->property_return)?"true":"false");
 
1447
                           
 
1448
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1449
                           
 
1450
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
 
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
                      
 
1546
 
 
1547
                   if (!_ncAttachVolumeType->is_valid_statusMessage)
 
1548
                   {
 
1549
                      
 
1550
                           /* no need to complain for minoccurs=0 element */
 
1551
                            
 
1552
                          
 
1553
                   }
 
1554
                   else
 
1555
                   {
 
1556
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1557
                                 (4 + axutil_strlen(p_prefix) + 
 
1558
                                  axutil_strlen("statusMessage"))); 
 
1559
                                 
 
1560
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1561
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1562
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
 
1563
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1564
                                  
 
1565
                     
 
1566
 
 
1567
                   
 
1568
                   
 
1569
                     
 
1570
                     /*
 
1571
                      * parsing statusMessage element
 
1572
                      */
 
1573
 
 
1574
                    
 
1575
                    
 
1576
                            sprintf(start_input_str, "<%s%sstatusMessage>",
 
1577
                                 p_prefix?p_prefix:"",
 
1578
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1579
                            
 
1580
                        start_input_str_len = axutil_strlen(start_input_str);
 
1581
                        sprintf(end_input_str, "</%s%sstatusMessage>",
 
1582
                                 p_prefix?p_prefix:"",
 
1583
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1584
                        end_input_str_len = axutil_strlen(end_input_str);
 
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
                      
 
1611
 
 
1612
                   if (!_ncAttachVolumeType->is_valid_instanceId)
 
1613
                   {
 
1614
                      
 
1615
                           /* no need to complain for minoccurs=0 element */
 
1616
                            
 
1617
                          
 
1618
                   }
 
1619
                   else
 
1620
                   {
 
1621
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1622
                                 (4 + axutil_strlen(p_prefix) + 
 
1623
                                  axutil_strlen("instanceId"))); 
 
1624
                                 
 
1625
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1626
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1627
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
 
1628
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1629
                                  
 
1630
                     
 
1631
 
 
1632
                   
 
1633
                   
 
1634
                     
 
1635
                     /*
 
1636
                      * parsing instanceId element
 
1637
                      */
 
1638
 
 
1639
                    
 
1640
                    
 
1641
                            sprintf(start_input_str, "<%s%sinstanceId>",
 
1642
                                 p_prefix?p_prefix:"",
 
1643
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1644
                            
 
1645
                        start_input_str_len = axutil_strlen(start_input_str);
 
1646
                        sprintf(end_input_str, "</%s%sinstanceId>",
 
1647
                                 p_prefix?p_prefix:"",
 
1648
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1649
                        end_input_str_len = axutil_strlen(end_input_str);
 
1650
                    
 
1651
                           text_value_6 = _ncAttachVolumeType->property_instanceId;
 
1652
                           
 
1653
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1654
                           
 
1655
                            
 
1656
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
 
1657
                           if (text_value_6_temp)
 
1658
                           {
 
1659
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
 
1660
                               AXIS2_FREE(env->allocator, text_value_6_temp);
 
1661
                           }
 
1662
                           else
 
1663
                           {
 
1664
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
 
1665
                           }
 
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
                      
 
1761
 
 
1762
                   if (!_ncAttachVolumeType->is_valid_remoteDev)
 
1763
                   {
 
1764
                      
 
1765
                           /* no need to complain for minoccurs=0 element */
 
1766
                            
 
1767
                          
 
1768
                   }
 
1769
                   else
 
1770
                   {
 
1771
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1772
                                 (4 + axutil_strlen(p_prefix) + 
 
1773
                                  axutil_strlen("remoteDev"))); 
 
1774
                                 
 
1775
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1776
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1777
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev")));
 
1778
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1779
                                  
 
1780
                     
 
1781
 
 
1782
                   
 
1783
                   
 
1784
                     
 
1785
                     /*
 
1786
                      * parsing remoteDev element
 
1787
                      */
 
1788
 
 
1789
                    
 
1790
                    
 
1791
                            sprintf(start_input_str, "<%s%sremoteDev>",
 
1792
                                 p_prefix?p_prefix:"",
 
1793
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1794
                            
 
1795
                        start_input_str_len = axutil_strlen(start_input_str);
 
1796
                        sprintf(end_input_str, "</%s%sremoteDev>",
 
1797
                                 p_prefix?p_prefix:"",
 
1798
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1799
                        end_input_str_len = axutil_strlen(end_input_str);
 
1800
                    
 
1801
                           text_value_8 = _ncAttachVolumeType->property_remoteDev;
 
1802
                           
 
1803
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1804
                           
 
1805
                            
 
1806
                           text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
 
1807
                           if (text_value_8_temp)
 
1808
                           {
 
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);
 
1811
                           }
 
1812
                           else
 
1813
                           {
 
1814
                               axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
 
1815
                           }
 
1816
                           
 
1817
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1818
                           
 
1819
                     
 
1820
                     AXIS2_FREE(env->allocator,start_input_str);
 
1821
                     AXIS2_FREE(env->allocator,end_input_str);
 
1822
                 } 
 
1823
 
 
1824
                 
 
1825
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1826
                       {
 
1827
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1828
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1829
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1830
                           
 
1831
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1832
                                            "http://eucalyptus.ucsb.edu/",
 
1833
                                            p_prefix));
 
1834
                       }
 
1835
                      
 
1836
 
 
1837
                   if (!_ncAttachVolumeType->is_valid_localDev)
 
1838
                   {
 
1839
                      
 
1840
                           /* no need to complain for minoccurs=0 element */
 
1841
                            
 
1842
                          
 
1843
                   }
 
1844
                   else
 
1845
                   {
 
1846
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1847
                                 (4 + axutil_strlen(p_prefix) + 
 
1848
                                  axutil_strlen("localDev"))); 
 
1849
                                 
 
1850
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1851
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1852
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev")));
 
1853
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1854
                                  
 
1855
                     
 
1856
 
 
1857
                   
 
1858
                   
 
1859
                     
 
1860
                     /*
 
1861
                      * parsing localDev element
 
1862
                      */
 
1863
 
 
1864
                    
 
1865
                    
 
1866
                            sprintf(start_input_str, "<%s%slocalDev>",
 
1867
                                 p_prefix?p_prefix:"",
 
1868
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1869
                            
 
1870
                        start_input_str_len = axutil_strlen(start_input_str);
 
1871
                        sprintf(end_input_str, "</%s%slocalDev>",
 
1872
                                 p_prefix?p_prefix:"",
 
1873
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1874
                        end_input_str_len = axutil_strlen(end_input_str);
 
1875
                    
 
1876
                           text_value_9 = _ncAttachVolumeType->property_localDev;
 
1877
                           
 
1878
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1879
                           
 
1880
                            
 
1881
                           text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
 
1882
                           if (text_value_9_temp)
 
1883
                           {
 
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);
 
1886
                           }
 
1887
                           else
 
1888
                           {
 
1889
                               axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
 
1890
                           }
 
1891
                           
 
1892
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1893
                           
 
1894
                     
 
1895
                     AXIS2_FREE(env->allocator,start_input_str);
 
1896
                     AXIS2_FREE(env->allocator,end_input_str);
 
1897
                 } 
 
1898
 
 
1899
                 
 
1900
 
 
1901
            return parent;
 
1902
        }
 
1903
 
 
1904
 
 
1905
        
 
1906
 
 
1907
            /**
 
1908
             * getter for correlationId.
 
1909
             */
 
1910
            axis2_char_t* AXIS2_CALL
 
1911
            adb_ncAttachVolumeType_get_correlationId(
 
1912
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
1913
                    const axutil_env_t *env)
 
1914
             {
 
1915
                
 
1916
                    AXIS2_ENV_CHECK(env, NULL);
 
1917
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
1918
                  
 
1919
 
 
1920
                return _ncAttachVolumeType->property_correlationId;
 
1921
             }
 
1922
 
 
1923
            /**
 
1924
             * setter for correlationId
 
1925
             */
 
1926
            axis2_status_t AXIS2_CALL
 
1927
            adb_ncAttachVolumeType_set_correlationId(
 
1928
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
1929
                    const axutil_env_t *env,
 
1930
                    const axis2_char_t*  arg_correlationId)
 
1931
             {
 
1932
                
 
1933
 
 
1934
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1935
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
1936
                
 
1937
                if(_ncAttachVolumeType->is_valid_correlationId &&
 
1938
                        arg_correlationId == _ncAttachVolumeType->property_correlationId)
 
1939
                {
 
1940
                    
 
1941
                    return AXIS2_SUCCESS; 
 
1942
                }
 
1943
 
 
1944
                adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env);
 
1945
 
 
1946
                
 
1947
                if(NULL == arg_correlationId)
 
1948
                {
 
1949
                    /* We are already done */
 
1950
                    return AXIS2_SUCCESS;
 
1951
                }
 
1952
                _ncAttachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
 
1953
                        if(NULL == _ncAttachVolumeType->property_correlationId)
 
1954
                        {
 
1955
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
 
1956
                            return AXIS2_FAILURE;
 
1957
                        }
 
1958
                        _ncAttachVolumeType->is_valid_correlationId = AXIS2_TRUE;
 
1959
                    
 
1960
                return AXIS2_SUCCESS;
 
1961
             }
 
1962
 
 
1963
             
 
1964
 
 
1965
           /**
 
1966
            * resetter for correlationId
 
1967
            */
 
1968
           axis2_status_t AXIS2_CALL
 
1969
           adb_ncAttachVolumeType_reset_correlationId(
 
1970
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
1971
                   const axutil_env_t *env)
 
1972
           {
 
1973
               int i = 0;
 
1974
               int count = 0;
 
1975
               void *element = NULL;
 
1976
 
 
1977
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1978
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
1979
               
 
1980
 
 
1981
               
 
1982
            
 
1983
                
 
1984
                if(_ncAttachVolumeType->property_correlationId != NULL)
 
1985
                {
 
1986
                   
 
1987
                   
 
1988
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_correlationId);
 
1989
                     _ncAttachVolumeType->property_correlationId = NULL;
 
1990
                }
 
1991
            
 
1992
                
 
1993
                
 
1994
                _ncAttachVolumeType->is_valid_correlationId = AXIS2_FALSE; 
 
1995
               return AXIS2_SUCCESS;
 
1996
           }
 
1997
 
 
1998
           /**
 
1999
            * Check whether correlationId is nill
 
2000
            */
 
2001
           axis2_bool_t AXIS2_CALL
 
2002
           adb_ncAttachVolumeType_is_correlationId_nil(
 
2003
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2004
                   const axutil_env_t *env)
 
2005
           {
 
2006
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2007
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2008
               
 
2009
               return !_ncAttachVolumeType->is_valid_correlationId;
 
2010
           }
 
2011
 
 
2012
           /**
 
2013
            * Set correlationId to nill (currently the same as reset)
 
2014
            */
 
2015
           axis2_status_t AXIS2_CALL
 
2016
           adb_ncAttachVolumeType_set_correlationId_nil(
 
2017
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2018
                   const axutil_env_t *env)
 
2019
           {
 
2020
               return adb_ncAttachVolumeType_reset_correlationId(_ncAttachVolumeType, env);
 
2021
           }
 
2022
 
 
2023
           
 
2024
 
 
2025
            /**
 
2026
             * getter for userId.
 
2027
             */
 
2028
            axis2_char_t* AXIS2_CALL
 
2029
            adb_ncAttachVolumeType_get_userId(
 
2030
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2031
                    const axutil_env_t *env)
 
2032
             {
 
2033
                
 
2034
                    AXIS2_ENV_CHECK(env, NULL);
 
2035
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
2036
                  
 
2037
 
 
2038
                return _ncAttachVolumeType->property_userId;
 
2039
             }
 
2040
 
 
2041
            /**
 
2042
             * setter for userId
 
2043
             */
 
2044
            axis2_status_t AXIS2_CALL
 
2045
            adb_ncAttachVolumeType_set_userId(
 
2046
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2047
                    const axutil_env_t *env,
 
2048
                    const axis2_char_t*  arg_userId)
 
2049
             {
 
2050
                
 
2051
 
 
2052
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2053
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2054
                
 
2055
                if(_ncAttachVolumeType->is_valid_userId &&
 
2056
                        arg_userId == _ncAttachVolumeType->property_userId)
 
2057
                {
 
2058
                    
 
2059
                    return AXIS2_SUCCESS; 
 
2060
                }
 
2061
 
 
2062
                adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env);
 
2063
 
 
2064
                
 
2065
                if(NULL == arg_userId)
 
2066
                {
 
2067
                    /* We are already done */
 
2068
                    return AXIS2_SUCCESS;
 
2069
                }
 
2070
                _ncAttachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
 
2071
                        if(NULL == _ncAttachVolumeType->property_userId)
 
2072
                        {
 
2073
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
 
2074
                            return AXIS2_FAILURE;
 
2075
                        }
 
2076
                        _ncAttachVolumeType->is_valid_userId = AXIS2_TRUE;
 
2077
                    
 
2078
                return AXIS2_SUCCESS;
 
2079
             }
 
2080
 
 
2081
             
 
2082
 
 
2083
           /**
 
2084
            * resetter for userId
 
2085
            */
 
2086
           axis2_status_t AXIS2_CALL
 
2087
           adb_ncAttachVolumeType_reset_userId(
 
2088
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2089
                   const axutil_env_t *env)
 
2090
           {
 
2091
               int i = 0;
 
2092
               int count = 0;
 
2093
               void *element = NULL;
 
2094
 
 
2095
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2096
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2097
               
 
2098
 
 
2099
               
 
2100
            
 
2101
                
 
2102
                if(_ncAttachVolumeType->property_userId != NULL)
 
2103
                {
 
2104
                   
 
2105
                   
 
2106
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_userId);
 
2107
                     _ncAttachVolumeType->property_userId = NULL;
 
2108
                }
 
2109
            
 
2110
                
 
2111
                
 
2112
                _ncAttachVolumeType->is_valid_userId = AXIS2_FALSE; 
 
2113
               return AXIS2_SUCCESS;
 
2114
           }
 
2115
 
 
2116
           /**
 
2117
            * Check whether userId is nill
 
2118
            */
 
2119
           axis2_bool_t AXIS2_CALL
 
2120
           adb_ncAttachVolumeType_is_userId_nil(
 
2121
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2122
                   const axutil_env_t *env)
 
2123
           {
 
2124
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2125
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2126
               
 
2127
               return !_ncAttachVolumeType->is_valid_userId;
 
2128
           }
 
2129
 
 
2130
           /**
 
2131
            * Set userId to nill (currently the same as reset)
 
2132
            */
 
2133
           axis2_status_t AXIS2_CALL
 
2134
           adb_ncAttachVolumeType_set_userId_nil(
 
2135
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2136
                   const axutil_env_t *env)
 
2137
           {
 
2138
               return adb_ncAttachVolumeType_reset_userId(_ncAttachVolumeType, env);
 
2139
           }
 
2140
 
 
2141
           
 
2142
 
 
2143
            /**
 
2144
             * getter for return.
 
2145
             */
 
2146
            axis2_bool_t AXIS2_CALL
 
2147
            adb_ncAttachVolumeType_get_return(
 
2148
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2149
                    const axutil_env_t *env)
 
2150
             {
 
2151
                
 
2152
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
 
2153
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (axis2_bool_t)0);
 
2154
                  
 
2155
 
 
2156
                return _ncAttachVolumeType->property_return;
 
2157
             }
 
2158
 
 
2159
            /**
 
2160
             * setter for return
 
2161
             */
 
2162
            axis2_status_t AXIS2_CALL
 
2163
            adb_ncAttachVolumeType_set_return(
 
2164
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2165
                    const axutil_env_t *env,
 
2166
                    axis2_bool_t  arg_return)
 
2167
             {
 
2168
                
 
2169
 
 
2170
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2171
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2172
                
 
2173
                if(_ncAttachVolumeType->is_valid_return &&
 
2174
                        arg_return == _ncAttachVolumeType->property_return)
 
2175
                {
 
2176
                    
 
2177
                    return AXIS2_SUCCESS; 
 
2178
                }
 
2179
 
 
2180
                adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env);
 
2181
 
 
2182
                _ncAttachVolumeType->property_return = arg_return;
 
2183
                        _ncAttachVolumeType->is_valid_return = AXIS2_TRUE;
 
2184
                    
 
2185
                return AXIS2_SUCCESS;
 
2186
             }
 
2187
 
 
2188
             
 
2189
 
 
2190
           /**
 
2191
            * resetter for return
 
2192
            */
 
2193
           axis2_status_t AXIS2_CALL
 
2194
           adb_ncAttachVolumeType_reset_return(
 
2195
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2196
                   const axutil_env_t *env)
 
2197
           {
 
2198
               int i = 0;
 
2199
               int count = 0;
 
2200
               void *element = NULL;
 
2201
 
 
2202
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2203
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2204
               
 
2205
 
 
2206
               _ncAttachVolumeType->is_valid_return = AXIS2_FALSE; 
 
2207
               return AXIS2_SUCCESS;
 
2208
           }
 
2209
 
 
2210
           /**
 
2211
            * Check whether return is nill
 
2212
            */
 
2213
           axis2_bool_t AXIS2_CALL
 
2214
           adb_ncAttachVolumeType_is_return_nil(
 
2215
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2216
                   const axutil_env_t *env)
 
2217
           {
 
2218
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2219
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2220
               
 
2221
               return !_ncAttachVolumeType->is_valid_return;
 
2222
           }
 
2223
 
 
2224
           /**
 
2225
            * Set return to nill (currently the same as reset)
 
2226
            */
 
2227
           axis2_status_t AXIS2_CALL
 
2228
           adb_ncAttachVolumeType_set_return_nil(
 
2229
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2230
                   const axutil_env_t *env)
 
2231
           {
 
2232
               return adb_ncAttachVolumeType_reset_return(_ncAttachVolumeType, env);
 
2233
           }
 
2234
 
 
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
           
 
2354
 
 
2355
            /**
 
2356
             * getter for statusMessage.
 
2357
             */
 
2358
            int AXIS2_CALL
 
2359
            adb_ncAttachVolumeType_get_statusMessage(
 
2360
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2361
                    const axutil_env_t *env)
 
2362
             {
 
2363
                
 
2364
                    AXIS2_ENV_CHECK(env, (int)0);
 
2365
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, (int)0);
 
2366
                  
 
2367
 
 
2368
                return _ncAttachVolumeType->property_statusMessage;
 
2369
             }
 
2370
 
 
2371
            /**
 
2372
             * setter for statusMessage
 
2373
             */
 
2374
            axis2_status_t AXIS2_CALL
 
2375
            adb_ncAttachVolumeType_set_statusMessage(
 
2376
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2377
                    const axutil_env_t *env,
 
2378
                    const int  arg_statusMessage)
 
2379
             {
 
2380
                
 
2381
 
 
2382
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2383
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2384
                
 
2385
                if(_ncAttachVolumeType->is_valid_statusMessage &&
 
2386
                        arg_statusMessage == _ncAttachVolumeType->property_statusMessage)
 
2387
                {
 
2388
                    
 
2389
                    return AXIS2_SUCCESS; 
 
2390
                }
 
2391
 
 
2392
                adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env);
 
2393
 
 
2394
                _ncAttachVolumeType->property_statusMessage = arg_statusMessage;
 
2395
                        _ncAttachVolumeType->is_valid_statusMessage = AXIS2_TRUE;
 
2396
                    
 
2397
                return AXIS2_SUCCESS;
 
2398
             }
 
2399
 
 
2400
             
 
2401
 
 
2402
           /**
 
2403
            * resetter for statusMessage
 
2404
            */
 
2405
           axis2_status_t AXIS2_CALL
 
2406
           adb_ncAttachVolumeType_reset_statusMessage(
 
2407
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2408
                   const axutil_env_t *env)
 
2409
           {
 
2410
               int i = 0;
 
2411
               int count = 0;
 
2412
               void *element = NULL;
 
2413
 
 
2414
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2415
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2416
               
 
2417
 
 
2418
               _ncAttachVolumeType->is_valid_statusMessage = AXIS2_FALSE; 
 
2419
               return AXIS2_SUCCESS;
 
2420
           }
 
2421
 
 
2422
           /**
 
2423
            * Check whether statusMessage is nill
 
2424
            */
 
2425
           axis2_bool_t AXIS2_CALL
 
2426
           adb_ncAttachVolumeType_is_statusMessage_nil(
 
2427
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2428
                   const axutil_env_t *env)
 
2429
           {
 
2430
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2431
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2432
               
 
2433
               return !_ncAttachVolumeType->is_valid_statusMessage;
 
2434
           }
 
2435
 
 
2436
           /**
 
2437
            * Set statusMessage to nill (currently the same as reset)
 
2438
            */
 
2439
           axis2_status_t AXIS2_CALL
 
2440
           adb_ncAttachVolumeType_set_statusMessage_nil(
 
2441
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2442
                   const axutil_env_t *env)
 
2443
           {
 
2444
               return adb_ncAttachVolumeType_reset_statusMessage(_ncAttachVolumeType, env);
 
2445
           }
 
2446
 
 
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
           
 
2566
 
 
2567
            /**
 
2568
             * getter for volumeId.
 
2569
             */
 
2570
            axis2_char_t* AXIS2_CALL
 
2571
            adb_ncAttachVolumeType_get_volumeId(
 
2572
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2573
                    const axutil_env_t *env)
 
2574
             {
 
2575
                
 
2576
                    AXIS2_ENV_CHECK(env, NULL);
 
2577
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
2578
                  
 
2579
 
 
2580
                return _ncAttachVolumeType->property_volumeId;
 
2581
             }
 
2582
 
 
2583
            /**
 
2584
             * setter for volumeId
 
2585
             */
 
2586
            axis2_status_t AXIS2_CALL
 
2587
            adb_ncAttachVolumeType_set_volumeId(
 
2588
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2589
                    const axutil_env_t *env,
 
2590
                    const axis2_char_t*  arg_volumeId)
 
2591
             {
 
2592
                
 
2593
 
 
2594
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2595
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2596
                
 
2597
                if(_ncAttachVolumeType->is_valid_volumeId &&
 
2598
                        arg_volumeId == _ncAttachVolumeType->property_volumeId)
 
2599
                {
 
2600
                    
 
2601
                    return AXIS2_SUCCESS; 
 
2602
                }
 
2603
 
 
2604
                adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env);
 
2605
 
 
2606
                
 
2607
                if(NULL == arg_volumeId)
 
2608
                {
 
2609
                    /* We are already done */
 
2610
                    return AXIS2_SUCCESS;
 
2611
                }
 
2612
                _ncAttachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId);
 
2613
                        if(NULL == _ncAttachVolumeType->property_volumeId)
 
2614
                        {
 
2615
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId");
 
2616
                            return AXIS2_FAILURE;
 
2617
                        }
 
2618
                        _ncAttachVolumeType->is_valid_volumeId = AXIS2_TRUE;
 
2619
                    
 
2620
                return AXIS2_SUCCESS;
 
2621
             }
 
2622
 
 
2623
             
 
2624
 
 
2625
           /**
 
2626
            * resetter for volumeId
 
2627
            */
 
2628
           axis2_status_t AXIS2_CALL
 
2629
           adb_ncAttachVolumeType_reset_volumeId(
 
2630
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2631
                   const axutil_env_t *env)
 
2632
           {
 
2633
               int i = 0;
 
2634
               int count = 0;
 
2635
               void *element = NULL;
 
2636
 
 
2637
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2638
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2639
               
 
2640
 
 
2641
               
 
2642
            
 
2643
                
 
2644
                if(_ncAttachVolumeType->property_volumeId != NULL)
 
2645
                {
 
2646
                   
 
2647
                   
 
2648
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_volumeId);
 
2649
                     _ncAttachVolumeType->property_volumeId = NULL;
 
2650
                }
 
2651
            
 
2652
                
 
2653
                
 
2654
                _ncAttachVolumeType->is_valid_volumeId = AXIS2_FALSE; 
 
2655
               return AXIS2_SUCCESS;
 
2656
           }
 
2657
 
 
2658
           /**
 
2659
            * Check whether volumeId is nill
 
2660
            */
 
2661
           axis2_bool_t AXIS2_CALL
 
2662
           adb_ncAttachVolumeType_is_volumeId_nil(
 
2663
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2664
                   const axutil_env_t *env)
 
2665
           {
 
2666
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2667
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2668
               
 
2669
               return !_ncAttachVolumeType->is_valid_volumeId;
 
2670
           }
 
2671
 
 
2672
           /**
 
2673
            * Set volumeId to nill (currently the same as reset)
 
2674
            */
 
2675
           axis2_status_t AXIS2_CALL
 
2676
           adb_ncAttachVolumeType_set_volumeId_nil(
 
2677
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2678
                   const axutil_env_t *env)
 
2679
           {
 
2680
               return adb_ncAttachVolumeType_reset_volumeId(_ncAttachVolumeType, env);
 
2681
           }
 
2682
 
 
2683
           
 
2684
 
 
2685
            /**
 
2686
             * getter for remoteDev.
 
2687
             */
 
2688
            axis2_char_t* AXIS2_CALL
 
2689
            adb_ncAttachVolumeType_get_remoteDev(
 
2690
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2691
                    const axutil_env_t *env)
 
2692
             {
 
2693
                
 
2694
                    AXIS2_ENV_CHECK(env, NULL);
 
2695
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
2696
                  
 
2697
 
 
2698
                return _ncAttachVolumeType->property_remoteDev;
 
2699
             }
 
2700
 
 
2701
            /**
 
2702
             * setter for remoteDev
 
2703
             */
 
2704
            axis2_status_t AXIS2_CALL
 
2705
            adb_ncAttachVolumeType_set_remoteDev(
 
2706
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2707
                    const axutil_env_t *env,
 
2708
                    const axis2_char_t*  arg_remoteDev)
 
2709
             {
 
2710
                
 
2711
 
 
2712
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2713
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2714
                
 
2715
                if(_ncAttachVolumeType->is_valid_remoteDev &&
 
2716
                        arg_remoteDev == _ncAttachVolumeType->property_remoteDev)
 
2717
                {
 
2718
                    
 
2719
                    return AXIS2_SUCCESS; 
 
2720
                }
 
2721
 
 
2722
                adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env);
 
2723
 
 
2724
                
 
2725
                if(NULL == arg_remoteDev)
 
2726
                {
 
2727
                    /* We are already done */
 
2728
                    return AXIS2_SUCCESS;
 
2729
                }
 
2730
                _ncAttachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev);
 
2731
                        if(NULL == _ncAttachVolumeType->property_remoteDev)
 
2732
                        {
 
2733
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev");
 
2734
                            return AXIS2_FAILURE;
 
2735
                        }
 
2736
                        _ncAttachVolumeType->is_valid_remoteDev = AXIS2_TRUE;
 
2737
                    
 
2738
                return AXIS2_SUCCESS;
 
2739
             }
 
2740
 
 
2741
             
 
2742
 
 
2743
           /**
 
2744
            * resetter for remoteDev
 
2745
            */
 
2746
           axis2_status_t AXIS2_CALL
 
2747
           adb_ncAttachVolumeType_reset_remoteDev(
 
2748
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2749
                   const axutil_env_t *env)
 
2750
           {
 
2751
               int i = 0;
 
2752
               int count = 0;
 
2753
               void *element = NULL;
 
2754
 
 
2755
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2756
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2757
               
 
2758
 
 
2759
               
 
2760
            
 
2761
                
 
2762
                if(_ncAttachVolumeType->property_remoteDev != NULL)
 
2763
                {
 
2764
                   
 
2765
                   
 
2766
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_remoteDev);
 
2767
                     _ncAttachVolumeType->property_remoteDev = NULL;
 
2768
                }
 
2769
            
 
2770
                
 
2771
                
 
2772
                _ncAttachVolumeType->is_valid_remoteDev = AXIS2_FALSE; 
 
2773
               return AXIS2_SUCCESS;
 
2774
           }
 
2775
 
 
2776
           /**
 
2777
            * Check whether remoteDev is nill
 
2778
            */
 
2779
           axis2_bool_t AXIS2_CALL
 
2780
           adb_ncAttachVolumeType_is_remoteDev_nil(
 
2781
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2782
                   const axutil_env_t *env)
 
2783
           {
 
2784
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2785
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2786
               
 
2787
               return !_ncAttachVolumeType->is_valid_remoteDev;
 
2788
           }
 
2789
 
 
2790
           /**
 
2791
            * Set remoteDev to nill (currently the same as reset)
 
2792
            */
 
2793
           axis2_status_t AXIS2_CALL
 
2794
           adb_ncAttachVolumeType_set_remoteDev_nil(
 
2795
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2796
                   const axutil_env_t *env)
 
2797
           {
 
2798
               return adb_ncAttachVolumeType_reset_remoteDev(_ncAttachVolumeType, env);
 
2799
           }
 
2800
 
 
2801
           
 
2802
 
 
2803
            /**
 
2804
             * getter for localDev.
 
2805
             */
 
2806
            axis2_char_t* AXIS2_CALL
 
2807
            adb_ncAttachVolumeType_get_localDev(
 
2808
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2809
                    const axutil_env_t *env)
 
2810
             {
 
2811
                
 
2812
                    AXIS2_ENV_CHECK(env, NULL);
 
2813
                    AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, NULL);
 
2814
                  
 
2815
 
 
2816
                return _ncAttachVolumeType->property_localDev;
 
2817
             }
 
2818
 
 
2819
            /**
 
2820
             * setter for localDev
 
2821
             */
 
2822
            axis2_status_t AXIS2_CALL
 
2823
            adb_ncAttachVolumeType_set_localDev(
 
2824
                    adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2825
                    const axutil_env_t *env,
 
2826
                    const axis2_char_t*  arg_localDev)
 
2827
             {
 
2828
                
 
2829
 
 
2830
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2831
                AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2832
                
 
2833
                if(_ncAttachVolumeType->is_valid_localDev &&
 
2834
                        arg_localDev == _ncAttachVolumeType->property_localDev)
 
2835
                {
 
2836
                    
 
2837
                    return AXIS2_SUCCESS; 
 
2838
                }
 
2839
 
 
2840
                adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env);
 
2841
 
 
2842
                
 
2843
                if(NULL == arg_localDev)
 
2844
                {
 
2845
                    /* We are already done */
 
2846
                    return AXIS2_SUCCESS;
 
2847
                }
 
2848
                _ncAttachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev);
 
2849
                        if(NULL == _ncAttachVolumeType->property_localDev)
 
2850
                        {
 
2851
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev");
 
2852
                            return AXIS2_FAILURE;
 
2853
                        }
 
2854
                        _ncAttachVolumeType->is_valid_localDev = AXIS2_TRUE;
 
2855
                    
 
2856
                return AXIS2_SUCCESS;
 
2857
             }
 
2858
 
 
2859
             
 
2860
 
 
2861
           /**
 
2862
            * resetter for localDev
 
2863
            */
 
2864
           axis2_status_t AXIS2_CALL
 
2865
           adb_ncAttachVolumeType_reset_localDev(
 
2866
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2867
                   const axutil_env_t *env)
 
2868
           {
 
2869
               int i = 0;
 
2870
               int count = 0;
 
2871
               void *element = NULL;
 
2872
 
 
2873
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
2874
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_FAILURE);
 
2875
               
 
2876
 
 
2877
               
 
2878
            
 
2879
                
 
2880
                if(_ncAttachVolumeType->property_localDev != NULL)
 
2881
                {
 
2882
                   
 
2883
                   
 
2884
                        AXIS2_FREE(env-> allocator, _ncAttachVolumeType->property_localDev);
 
2885
                     _ncAttachVolumeType->property_localDev = NULL;
 
2886
                }
 
2887
            
 
2888
                
 
2889
                
 
2890
                _ncAttachVolumeType->is_valid_localDev = AXIS2_FALSE; 
 
2891
               return AXIS2_SUCCESS;
 
2892
           }
 
2893
 
 
2894
           /**
 
2895
            * Check whether localDev is nill
 
2896
            */
 
2897
           axis2_bool_t AXIS2_CALL
 
2898
           adb_ncAttachVolumeType_is_localDev_nil(
 
2899
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2900
                   const axutil_env_t *env)
 
2901
           {
 
2902
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
2903
               AXIS2_PARAM_CHECK(env->error, _ncAttachVolumeType, AXIS2_TRUE);
 
2904
               
 
2905
               return !_ncAttachVolumeType->is_valid_localDev;
 
2906
           }
 
2907
 
 
2908
           /**
 
2909
            * Set localDev to nill (currently the same as reset)
 
2910
            */
 
2911
           axis2_status_t AXIS2_CALL
 
2912
           adb_ncAttachVolumeType_set_localDev_nil(
 
2913
                   adb_ncAttachVolumeType_t* _ncAttachVolumeType,
 
2914
                   const axutil_env_t *env)
 
2915
           {
 
2916
               return adb_ncAttachVolumeType_reset_localDev(_ncAttachVolumeType, env);
 
2917
           }
 
2918
 
 
2919
           
 
2920