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

« back to all changes in this revision

Viewing changes to node/generated/adb_ncRunInstanceType.c

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2010-07-21 17:27:10 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20100721172710-7xv07dmdqgivc3t9
Tags: 2.0~bzr1211-0ubuntu1
* New major upstream version merge, 2.0 (r1211).
* debian/patches/:
  - 01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated.
  - 02-Makefile.patch: Updated to reflect new code layout.
  - 07-local_support_euca_conf-in.patch: Updated to reflect new code layout.
  - 08-ubuntu-default-networking.patch: Refreshed.
  - 09-small-128-192MB.patch: Updated to point to new location.
  - 10-disable-iscsi.patch: Refreshed.
  - 11-state-cleanup-memleakfix.patch: Removed, fixed upstream.
  - 15-fix-default-ramdisk.patch: Updated to point to new location.
  - 16-kvm_libvirt_xml_default_use_kvm.patch: Updated to reflect changes.
  - 17-fix_walrus_OOM_errors.patch: Removed, fixed upstream.
  - 18-priv_security.patch: Updated to reflect upstream changes.
  - 20-brute-force-webui.patch: Updated to reflect upstream changes. 
  - 21-eucalyptus-1.7-with-gwt-1.6.4.patch: New patch, allows 
    eucalyptus-1.7 to be built against gwt 1.6.4. Based on patch courtesy 
    of Dmitrii Zagorodnov, upstream. (LP: #597330)
* debian/eucalyptus-java-common.links: 
  - Changed symlink for groovy, point to groovy.all.jar, making compatiable 
    with groovy versions >1.7. (LP: #595421)
  - Added ant.jar & jetty-rewrite-handler.jar as they are now required.
* debian/control
  - & debian/build-jars: Added libjavassist-java and libjetty-extra-java as 
    build dependencies.
  - Added libjetty-extra-java as a dependency of eucalyptus-java-common
* The binary resulting jar's have been renamed from eucalyptus-*-1.6.2.jar
  to eucalyptus-*-main.jar:    
  - debian/eucalyptus-cc.upstart
  - debian/eucalyptus-cloud.install
  - debian/eucalyptus-common.eucalyptus.upstart
  - debian/eucalyptus-java-common.install
  - debian/eucalyptus-network.upstart
  - debian/eucalyptus-sc.install
  - debian/eucalyptus-walrus.install
* debian/eucalyptus-java-common.install: New upstream jars that have been
  installed:
  - eucalyptus-db-hsqldb-ext-main.jar
  - eucalyptus-component-main.jar
* debian/control:
  - Updated Standards Version to 3.8.4 (no change)
  - Updated the upstream Homepage to: http://open.eucalyptus.com/
  - Changed Vcs-Bzr to reflect new location of Ubuntu hosted development branch.
  - Made the Build Dependency of groovy and the binary eucalyptus-java-common
    package depend on version >=1.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
         */
9
9
 
10
10
        #include "adb_ncRunInstanceType.h"
11
 
 
 
11
        
12
12
                /*
13
13
                 * This type was generated from the piece of schema that had
14
14
                 * name = ncRunInstanceType
15
15
                 * Namespace URI = http://eucalyptus.ucsb.edu/
16
16
                 * Namespace Prefix = ns1
17
17
                 */
18
 
 
 
18
           
19
19
 
20
20
 
21
21
        struct adb_ncRunInstanceType
22
22
        {
23
23
            axis2_char_t* property_correlationId;
24
24
 
25
 
 
 
25
                
26
26
                axis2_bool_t is_valid_correlationId;
27
27
 
28
28
 
29
29
            axis2_char_t* property_userId;
30
30
 
31
 
 
 
31
                
32
32
                axis2_bool_t is_valid_userId;
33
33
 
34
34
 
35
35
            axis2_bool_t property_return;
36
36
 
37
 
 
 
37
                
38
38
                axis2_bool_t is_valid_return;
39
39
 
40
40
 
 
41
            axis2_char_t* property_nodeName;
 
42
 
 
43
                
 
44
                axis2_bool_t is_valid_nodeName;
 
45
 
 
46
 
41
47
            int property_statusMessage;
42
48
 
43
 
 
 
49
                
44
50
                axis2_bool_t is_valid_statusMessage;
45
51
 
46
52
 
47
53
            axis2_char_t* property_imageId;
48
54
 
49
 
 
 
55
                
50
56
                axis2_bool_t is_valid_imageId;
51
57
 
52
58
 
53
59
            axis2_char_t* property_kernelId;
54
60
 
55
 
 
 
61
                
56
62
                axis2_bool_t is_valid_kernelId;
57
63
 
58
64
 
59
65
            axis2_char_t* property_ramdiskId;
60
66
 
61
 
 
 
67
                
62
68
                axis2_bool_t is_valid_ramdiskId;
63
69
 
64
70
 
65
71
            axis2_char_t* property_imageURL;
66
72
 
67
 
 
 
73
                
68
74
                axis2_bool_t is_valid_imageURL;
69
75
 
70
76
 
71
77
            axis2_char_t* property_kernelURL;
72
78
 
73
 
 
 
79
                
74
80
                axis2_bool_t is_valid_kernelURL;
75
81
 
76
82
 
77
83
            axis2_char_t* property_ramdiskURL;
78
84
 
79
 
 
 
85
                
80
86
                axis2_bool_t is_valid_ramdiskURL;
81
87
 
82
88
 
 
89
            axis2_char_t* property_reservationId;
 
90
 
 
91
                
 
92
                axis2_bool_t is_valid_reservationId;
 
93
 
 
94
 
83
95
            axis2_char_t* property_instanceId;
84
96
 
85
 
 
 
97
                
86
98
                axis2_bool_t is_valid_instanceId;
87
99
 
88
100
 
89
101
            adb_virtualMachineType_t* property_instanceType;
90
102
 
91
 
 
 
103
                
92
104
                axis2_bool_t is_valid_instanceType;
93
105
 
94
106
 
95
107
            axis2_char_t* property_keyName;
96
108
 
97
 
 
 
109
                
98
110
                axis2_bool_t is_valid_keyName;
99
111
 
100
112
 
101
 
            axis2_char_t* property_publicMacAddress;
102
 
 
103
 
 
104
 
                axis2_bool_t is_valid_publicMacAddress;
105
 
 
106
 
 
107
 
            axis2_char_t* property_privateMacAddress;
108
 
 
109
 
 
110
 
                axis2_bool_t is_valid_privateMacAddress;
111
 
 
112
 
 
113
 
            axis2_char_t* property_reservationId;
114
 
 
115
 
 
116
 
                axis2_bool_t is_valid_reservationId;
117
 
 
118
 
 
119
 
            int property_vlan;
120
 
 
121
 
 
122
 
                axis2_bool_t is_valid_vlan;
 
113
            adb_netConfigType_t* property_netParams;
 
114
 
 
115
                
 
116
                axis2_bool_t is_valid_netParams;
123
117
 
124
118
 
125
119
            axis2_char_t* property_userData;
126
120
 
127
 
 
 
121
                
128
122
                axis2_bool_t is_valid_userData;
129
123
 
130
124
 
131
125
            axis2_char_t* property_launchIndex;
132
126
 
133
 
 
 
127
                
134
128
                axis2_bool_t is_valid_launchIndex;
135
129
 
136
130
 
137
131
            axutil_array_list_t* property_groupNames;
138
132
 
139
 
 
 
133
                
140
134
                axis2_bool_t is_valid_groupNames;
141
135
 
142
136
 
143
 
 
 
137
            
144
138
        };
145
139
 
146
140
 
147
141
       /************************* Private Function prototypes ********************************/
148
 
 
149
 
 
150
 
                axis2_status_t AXIS2_CALL
151
 
                adb_ncRunInstanceType_set_correlationId_nil(
152
 
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
153
 
                        const axutil_env_t *env);
154
 
 
 
142
        
155
143
 
156
144
                axis2_status_t AXIS2_CALL
157
145
                adb_ncRunInstanceType_set_userId_nil(
158
146
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
159
147
                        const axutil_env_t *env);
160
 
 
 
148
            
161
149
 
162
150
                axis2_status_t AXIS2_CALL
163
151
                adb_ncRunInstanceType_set_return_nil(
164
152
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
165
153
                        const axutil_env_t *env);
166
 
 
 
154
            
167
155
 
168
156
                axis2_status_t AXIS2_CALL
169
157
                adb_ncRunInstanceType_set_imageId_nil(
170
158
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
171
159
                        const axutil_env_t *env);
172
 
 
 
160
            
173
161
 
174
162
                axis2_status_t AXIS2_CALL
175
163
                adb_ncRunInstanceType_set_kernelId_nil(
176
164
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
177
165
                        const axutil_env_t *env);
178
 
 
 
166
            
179
167
 
180
168
                axis2_status_t AXIS2_CALL
181
169
                adb_ncRunInstanceType_set_ramdiskId_nil(
182
170
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
183
171
                        const axutil_env_t *env);
184
 
 
 
172
            
185
173
 
186
174
                axis2_status_t AXIS2_CALL
187
175
                adb_ncRunInstanceType_set_imageURL_nil(
188
176
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
189
177
                        const axutil_env_t *env);
190
 
 
 
178
            
191
179
 
192
180
                axis2_status_t AXIS2_CALL
193
181
                adb_ncRunInstanceType_set_kernelURL_nil(
194
182
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
195
183
                        const axutil_env_t *env);
196
 
 
 
184
            
197
185
 
198
186
                axis2_status_t AXIS2_CALL
199
187
                adb_ncRunInstanceType_set_ramdiskURL_nil(
200
188
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
201
189
                        const axutil_env_t *env);
 
190
            
202
191
 
 
192
                axis2_status_t AXIS2_CALL
 
193
                adb_ncRunInstanceType_set_reservationId_nil(
 
194
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
 
195
                        const axutil_env_t *env);
 
196
            
203
197
 
204
198
                axis2_status_t AXIS2_CALL
205
199
                adb_ncRunInstanceType_set_instanceId_nil(
206
200
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
207
201
                        const axutil_env_t *env);
208
 
 
 
202
            
209
203
 
210
204
                axis2_status_t AXIS2_CALL
211
205
                adb_ncRunInstanceType_set_instanceType_nil(
212
206
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
213
207
                        const axutil_env_t *env);
214
 
 
 
208
            
215
209
 
216
210
                axis2_status_t AXIS2_CALL
217
211
                adb_ncRunInstanceType_set_keyName_nil(
218
212
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
219
213
                        const axutil_env_t *env);
220
 
 
221
 
 
222
 
                axis2_status_t AXIS2_CALL
223
 
                adb_ncRunInstanceType_set_publicMacAddress_nil(
224
 
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
225
 
                        const axutil_env_t *env);
226
 
 
227
 
 
228
 
                axis2_status_t AXIS2_CALL
229
 
                adb_ncRunInstanceType_set_privateMacAddress_nil(
230
 
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
231
 
                        const axutil_env_t *env);
232
 
 
233
 
 
234
 
                axis2_status_t AXIS2_CALL
235
 
                adb_ncRunInstanceType_set_reservationId_nil(
236
 
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
237
 
                        const axutil_env_t *env);
238
 
 
239
 
 
240
 
                axis2_status_t AXIS2_CALL
241
 
                adb_ncRunInstanceType_set_vlan_nil(
242
 
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
243
 
                        const axutil_env_t *env);
244
 
 
 
214
            
 
215
 
 
216
                axis2_status_t AXIS2_CALL
 
217
                adb_ncRunInstanceType_set_netParams_nil(
 
218
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
 
219
                        const axutil_env_t *env);
 
220
            
245
221
 
246
222
                axis2_status_t AXIS2_CALL
247
223
                adb_ncRunInstanceType_set_userData_nil(
248
224
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
249
225
                        const axutil_env_t *env);
250
 
 
 
226
            
251
227
 
252
228
                axis2_status_t AXIS2_CALL
253
229
                adb_ncRunInstanceType_set_launchIndex_nil(
254
230
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
255
231
                        const axutil_env_t *env);
256
 
 
 
232
            
257
233
                 axis2_status_t AXIS2_CALL
258
234
                 adb_ncRunInstanceType_set_groupNames_nil_at(
259
 
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
 
235
                        adb_ncRunInstanceType_t* _ncRunInstanceType, 
260
236
                        const axutil_env_t *env, int i);
261
 
 
 
237
                
262
238
 
263
239
                axis2_status_t AXIS2_CALL
264
240
                adb_ncRunInstanceType_set_groupNames_nil(
265
241
                        adb_ncRunInstanceType_t* _ncRunInstanceType,
266
242
                        const axutil_env_t *env);
267
 
 
 
243
            
268
244
 
269
245
 
270
246
       /************************* Function Implmentations ********************************/
273
249
            const axutil_env_t *env)
274
250
        {
275
251
            adb_ncRunInstanceType_t *_ncRunInstanceType = NULL;
276
 
 
 
252
            
277
253
            AXIS2_ENV_CHECK(env, NULL);
278
254
 
279
255
            _ncRunInstanceType = (adb_ncRunInstanceType_t *) AXIS2_MALLOC(env->
292
268
            _ncRunInstanceType->property_userId  = NULL;
293
269
                  _ncRunInstanceType->is_valid_userId  = AXIS2_FALSE;
294
270
            _ncRunInstanceType->is_valid_return  = AXIS2_FALSE;
 
271
            _ncRunInstanceType->property_nodeName  = NULL;
 
272
                  _ncRunInstanceType->is_valid_nodeName  = AXIS2_FALSE;
295
273
            _ncRunInstanceType->is_valid_statusMessage  = AXIS2_FALSE;
296
274
            _ncRunInstanceType->property_imageId  = NULL;
297
275
                  _ncRunInstanceType->is_valid_imageId  = AXIS2_FALSE;
305
283
                  _ncRunInstanceType->is_valid_kernelURL  = AXIS2_FALSE;
306
284
            _ncRunInstanceType->property_ramdiskURL  = NULL;
307
285
                  _ncRunInstanceType->is_valid_ramdiskURL  = AXIS2_FALSE;
 
286
            _ncRunInstanceType->property_reservationId  = NULL;
 
287
                  _ncRunInstanceType->is_valid_reservationId  = AXIS2_FALSE;
308
288
            _ncRunInstanceType->property_instanceId  = NULL;
309
289
                  _ncRunInstanceType->is_valid_instanceId  = AXIS2_FALSE;
310
290
            _ncRunInstanceType->property_instanceType  = NULL;
311
291
                  _ncRunInstanceType->is_valid_instanceType  = AXIS2_FALSE;
312
292
            _ncRunInstanceType->property_keyName  = NULL;
313
293
                  _ncRunInstanceType->is_valid_keyName  = AXIS2_FALSE;
314
 
            _ncRunInstanceType->property_publicMacAddress  = NULL;
315
 
                  _ncRunInstanceType->is_valid_publicMacAddress  = AXIS2_FALSE;
316
 
            _ncRunInstanceType->property_privateMacAddress  = NULL;
317
 
                  _ncRunInstanceType->is_valid_privateMacAddress  = AXIS2_FALSE;
318
 
            _ncRunInstanceType->property_reservationId  = NULL;
319
 
                  _ncRunInstanceType->is_valid_reservationId  = AXIS2_FALSE;
320
 
            _ncRunInstanceType->is_valid_vlan  = AXIS2_FALSE;
 
294
            _ncRunInstanceType->property_netParams  = NULL;
 
295
                  _ncRunInstanceType->is_valid_netParams  = AXIS2_FALSE;
321
296
            _ncRunInstanceType->property_userData  = NULL;
322
297
                  _ncRunInstanceType->is_valid_userData  = AXIS2_FALSE;
323
298
            _ncRunInstanceType->property_launchIndex  = NULL;
324
299
                  _ncRunInstanceType->is_valid_launchIndex  = AXIS2_FALSE;
325
300
            _ncRunInstanceType->property_groupNames  = NULL;
326
301
                  _ncRunInstanceType->is_valid_groupNames  = AXIS2_FALSE;
327
 
 
 
302
            
328
303
 
329
304
            return _ncRunInstanceType;
330
305
        }
334
309
                adb_ncRunInstanceType_t* _ncRunInstanceType,
335
310
                const axutil_env_t *env)
336
311
        {
337
 
 
 
312
            
338
313
                int i = 0;
339
314
                int count = 0;
340
315
                void *element = NULL;
341
 
 
 
316
            
342
317
 
343
318
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
344
319
            AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
346
321
            adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env);
347
322
            adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env);
348
323
            adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env);
 
324
            adb_ncRunInstanceType_reset_nodeName(_ncRunInstanceType, env);
349
325
            adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env);
350
326
            adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env);
351
327
            adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env);
353
329
            adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env);
354
330
            adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env);
355
331
            adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env);
 
332
            adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
356
333
            adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env);
357
334
            adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env);
358
335
            adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env);
359
 
            adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env);
360
 
            adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env);
361
 
            adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
362
 
            adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env);
 
336
            adb_ncRunInstanceType_reset_netParams(_ncRunInstanceType, env);
363
337
            adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env);
364
338
            adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env);
365
339
            adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env);
366
 
 
 
340
            
367
341
 
368
342
            if(_ncRunInstanceType)
369
343
            {
374
348
        }
375
349
 
376
350
 
377
 
 
 
351
        
378
352
 
379
353
        axis2_status_t AXIS2_CALL
380
354
        adb_ncRunInstanceType_deserialize(
385
359
                axis2_bool_t dont_care_minoccurs)
386
360
        {
387
361
          axiom_node_t *parent = *dp_parent;
388
 
 
 
362
          
389
363
          axis2_status_t status = AXIS2_SUCCESS;
390
 
 
 
364
          
391
365
              void *element = NULL;
392
 
 
 
366
           
393
367
             axis2_char_t* text_value = NULL;
394
368
             axutil_qname_t *qname = NULL;
395
 
 
 
369
          
396
370
               int i = 0;
397
371
               axutil_array_list_t *arr_list = NULL;
398
 
 
 
372
            
399
373
               int sequence_broken = 0;
400
374
               axiom_node_t *tmp_node = NULL;
401
 
 
402
 
            axutil_qname_t *element_qname = NULL;
403
 
 
 
375
            
 
376
            axutil_qname_t *element_qname = NULL; 
 
377
            
404
378
               axiom_node_t *first_node = NULL;
405
379
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
406
380
               axiom_node_t *current_node = NULL;
407
381
               axiom_element_t *current_element = NULL;
408
 
 
 
382
            
409
383
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
410
384
            AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
411
385
 
412
 
 
413
 
 
 
386
            
 
387
              
414
388
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
415
389
              {
416
390
                  parent = axiom_node_get_next_sibling(parent, env);
418
392
              if (NULL == parent)
419
393
              {
420
394
                /* This should be checked before everything */
421
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
 
395
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
422
396
                            "Failed in building adb object for ncRunInstanceType : "
423
397
                            "NULL elemenet can not be passed to deserialize");
424
398
                return AXIS2_FAILURE;
425
399
              }
426
 
 
427
 
 
 
400
              
 
401
                      
428
402
                      first_node = axiom_node_get_first_child(parent, env);
429
 
 
430
 
 
431
 
 
432
 
 
 
403
                      
 
404
                    
 
405
 
 
406
                     
433
407
                     /*
434
408
                      * building correlationId element
435
409
                      */
436
 
 
437
 
 
438
 
 
 
410
                     
 
411
                     
 
412
                     
439
413
                                   current_node = first_node;
440
414
                                   is_early_node_valid = AXIS2_FALSE;
441
 
 
442
 
 
 
415
                                   
 
416
                                   
443
417
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
444
418
                                    {
445
419
                                        current_node = axiom_node_get_next_sibling(current_node, env);
449
423
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
450
424
                                        qname = axiom_element_get_qname(current_element, env, current_node);
451
425
                                    }
452
 
 
 
426
                                   
453
427
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
454
 
 
455
 
 
456
 
                           if (
 
428
                                 
 
429
 
 
430
                           if ( 
457
431
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
458
432
                           {
459
433
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
460
434
                              {
461
435
                                is_early_node_valid = AXIS2_TRUE;
462
436
                              }
463
 
 
464
 
 
 
437
                              
 
438
                                 
465
439
                                      text_value = axiom_element_get_text(current_element, env, current_node);
466
440
                                      if(text_value != NULL)
467
441
                                      {
468
442
                                            status = adb_ncRunInstanceType_set_correlationId(_ncRunInstanceType, env,
469
443
                                                               text_value);
470
444
                                      }
471
 
 
472
 
                                      else
473
 
                                      {
474
 
                                            /*
475
 
                                             * axis2_qname_t *qname = NULL;
476
 
                                             * axiom_attribute_t *the_attri = NULL;
477
 
                                             *
478
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
479
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
480
 
                                             */
481
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
482
 
 
483
 
                                            axiom_attribute_t *the_attri = NULL;
484
 
                                            axis2_char_t *attrib_text = NULL;
485
 
                                            axutil_hash_t *attribute_hash = NULL;
486
 
 
487
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
488
 
 
489
 
                                            attrib_text = NULL;
490
 
                                            if(attribute_hash)
491
 
                                            {
492
 
                                                 axutil_hash_index_t *hi;
493
 
                                                 void *val;
494
 
                                                 const void *key;
495
 
 
496
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
497
 
                                                 {
498
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
499
 
 
500
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
501
 
                                                     {
502
 
                                                         the_attri = (axiom_attribute_t*)val;
503
 
                                                         break;
504
 
                                                     }
505
 
                                                 }
506
 
                                            }
507
 
 
508
 
                                            if(the_attri)
509
 
                                            {
510
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
511
 
                                            }
512
 
                                            else
513
 
                                            {
514
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
515
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
516
 
                                            }
517
 
 
518
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
519
 
                                            {
520
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
521
 
                                                status = AXIS2_FAILURE;
522
 
                                            }
523
 
                                            else
524
 
                                            {
525
 
                                                /* after all, we found this is a empty string */
526
 
                                                status = adb_ncRunInstanceType_set_correlationId(_ncRunInstanceType, env,
527
 
                                                                   "");
528
 
                                            }
529
 
                                      }
530
 
 
 
445
                                      
531
446
                                 if(AXIS2_FAILURE ==  status)
532
447
                                 {
533
448
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
538
453
                                     return AXIS2_FAILURE;
539
454
                                 }
540
455
                              }
541
 
 
 
456
                           
542
457
                  if(element_qname)
543
458
                  {
544
459
                     axutil_qname_free(element_qname, env);
545
460
                     element_qname = NULL;
546
461
                  }
547
 
 
548
 
 
549
 
 
 
462
                 
 
463
 
 
464
                     
550
465
                     /*
551
466
                      * building userId element
552
467
                      */
553
 
 
554
 
 
555
 
 
 
468
                     
 
469
                     
 
470
                     
556
471
                                    /*
557
472
                                     * because elements are ordered this works fine
558
473
                                     */
559
 
 
560
 
 
 
474
                                  
 
475
                                   
561
476
                                   if(current_node != NULL && is_early_node_valid)
562
477
                                   {
563
478
                                       current_node = axiom_node_get_next_sibling(current_node, env);
564
 
 
565
 
 
 
479
                                       
 
480
                                       
566
481
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
567
482
                                        {
568
483
                                            current_node = axiom_node_get_next_sibling(current_node, env);
572
487
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
573
488
                                            qname = axiom_element_get_qname(current_element, env, current_node);
574
489
                                        }
575
 
 
 
490
                                       
576
491
                                   }
577
492
                                   is_early_node_valid = AXIS2_FALSE;
578
 
 
 
493
                                 
579
494
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
580
 
 
581
 
 
582
 
                           if (
 
495
                                 
 
496
 
 
497
                           if ( 
583
498
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
584
499
                           {
585
500
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
586
501
                              {
587
502
                                is_early_node_valid = AXIS2_TRUE;
588
503
                              }
589
 
 
590
 
 
 
504
                              
 
505
                                 
591
506
                                      text_value = axiom_element_get_text(current_element, env, current_node);
592
507
                                      if(text_value != NULL)
593
508
                                      {
594
509
                                            status = adb_ncRunInstanceType_set_userId(_ncRunInstanceType, env,
595
510
                                                               text_value);
596
511
                                      }
597
 
 
 
512
                                      
598
513
                                      else
599
514
                                      {
600
515
                                            /*
601
516
                                             * axis2_qname_t *qname = NULL;
602
517
                                             * axiom_attribute_t *the_attri = NULL;
603
 
                                             *
 
518
                                             * 
604
519
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
605
520
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
606
521
                                             */
618
533
                                                 axutil_hash_index_t *hi;
619
534
                                                 void *val;
620
535
                                                 const void *key;
621
 
 
622
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
536
                                        
 
537
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
623
538
                                                 {
624
539
                                                     axutil_hash_this(hi, &key, NULL, &val);
625
 
 
 
540
                                                     
626
541
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
627
542
                                                     {
628
543
                                                         the_attri = (axiom_attribute_t*)val;
653
568
                                                                   "");
654
569
                                            }
655
570
                                      }
656
 
 
 
571
                                      
657
572
                                 if(AXIS2_FAILURE ==  status)
658
573
                                 {
659
574
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
664
579
                                     return AXIS2_FAILURE;
665
580
                                 }
666
581
                              }
667
 
 
 
582
                           
668
583
                  if(element_qname)
669
584
                  {
670
585
                     axutil_qname_free(element_qname, env);
671
586
                     element_qname = NULL;
672
587
                  }
673
 
 
674
 
 
675
 
 
 
588
                 
 
589
 
 
590
                     
676
591
                     /*
677
592
                      * building return element
678
593
                      */
679
 
 
680
 
 
681
 
 
 
594
                     
 
595
                     
 
596
                     
682
597
                                    /*
683
598
                                     * because elements are ordered this works fine
684
599
                                     */
685
 
 
686
 
 
 
600
                                  
 
601
                                   
687
602
                                   if(current_node != NULL && is_early_node_valid)
688
603
                                   {
689
604
                                       current_node = axiom_node_get_next_sibling(current_node, env);
690
 
 
691
 
 
 
605
                                       
 
606
                                       
692
607
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
693
608
                                        {
694
609
                                            current_node = axiom_node_get_next_sibling(current_node, env);
698
613
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
699
614
                                            qname = axiom_element_get_qname(current_element, env, current_node);
700
615
                                        }
701
 
 
 
616
                                       
702
617
                                   }
703
618
                                   is_early_node_valid = AXIS2_FALSE;
704
 
 
 
619
                                 
705
620
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
706
 
 
707
 
 
708
 
                           if (
 
621
                                 
 
622
 
 
623
                           if ( 
709
624
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
710
625
                           {
711
626
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
712
627
                              {
713
628
                                is_early_node_valid = AXIS2_TRUE;
714
629
                              }
715
 
 
716
 
 
 
630
                              
 
631
                                 
717
632
                                      text_value = axiom_element_get_text(current_element, env, current_node);
718
633
                                      if(text_value != NULL)
719
634
                                      {
728
643
                                                                      AXIS2_FALSE);
729
644
                                            }
730
645
                                      }
731
 
 
 
646
                                      
732
647
                                      else
733
648
                                      {
734
649
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
735
650
                                          status = AXIS2_FAILURE;
736
651
                                      }
737
 
 
 
652
                                      
738
653
                                 if(AXIS2_FAILURE ==  status)
739
654
                                 {
740
655
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
745
660
                                     return AXIS2_FAILURE;
746
661
                                 }
747
662
                              }
748
 
 
749
 
                  if(element_qname)
750
 
                  {
751
 
                     axutil_qname_free(element_qname, env);
752
 
                     element_qname = NULL;
753
 
                  }
754
 
 
755
 
 
756
 
 
 
663
                           
 
664
                  if(element_qname)
 
665
                  {
 
666
                     axutil_qname_free(element_qname, env);
 
667
                     element_qname = NULL;
 
668
                  }
 
669
                 
 
670
 
 
671
                     
 
672
                     /*
 
673
                      * building nodeName element
 
674
                      */
 
675
                     
 
676
                     
 
677
                     
 
678
                                    /*
 
679
                                     * because elements are ordered this works fine
 
680
                                     */
 
681
                                  
 
682
                                   
 
683
                                   if(current_node != NULL && is_early_node_valid)
 
684
                                   {
 
685
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
686
                                       
 
687
                                       
 
688
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
689
                                        {
 
690
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
691
                                        }
 
692
                                        if(current_node != NULL)
 
693
                                        {
 
694
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
695
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
696
                                        }
 
697
                                       
 
698
                                   }
 
699
                                   is_early_node_valid = AXIS2_FALSE;
 
700
                                 
 
701
                                 element_qname = axutil_qname_create(env, "nodeName", "http://eucalyptus.ucsb.edu/", NULL);
 
702
                                 
 
703
 
 
704
                           if ( 
 
705
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
706
                           {
 
707
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
708
                              {
 
709
                                is_early_node_valid = AXIS2_TRUE;
 
710
                              }
 
711
                              
 
712
                                 
 
713
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
714
                                      if(text_value != NULL)
 
715
                                      {
 
716
                                            status = adb_ncRunInstanceType_set_nodeName(_ncRunInstanceType, env,
 
717
                                                               text_value);
 
718
                                      }
 
719
                                      
 
720
                                 if(AXIS2_FAILURE ==  status)
 
721
                                 {
 
722
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nodeName ");
 
723
                                     if(element_qname)
 
724
                                     {
 
725
                                         axutil_qname_free(element_qname, env);
 
726
                                     }
 
727
                                     return AXIS2_FAILURE;
 
728
                                 }
 
729
                              }
 
730
                           
 
731
                  if(element_qname)
 
732
                  {
 
733
                     axutil_qname_free(element_qname, env);
 
734
                     element_qname = NULL;
 
735
                  }
 
736
                 
 
737
 
 
738
                     
757
739
                     /*
758
740
                      * building statusMessage element
759
741
                      */
760
 
 
761
 
 
762
 
 
 
742
                     
 
743
                     
 
744
                     
763
745
                                    /*
764
746
                                     * because elements are ordered this works fine
765
747
                                     */
766
 
 
767
 
 
 
748
                                  
 
749
                                   
768
750
                                   if(current_node != NULL && is_early_node_valid)
769
751
                                   {
770
752
                                       current_node = axiom_node_get_next_sibling(current_node, env);
771
 
 
772
 
 
 
753
                                       
 
754
                                       
773
755
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
774
756
                                        {
775
757
                                            current_node = axiom_node_get_next_sibling(current_node, env);
779
761
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
780
762
                                            qname = axiom_element_get_qname(current_element, env, current_node);
781
763
                                        }
782
 
 
 
764
                                       
783
765
                                   }
784
766
                                   is_early_node_valid = AXIS2_FALSE;
785
 
 
 
767
                                 
786
768
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
787
 
 
788
 
 
789
 
                           if (
 
769
                                 
 
770
 
 
771
                           if ( 
790
772
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
791
773
                           {
792
774
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
793
775
                              {
794
776
                                is_early_node_valid = AXIS2_TRUE;
795
777
                              }
796
 
 
797
 
 
 
778
                              
 
779
                                 
798
780
                                      text_value = axiom_element_get_text(current_element, env, current_node);
799
781
                                      if(text_value != NULL)
800
782
                                      {
801
783
                                            status = adb_ncRunInstanceType_set_statusMessage(_ncRunInstanceType, env,
802
784
                                                                   atoi(text_value));
803
785
                                      }
804
 
 
 
786
                                      
805
787
                                 if(AXIS2_FAILURE ==  status)
806
788
                                 {
807
789
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
812
794
                                     return AXIS2_FAILURE;
813
795
                                 }
814
796
                              }
815
 
 
 
797
                           
816
798
                  if(element_qname)
817
799
                  {
818
800
                     axutil_qname_free(element_qname, env);
819
801
                     element_qname = NULL;
820
802
                  }
821
 
 
822
 
 
823
 
 
 
803
                 
 
804
 
 
805
                     
824
806
                     /*
825
807
                      * building imageId element
826
808
                      */
827
 
 
828
 
 
829
 
 
 
809
                     
 
810
                     
 
811
                     
830
812
                                    /*
831
813
                                     * because elements are ordered this works fine
832
814
                                     */
833
 
 
834
 
 
 
815
                                  
 
816
                                   
835
817
                                   if(current_node != NULL && is_early_node_valid)
836
818
                                   {
837
819
                                       current_node = axiom_node_get_next_sibling(current_node, env);
838
 
 
839
 
 
 
820
                                       
 
821
                                       
840
822
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
841
823
                                        {
842
824
                                            current_node = axiom_node_get_next_sibling(current_node, env);
846
828
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
847
829
                                            qname = axiom_element_get_qname(current_element, env, current_node);
848
830
                                        }
849
 
 
 
831
                                       
850
832
                                   }
851
833
                                   is_early_node_valid = AXIS2_FALSE;
852
 
 
 
834
                                 
853
835
                                 element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL);
854
 
 
855
 
 
856
 
                           if (
 
836
                                 
 
837
 
 
838
                           if ( 
857
839
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
858
840
                           {
859
841
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
860
842
                              {
861
843
                                is_early_node_valid = AXIS2_TRUE;
862
844
                              }
863
 
 
864
 
 
 
845
                              
 
846
                                 
865
847
                                      text_value = axiom_element_get_text(current_element, env, current_node);
866
848
                                      if(text_value != NULL)
867
849
                                      {
868
850
                                            status = adb_ncRunInstanceType_set_imageId(_ncRunInstanceType, env,
869
851
                                                               text_value);
870
852
                                      }
871
 
 
 
853
                                      
872
854
                                      else
873
855
                                      {
874
856
                                            /*
875
857
                                             * axis2_qname_t *qname = NULL;
876
858
                                             * axiom_attribute_t *the_attri = NULL;
877
 
                                             *
 
859
                                             * 
878
860
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
879
861
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
880
862
                                             */
892
874
                                                 axutil_hash_index_t *hi;
893
875
                                                 void *val;
894
876
                                                 const void *key;
895
 
 
896
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
877
                                        
 
878
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
897
879
                                                 {
898
880
                                                     axutil_hash_this(hi, &key, NULL, &val);
899
 
 
 
881
                                                     
900
882
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
901
883
                                                     {
902
884
                                                         the_attri = (axiom_attribute_t*)val;
927
909
                                                                   "");
928
910
                                            }
929
911
                                      }
930
 
 
 
912
                                      
931
913
                                 if(AXIS2_FAILURE ==  status)
932
914
                                 {
933
915
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId ");
938
920
                                     return AXIS2_FAILURE;
939
921
                                 }
940
922
                              }
941
 
 
 
923
                           
942
924
                              else if(!dont_care_minoccurs)
943
925
                              {
944
926
                                  if(element_qname)
949
931
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageId missing");
950
932
                                  return AXIS2_FAILURE;
951
933
                              }
952
 
 
 
934
                           
953
935
                  if(element_qname)
954
936
                  {
955
937
                     axutil_qname_free(element_qname, env);
956
938
                     element_qname = NULL;
957
939
                  }
958
 
 
959
 
 
960
 
 
 
940
                 
 
941
 
 
942
                     
961
943
                     /*
962
944
                      * building kernelId element
963
945
                      */
964
 
 
965
 
 
966
 
 
 
946
                     
 
947
                     
 
948
                     
967
949
                                    /*
968
950
                                     * because elements are ordered this works fine
969
951
                                     */
970
 
 
971
 
 
 
952
                                  
 
953
                                   
972
954
                                   if(current_node != NULL && is_early_node_valid)
973
955
                                   {
974
956
                                       current_node = axiom_node_get_next_sibling(current_node, env);
975
 
 
976
 
 
 
957
                                       
 
958
                                       
977
959
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
978
960
                                        {
979
961
                                            current_node = axiom_node_get_next_sibling(current_node, env);
983
965
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
984
966
                                            qname = axiom_element_get_qname(current_element, env, current_node);
985
967
                                        }
986
 
 
 
968
                                       
987
969
                                   }
988
970
                                   is_early_node_valid = AXIS2_FALSE;
989
 
 
 
971
                                 
990
972
                                 element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL);
991
 
 
992
 
 
993
 
                           if (
 
973
                                 
 
974
 
 
975
                           if ( 
994
976
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
995
977
                           {
996
978
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
997
979
                              {
998
980
                                is_early_node_valid = AXIS2_TRUE;
999
981
                              }
1000
 
 
1001
 
 
 
982
                              
 
983
                                 
1002
984
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1003
985
                                      if(text_value != NULL)
1004
986
                                      {
1005
987
                                            status = adb_ncRunInstanceType_set_kernelId(_ncRunInstanceType, env,
1006
988
                                                               text_value);
1007
989
                                      }
1008
 
 
 
990
                                      
1009
991
                                      else
1010
992
                                      {
1011
993
                                            /*
1012
994
                                             * axis2_qname_t *qname = NULL;
1013
995
                                             * axiom_attribute_t *the_attri = NULL;
1014
 
                                             *
 
996
                                             * 
1015
997
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1016
998
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1017
999
                                             */
1029
1011
                                                 axutil_hash_index_t *hi;
1030
1012
                                                 void *val;
1031
1013
                                                 const void *key;
1032
 
 
1033
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1014
                                        
 
1015
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1034
1016
                                                 {
1035
1017
                                                     axutil_hash_this(hi, &key, NULL, &val);
1036
 
 
 
1018
                                                     
1037
1019
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1038
1020
                                                     {
1039
1021
                                                         the_attri = (axiom_attribute_t*)val;
1064
1046
                                                                   "");
1065
1047
                                            }
1066
1048
                                      }
1067
 
 
 
1049
                                      
1068
1050
                                 if(AXIS2_FAILURE ==  status)
1069
1051
                                 {
1070
1052
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId ");
1075
1057
                                     return AXIS2_FAILURE;
1076
1058
                                 }
1077
1059
                              }
1078
 
 
1079
 
                              else if(!dont_care_minoccurs)
1080
 
                              {
1081
 
                                  if(element_qname)
1082
 
                                  {
1083
 
                                      axutil_qname_free(element_qname, env);
1084
 
                                  }
1085
 
                                  /* this is not a nillable element*/
1086
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelId missing");
1087
 
                                  return AXIS2_FAILURE;
1088
 
                              }
1089
 
 
 
1060
                           
1090
1061
                  if(element_qname)
1091
1062
                  {
1092
1063
                     axutil_qname_free(element_qname, env);
1093
1064
                     element_qname = NULL;
1094
1065
                  }
1095
 
 
1096
 
 
1097
 
 
 
1066
                 
 
1067
 
 
1068
                     
1098
1069
                     /*
1099
1070
                      * building ramdiskId element
1100
1071
                      */
1101
 
 
1102
 
 
1103
 
 
 
1072
                     
 
1073
                     
 
1074
                     
1104
1075
                                    /*
1105
1076
                                     * because elements are ordered this works fine
1106
1077
                                     */
1107
 
 
1108
 
 
 
1078
                                  
 
1079
                                   
1109
1080
                                   if(current_node != NULL && is_early_node_valid)
1110
1081
                                   {
1111
1082
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1112
 
 
1113
 
 
 
1083
                                       
 
1084
                                       
1114
1085
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1115
1086
                                        {
1116
1087
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1120
1091
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1121
1092
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1122
1093
                                        }
1123
 
 
 
1094
                                       
1124
1095
                                   }
1125
1096
                                   is_early_node_valid = AXIS2_FALSE;
1126
 
 
 
1097
                                 
1127
1098
                                 element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL);
1128
 
 
1129
 
 
1130
 
                           if (
 
1099
                                 
 
1100
 
 
1101
                           if ( 
1131
1102
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1132
1103
                           {
1133
1104
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1134
1105
                              {
1135
1106
                                is_early_node_valid = AXIS2_TRUE;
1136
1107
                              }
1137
 
 
1138
 
 
 
1108
                              
 
1109
                                 
1139
1110
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1140
1111
                                      if(text_value != NULL)
1141
1112
                                      {
1142
1113
                                            status = adb_ncRunInstanceType_set_ramdiskId(_ncRunInstanceType, env,
1143
1114
                                                               text_value);
1144
1115
                                      }
1145
 
 
 
1116
                                      
1146
1117
                                      else
1147
1118
                                      {
1148
1119
                                            /*
1149
1120
                                             * axis2_qname_t *qname = NULL;
1150
1121
                                             * axiom_attribute_t *the_attri = NULL;
1151
 
                                             *
 
1122
                                             * 
1152
1123
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1153
1124
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1154
1125
                                             */
1166
1137
                                                 axutil_hash_index_t *hi;
1167
1138
                                                 void *val;
1168
1139
                                                 const void *key;
1169
 
 
1170
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1140
                                        
 
1141
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1171
1142
                                                 {
1172
1143
                                                     axutil_hash_this(hi, &key, NULL, &val);
1173
 
 
 
1144
                                                     
1174
1145
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1175
1146
                                                     {
1176
1147
                                                         the_attri = (axiom_attribute_t*)val;
1201
1172
                                                                   "");
1202
1173
                                            }
1203
1174
                                      }
1204
 
 
 
1175
                                      
1205
1176
                                 if(AXIS2_FAILURE ==  status)
1206
1177
                                 {
1207
1178
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId ");
1212
1183
                                     return AXIS2_FAILURE;
1213
1184
                                 }
1214
1185
                              }
1215
 
 
 
1186
                           
1216
1187
                  if(element_qname)
1217
1188
                  {
1218
1189
                     axutil_qname_free(element_qname, env);
1219
1190
                     element_qname = NULL;
1220
1191
                  }
1221
 
 
1222
 
 
1223
 
 
 
1192
                 
 
1193
 
 
1194
                     
1224
1195
                     /*
1225
1196
                      * building imageURL element
1226
1197
                      */
1227
 
 
1228
 
 
1229
 
 
 
1198
                     
 
1199
                     
 
1200
                     
1230
1201
                                    /*
1231
1202
                                     * because elements are ordered this works fine
1232
1203
                                     */
1233
 
 
1234
 
 
 
1204
                                  
 
1205
                                   
1235
1206
                                   if(current_node != NULL && is_early_node_valid)
1236
1207
                                   {
1237
1208
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1238
 
 
1239
 
 
 
1209
                                       
 
1210
                                       
1240
1211
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1241
1212
                                        {
1242
1213
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1246
1217
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1247
1218
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1248
1219
                                        }
1249
 
 
 
1220
                                       
1250
1221
                                   }
1251
1222
                                   is_early_node_valid = AXIS2_FALSE;
1252
 
 
 
1223
                                 
1253
1224
                                 element_qname = axutil_qname_create(env, "imageURL", "http://eucalyptus.ucsb.edu/", NULL);
1254
 
 
1255
 
 
1256
 
                           if (
 
1225
                                 
 
1226
 
 
1227
                           if ( 
1257
1228
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1258
1229
                           {
1259
1230
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1260
1231
                              {
1261
1232
                                is_early_node_valid = AXIS2_TRUE;
1262
1233
                              }
1263
 
 
1264
 
 
 
1234
                              
 
1235
                                 
1265
1236
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1266
1237
                                      if(text_value != NULL)
1267
1238
                                      {
1268
1239
                                            status = adb_ncRunInstanceType_set_imageURL(_ncRunInstanceType, env,
1269
1240
                                                               text_value);
1270
1241
                                      }
1271
 
 
 
1242
                                      
1272
1243
                                      else
1273
1244
                                      {
1274
1245
                                            /*
1275
1246
                                             * axis2_qname_t *qname = NULL;
1276
1247
                                             * axiom_attribute_t *the_attri = NULL;
1277
 
                                             *
 
1248
                                             * 
1278
1249
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1279
1250
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1280
1251
                                             */
1292
1263
                                                 axutil_hash_index_t *hi;
1293
1264
                                                 void *val;
1294
1265
                                                 const void *key;
1295
 
 
1296
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1266
                                        
 
1267
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1297
1268
                                                 {
1298
1269
                                                     axutil_hash_this(hi, &key, NULL, &val);
1299
 
 
 
1270
                                                     
1300
1271
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1301
1272
                                                     {
1302
1273
                                                         the_attri = (axiom_attribute_t*)val;
1327
1298
                                                                   "");
1328
1299
                                            }
1329
1300
                                      }
1330
 
 
 
1301
                                      
1331
1302
                                 if(AXIS2_FAILURE ==  status)
1332
1303
                                 {
1333
1304
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageURL ");
1338
1309
                                     return AXIS2_FAILURE;
1339
1310
                                 }
1340
1311
                              }
1341
 
 
 
1312
                           
1342
1313
                              else if(!dont_care_minoccurs)
1343
1314
                              {
1344
1315
                                  if(element_qname)
1349
1320
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element imageURL missing");
1350
1321
                                  return AXIS2_FAILURE;
1351
1322
                              }
1352
 
 
 
1323
                           
1353
1324
                  if(element_qname)
1354
1325
                  {
1355
1326
                     axutil_qname_free(element_qname, env);
1356
1327
                     element_qname = NULL;
1357
1328
                  }
1358
 
 
1359
 
 
1360
 
 
 
1329
                 
 
1330
 
 
1331
                     
1361
1332
                     /*
1362
1333
                      * building kernelURL element
1363
1334
                      */
1364
 
 
1365
 
 
1366
 
 
 
1335
                     
 
1336
                     
 
1337
                     
1367
1338
                                    /*
1368
1339
                                     * because elements are ordered this works fine
1369
1340
                                     */
1370
 
 
1371
 
 
 
1341
                                  
 
1342
                                   
1372
1343
                                   if(current_node != NULL && is_early_node_valid)
1373
1344
                                   {
1374
1345
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1375
 
 
1376
 
 
 
1346
                                       
 
1347
                                       
1377
1348
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1378
1349
                                        {
1379
1350
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1383
1354
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1384
1355
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1385
1356
                                        }
1386
 
 
 
1357
                                       
1387
1358
                                   }
1388
1359
                                   is_early_node_valid = AXIS2_FALSE;
1389
 
 
 
1360
                                 
1390
1361
                                 element_qname = axutil_qname_create(env, "kernelURL", "http://eucalyptus.ucsb.edu/", NULL);
1391
 
 
1392
 
 
1393
 
                           if (
 
1362
                                 
 
1363
 
 
1364
                           if ( 
1394
1365
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1395
1366
                           {
1396
1367
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1397
1368
                              {
1398
1369
                                is_early_node_valid = AXIS2_TRUE;
1399
1370
                              }
1400
 
 
1401
 
 
 
1371
                              
 
1372
                                 
1402
1373
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1403
1374
                                      if(text_value != NULL)
1404
1375
                                      {
1405
1376
                                            status = adb_ncRunInstanceType_set_kernelURL(_ncRunInstanceType, env,
1406
1377
                                                               text_value);
1407
1378
                                      }
1408
 
 
 
1379
                                      
1409
1380
                                      else
1410
1381
                                      {
1411
1382
                                            /*
1412
1383
                                             * axis2_qname_t *qname = NULL;
1413
1384
                                             * axiom_attribute_t *the_attri = NULL;
1414
 
                                             *
 
1385
                                             * 
1415
1386
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1416
1387
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1417
1388
                                             */
1429
1400
                                                 axutil_hash_index_t *hi;
1430
1401
                                                 void *val;
1431
1402
                                                 const void *key;
1432
 
 
1433
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1403
                                        
 
1404
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1434
1405
                                                 {
1435
1406
                                                     axutil_hash_this(hi, &key, NULL, &val);
1436
 
 
 
1407
                                                     
1437
1408
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1438
1409
                                                     {
1439
1410
                                                         the_attri = (axiom_attribute_t*)val;
1464
1435
                                                                   "");
1465
1436
                                            }
1466
1437
                                      }
1467
 
 
 
1438
                                      
1468
1439
                                 if(AXIS2_FAILURE ==  status)
1469
1440
                                 {
1470
1441
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelURL ");
1475
1446
                                     return AXIS2_FAILURE;
1476
1447
                                 }
1477
1448
                              }
1478
 
 
1479
 
                              else if(!dont_care_minoccurs)
1480
 
                              {
1481
 
                                  if(element_qname)
1482
 
                                  {
1483
 
                                      axutil_qname_free(element_qname, env);
1484
 
                                  }
1485
 
                                  /* this is not a nillable element*/
1486
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element kernelURL missing");
1487
 
                                  return AXIS2_FAILURE;
1488
 
                              }
1489
 
 
 
1449
                           
1490
1450
                  if(element_qname)
1491
1451
                  {
1492
1452
                     axutil_qname_free(element_qname, env);
1493
1453
                     element_qname = NULL;
1494
1454
                  }
1495
 
 
1496
 
 
1497
 
 
 
1455
                 
 
1456
 
 
1457
                     
1498
1458
                     /*
1499
1459
                      * building ramdiskURL element
1500
1460
                      */
1501
 
 
1502
 
 
1503
 
 
 
1461
                     
 
1462
                     
 
1463
                     
1504
1464
                                    /*
1505
1465
                                     * because elements are ordered this works fine
1506
1466
                                     */
1507
 
 
1508
 
 
 
1467
                                  
 
1468
                                   
1509
1469
                                   if(current_node != NULL && is_early_node_valid)
1510
1470
                                   {
1511
1471
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1512
 
 
1513
 
 
 
1472
                                       
 
1473
                                       
1514
1474
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1515
1475
                                        {
1516
1476
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1520
1480
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1521
1481
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1522
1482
                                        }
1523
 
 
 
1483
                                       
1524
1484
                                   }
1525
1485
                                   is_early_node_valid = AXIS2_FALSE;
1526
 
 
 
1486
                                 
1527
1487
                                 element_qname = axutil_qname_create(env, "ramdiskURL", "http://eucalyptus.ucsb.edu/", NULL);
1528
 
 
1529
 
 
1530
 
                           if (
 
1488
                                 
 
1489
 
 
1490
                           if ( 
1531
1491
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1532
1492
                           {
1533
1493
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1534
1494
                              {
1535
1495
                                is_early_node_valid = AXIS2_TRUE;
1536
1496
                              }
1537
 
 
1538
 
 
 
1497
                              
 
1498
                                 
1539
1499
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1540
1500
                                      if(text_value != NULL)
1541
1501
                                      {
1542
1502
                                            status = adb_ncRunInstanceType_set_ramdiskURL(_ncRunInstanceType, env,
1543
1503
                                                               text_value);
1544
1504
                                      }
1545
 
 
 
1505
                                      
1546
1506
                                      else
1547
1507
                                      {
1548
1508
                                            /*
1549
1509
                                             * axis2_qname_t *qname = NULL;
1550
1510
                                             * axiom_attribute_t *the_attri = NULL;
1551
 
                                             *
 
1511
                                             * 
1552
1512
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1553
1513
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1554
1514
                                             */
1566
1526
                                                 axutil_hash_index_t *hi;
1567
1527
                                                 void *val;
1568
1528
                                                 const void *key;
1569
 
 
1570
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1529
                                        
 
1530
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1571
1531
                                                 {
1572
1532
                                                     axutil_hash_this(hi, &key, NULL, &val);
1573
 
 
 
1533
                                                     
1574
1534
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1575
1535
                                                     {
1576
1536
                                                         the_attri = (axiom_attribute_t*)val;
1601
1561
                                                                   "");
1602
1562
                                            }
1603
1563
                                      }
1604
 
 
 
1564
                                      
1605
1565
                                 if(AXIS2_FAILURE ==  status)
1606
1566
                                 {
1607
1567
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskURL ");
1612
1572
                                     return AXIS2_FAILURE;
1613
1573
                                 }
1614
1574
                              }
1615
 
 
1616
 
                  if(element_qname)
1617
 
                  {
1618
 
                     axutil_qname_free(element_qname, env);
1619
 
                     element_qname = NULL;
1620
 
                  }
1621
 
 
1622
 
 
1623
 
 
 
1575
                           
 
1576
                  if(element_qname)
 
1577
                  {
 
1578
                     axutil_qname_free(element_qname, env);
 
1579
                     element_qname = NULL;
 
1580
                  }
 
1581
                 
 
1582
 
 
1583
                     
 
1584
                     /*
 
1585
                      * building reservationId element
 
1586
                      */
 
1587
                     
 
1588
                     
 
1589
                     
 
1590
                                    /*
 
1591
                                     * because elements are ordered this works fine
 
1592
                                     */
 
1593
                                  
 
1594
                                   
 
1595
                                   if(current_node != NULL && is_early_node_valid)
 
1596
                                   {
 
1597
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
1598
                                       
 
1599
                                       
 
1600
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
1601
                                        {
 
1602
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
1603
                                        }
 
1604
                                        if(current_node != NULL)
 
1605
                                        {
 
1606
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
1607
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
1608
                                        }
 
1609
                                       
 
1610
                                   }
 
1611
                                   is_early_node_valid = AXIS2_FALSE;
 
1612
                                 
 
1613
                                 element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL);
 
1614
                                 
 
1615
 
 
1616
                           if ( 
 
1617
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
1618
                           {
 
1619
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
1620
                              {
 
1621
                                is_early_node_valid = AXIS2_TRUE;
 
1622
                              }
 
1623
                              
 
1624
                                 
 
1625
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
1626
                                      if(text_value != NULL)
 
1627
                                      {
 
1628
                                            status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env,
 
1629
                                                               text_value);
 
1630
                                      }
 
1631
                                      
 
1632
                                      else
 
1633
                                      {
 
1634
                                            /*
 
1635
                                             * axis2_qname_t *qname = NULL;
 
1636
                                             * axiom_attribute_t *the_attri = NULL;
 
1637
                                             * 
 
1638
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
1639
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
1640
                                             */
 
1641
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
1642
 
 
1643
                                            axiom_attribute_t *the_attri = NULL;
 
1644
                                            axis2_char_t *attrib_text = NULL;
 
1645
                                            axutil_hash_t *attribute_hash = NULL;
 
1646
 
 
1647
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
1648
 
 
1649
                                            attrib_text = NULL;
 
1650
                                            if(attribute_hash)
 
1651
                                            {
 
1652
                                                 axutil_hash_index_t *hi;
 
1653
                                                 void *val;
 
1654
                                                 const void *key;
 
1655
                                        
 
1656
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
1657
                                                 {
 
1658
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
1659
                                                     
 
1660
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
1661
                                                     {
 
1662
                                                         the_attri = (axiom_attribute_t*)val;
 
1663
                                                         break;
 
1664
                                                     }
 
1665
                                                 }
 
1666
                                            }
 
1667
 
 
1668
                                            if(the_attri)
 
1669
                                            {
 
1670
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
1671
                                            }
 
1672
                                            else
 
1673
                                            {
 
1674
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
1675
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
1676
                                            }
 
1677
 
 
1678
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
1679
                                            {
 
1680
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId");
 
1681
                                                status = AXIS2_FAILURE;
 
1682
                                            }
 
1683
                                            else
 
1684
                                            {
 
1685
                                                /* after all, we found this is a empty string */
 
1686
                                                status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env,
 
1687
                                                                   "");
 
1688
                                            }
 
1689
                                      }
 
1690
                                      
 
1691
                                 if(AXIS2_FAILURE ==  status)
 
1692
                                 {
 
1693
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId ");
 
1694
                                     if(element_qname)
 
1695
                                     {
 
1696
                                         axutil_qname_free(element_qname, env);
 
1697
                                     }
 
1698
                                     return AXIS2_FAILURE;
 
1699
                                 }
 
1700
                              }
 
1701
                           
 
1702
                              else if(!dont_care_minoccurs)
 
1703
                              {
 
1704
                                  if(element_qname)
 
1705
                                  {
 
1706
                                      axutil_qname_free(element_qname, env);
 
1707
                                  }
 
1708
                                  /* this is not a nillable element*/
 
1709
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing");
 
1710
                                  return AXIS2_FAILURE;
 
1711
                              }
 
1712
                           
 
1713
                  if(element_qname)
 
1714
                  {
 
1715
                     axutil_qname_free(element_qname, env);
 
1716
                     element_qname = NULL;
 
1717
                  }
 
1718
                 
 
1719
 
 
1720
                     
1624
1721
                     /*
1625
1722
                      * building instanceId element
1626
1723
                      */
1627
 
 
1628
 
 
1629
 
 
 
1724
                     
 
1725
                     
 
1726
                     
1630
1727
                                    /*
1631
1728
                                     * because elements are ordered this works fine
1632
1729
                                     */
1633
 
 
1634
 
 
 
1730
                                  
 
1731
                                   
1635
1732
                                   if(current_node != NULL && is_early_node_valid)
1636
1733
                                   {
1637
1734
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1638
 
 
1639
 
 
 
1735
                                       
 
1736
                                       
1640
1737
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1641
1738
                                        {
1642
1739
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1646
1743
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1647
1744
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1648
1745
                                        }
1649
 
 
 
1746
                                       
1650
1747
                                   }
1651
1748
                                   is_early_node_valid = AXIS2_FALSE;
1652
 
 
 
1749
                                 
1653
1750
                                 element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
1654
 
 
1655
 
 
1656
 
                           if (
 
1751
                                 
 
1752
 
 
1753
                           if ( 
1657
1754
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1658
1755
                           {
1659
1756
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1660
1757
                              {
1661
1758
                                is_early_node_valid = AXIS2_TRUE;
1662
1759
                              }
1663
 
 
1664
 
 
 
1760
                              
 
1761
                                 
1665
1762
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1666
1763
                                      if(text_value != NULL)
1667
1764
                                      {
1668
1765
                                            status = adb_ncRunInstanceType_set_instanceId(_ncRunInstanceType, env,
1669
1766
                                                               text_value);
1670
1767
                                      }
1671
 
 
 
1768
                                      
1672
1769
                                      else
1673
1770
                                      {
1674
1771
                                            /*
1675
1772
                                             * axis2_qname_t *qname = NULL;
1676
1773
                                             * axiom_attribute_t *the_attri = NULL;
1677
 
                                             *
 
1774
                                             * 
1678
1775
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1679
1776
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1680
1777
                                             */
1692
1789
                                                 axutil_hash_index_t *hi;
1693
1790
                                                 void *val;
1694
1791
                                                 const void *key;
1695
 
 
1696
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
1792
                                        
 
1793
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1697
1794
                                                 {
1698
1795
                                                     axutil_hash_this(hi, &key, NULL, &val);
1699
 
 
 
1796
                                                     
1700
1797
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1701
1798
                                                     {
1702
1799
                                                         the_attri = (axiom_attribute_t*)val;
1727
1824
                                                                   "");
1728
1825
                                            }
1729
1826
                                      }
1730
 
 
 
1827
                                      
1731
1828
                                 if(AXIS2_FAILURE ==  status)
1732
1829
                                 {
1733
1830
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
1738
1835
                                     return AXIS2_FAILURE;
1739
1836
                                 }
1740
1837
                              }
1741
 
 
 
1838
                           
1742
1839
                              else if(!dont_care_minoccurs)
1743
1840
                              {
1744
1841
                                  if(element_qname)
1749
1846
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing");
1750
1847
                                  return AXIS2_FAILURE;
1751
1848
                              }
1752
 
 
 
1849
                           
1753
1850
                  if(element_qname)
1754
1851
                  {
1755
1852
                     axutil_qname_free(element_qname, env);
1756
1853
                     element_qname = NULL;
1757
1854
                  }
1758
 
 
1759
 
 
1760
 
 
 
1855
                 
 
1856
 
 
1857
                     
1761
1858
                     /*
1762
1859
                      * building instanceType element
1763
1860
                      */
1764
 
 
1765
 
 
1766
 
 
 
1861
                     
 
1862
                     
 
1863
                     
1767
1864
                                    /*
1768
1865
                                     * because elements are ordered this works fine
1769
1866
                                     */
1770
 
 
1771
 
 
 
1867
                                  
 
1868
                                   
1772
1869
                                   if(current_node != NULL && is_early_node_valid)
1773
1870
                                   {
1774
1871
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1775
 
 
1776
 
 
 
1872
                                       
 
1873
                                       
1777
1874
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1778
1875
                                        {
1779
1876
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1783
1880
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1784
1881
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1785
1882
                                        }
1786
 
 
 
1883
                                       
1787
1884
                                   }
1788
1885
                                   is_early_node_valid = AXIS2_FALSE;
1789
 
 
 
1886
                                 
1790
1887
                                 element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL);
1791
 
 
1792
 
 
1793
 
                           if (adb_virtualMachineType_is_particle() ||
 
1888
                                 
 
1889
 
 
1890
                           if (adb_virtualMachineType_is_particle() ||  
1794
1891
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1795
1892
                           {
1796
1893
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1797
1894
                              {
1798
1895
                                is_early_node_valid = AXIS2_TRUE;
1799
1896
                              }
1800
 
 
1801
 
 
 
1897
                              
 
1898
                                 
1802
1899
                                      element = (void*)adb_virtualMachineType_create(env);
1803
1900
 
1804
1901
                                      status =  adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element,
1812
1909
                                          status = adb_ncRunInstanceType_set_instanceType(_ncRunInstanceType, env,
1813
1910
                                                                   (adb_virtualMachineType_t*)element);
1814
1911
                                      }
1815
 
 
 
1912
                                    
1816
1913
                                 if(AXIS2_FAILURE ==  status)
1817
1914
                                 {
1818
1915
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType ");
1823
1920
                                     return AXIS2_FAILURE;
1824
1921
                                 }
1825
1922
                              }
1826
 
 
 
1923
                           
1827
1924
                              else if(!dont_care_minoccurs)
1828
1925
                              {
1829
1926
                                  if(element_qname)
1834
1931
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceType missing");
1835
1932
                                  return AXIS2_FAILURE;
1836
1933
                              }
1837
 
 
 
1934
                           
1838
1935
                  if(element_qname)
1839
1936
                  {
1840
1937
                     axutil_qname_free(element_qname, env);
1841
1938
                     element_qname = NULL;
1842
1939
                  }
1843
 
 
1844
 
 
1845
 
 
 
1940
                 
 
1941
 
 
1942
                     
1846
1943
                     /*
1847
1944
                      * building keyName element
1848
1945
                      */
1849
 
 
1850
 
 
1851
 
 
 
1946
                     
 
1947
                     
 
1948
                     
1852
1949
                                    /*
1853
1950
                                     * because elements are ordered this works fine
1854
1951
                                     */
1855
 
 
1856
 
 
 
1952
                                  
 
1953
                                   
1857
1954
                                   if(current_node != NULL && is_early_node_valid)
1858
1955
                                   {
1859
1956
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1860
 
 
1861
 
 
 
1957
                                       
 
1958
                                       
1862
1959
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1863
1960
                                        {
1864
1961
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1868
1965
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1869
1966
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1870
1967
                                        }
1871
 
 
 
1968
                                       
1872
1969
                                   }
1873
1970
                                   is_early_node_valid = AXIS2_FALSE;
1874
 
 
 
1971
                                 
1875
1972
                                 element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL);
1876
 
 
1877
 
 
1878
 
                           if (
 
1973
                                 
 
1974
 
 
1975
                           if ( 
1879
1976
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1880
1977
                           {
1881
1978
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1882
1979
                              {
1883
1980
                                is_early_node_valid = AXIS2_TRUE;
1884
1981
                              }
1885
 
 
1886
 
 
 
1982
                              
 
1983
                                 
1887
1984
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1888
1985
                                      if(text_value != NULL)
1889
1986
                                      {
1890
1987
                                            status = adb_ncRunInstanceType_set_keyName(_ncRunInstanceType, env,
1891
1988
                                                               text_value);
1892
1989
                                      }
1893
 
 
 
1990
                                      
1894
1991
                                      else
1895
1992
                                      {
1896
1993
                                            /*
1897
1994
                                             * axis2_qname_t *qname = NULL;
1898
1995
                                             * axiom_attribute_t *the_attri = NULL;
1899
 
                                             *
 
1996
                                             * 
1900
1997
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1901
1998
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1902
1999
                                             */
1914
2011
                                                 axutil_hash_index_t *hi;
1915
2012
                                                 void *val;
1916
2013
                                                 const void *key;
1917
 
 
1918
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
2014
                                        
 
2015
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
1919
2016
                                                 {
1920
2017
                                                     axutil_hash_this(hi, &key, NULL, &val);
1921
 
 
 
2018
                                                     
1922
2019
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1923
2020
                                                     {
1924
2021
                                                         the_attri = (axiom_attribute_t*)val;
1949
2046
                                                                   "");
1950
2047
                                            }
1951
2048
                                      }
1952
 
 
 
2049
                                      
1953
2050
                                 if(AXIS2_FAILURE ==  status)
1954
2051
                                 {
1955
2052
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName ");
1960
2057
                                     return AXIS2_FAILURE;
1961
2058
                                 }
1962
2059
                              }
1963
 
 
 
2060
                           
1964
2061
                              else if(!dont_care_minoccurs)
1965
2062
                              {
1966
2063
                                  if(element_qname)
1971
2068
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element keyName missing");
1972
2069
                                  return AXIS2_FAILURE;
1973
2070
                              }
1974
 
 
1975
 
                  if(element_qname)
1976
 
                  {
1977
 
                     axutil_qname_free(element_qname, env);
1978
 
                     element_qname = NULL;
1979
 
                  }
1980
 
 
1981
 
 
1982
 
 
1983
 
                     /*
1984
 
                      * building publicMacAddress element
1985
 
                      */
1986
 
 
1987
 
 
1988
 
 
1989
 
                                    /*
1990
 
                                     * because elements are ordered this works fine
1991
 
                                     */
1992
 
 
1993
 
 
1994
 
                                   if(current_node != NULL && is_early_node_valid)
1995
 
                                   {
1996
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1997
 
 
1998
 
 
1999
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2000
 
                                        {
2001
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
2002
 
                                        }
2003
 
                                        if(current_node != NULL)
2004
 
                                        {
2005
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2006
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
2007
 
                                        }
2008
 
 
2009
 
                                   }
2010
 
                                   is_early_node_valid = AXIS2_FALSE;
2011
 
 
2012
 
                                 element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL);
2013
 
 
2014
 
 
2015
 
                           if (
2016
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
2017
 
                           {
2018
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
2019
 
                              {
2020
 
                                is_early_node_valid = AXIS2_TRUE;
2021
 
                              }
2022
 
 
2023
 
 
2024
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
2025
 
                                      if(text_value != NULL)
2026
 
                                      {
2027
 
                                            status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env,
2028
 
                                                               text_value);
2029
 
                                      }
2030
 
 
2031
 
                                      else
2032
 
                                      {
2033
 
                                            /*
2034
 
                                             * axis2_qname_t *qname = NULL;
2035
 
                                             * axiom_attribute_t *the_attri = NULL;
2036
 
                                             *
2037
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2038
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
2039
 
                                             */
2040
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2041
 
 
2042
 
                                            axiom_attribute_t *the_attri = NULL;
2043
 
                                            axis2_char_t *attrib_text = NULL;
2044
 
                                            axutil_hash_t *attribute_hash = NULL;
2045
 
 
2046
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
2047
 
 
2048
 
                                            attrib_text = NULL;
2049
 
                                            if(attribute_hash)
2050
 
                                            {
2051
 
                                                 axutil_hash_index_t *hi;
2052
 
                                                 void *val;
2053
 
                                                 const void *key;
2054
 
 
2055
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
2056
 
                                                 {
2057
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
2058
 
 
2059
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2060
 
                                                     {
2061
 
                                                         the_attri = (axiom_attribute_t*)val;
2062
 
                                                         break;
2063
 
                                                     }
2064
 
                                                 }
2065
 
                                            }
2066
 
 
2067
 
                                            if(the_attri)
2068
 
                                            {
2069
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
2070
 
                                            }
2071
 
                                            else
2072
 
                                            {
2073
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2074
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2075
 
                                            }
2076
 
 
2077
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2078
 
                                            {
2079
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress");
2080
 
                                                status = AXIS2_FAILURE;
2081
 
                                            }
2082
 
                                            else
2083
 
                                            {
2084
 
                                                /* after all, we found this is a empty string */
2085
 
                                                status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env,
2086
 
                                                                   "");
2087
 
                                            }
2088
 
                                      }
2089
 
 
2090
 
                                 if(AXIS2_FAILURE ==  status)
2091
 
                                 {
2092
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress ");
2093
 
                                     if(element_qname)
2094
 
                                     {
2095
 
                                         axutil_qname_free(element_qname, env);
2096
 
                                     }
2097
 
                                     return AXIS2_FAILURE;
2098
 
                                 }
2099
 
                              }
2100
 
 
2101
 
                              else if(!dont_care_minoccurs)
2102
 
                              {
2103
 
                                  if(element_qname)
2104
 
                                  {
2105
 
                                      axutil_qname_free(element_qname, env);
2106
 
                                  }
2107
 
                                  /* this is not a nillable element*/
2108
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing");
2109
 
                                  return AXIS2_FAILURE;
2110
 
                              }
2111
 
 
2112
 
                  if(element_qname)
2113
 
                  {
2114
 
                     axutil_qname_free(element_qname, env);
2115
 
                     element_qname = NULL;
2116
 
                  }
2117
 
 
2118
 
 
2119
 
 
2120
 
                     /*
2121
 
                      * building privateMacAddress element
2122
 
                      */
2123
 
 
2124
 
 
2125
 
 
2126
 
                                    /*
2127
 
                                     * because elements are ordered this works fine
2128
 
                                     */
2129
 
 
2130
 
 
2131
 
                                   if(current_node != NULL && is_early_node_valid)
2132
 
                                   {
2133
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
2134
 
 
2135
 
 
2136
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2137
 
                                        {
2138
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
2139
 
                                        }
2140
 
                                        if(current_node != NULL)
2141
 
                                        {
2142
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2143
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
2144
 
                                        }
2145
 
 
2146
 
                                   }
2147
 
                                   is_early_node_valid = AXIS2_FALSE;
2148
 
 
2149
 
                                 element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL);
2150
 
 
2151
 
 
2152
 
                           if (
2153
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
2154
 
                           {
2155
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
2156
 
                              {
2157
 
                                is_early_node_valid = AXIS2_TRUE;
2158
 
                              }
2159
 
 
2160
 
 
2161
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
2162
 
                                      if(text_value != NULL)
2163
 
                                      {
2164
 
                                            status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env,
2165
 
                                                               text_value);
2166
 
                                      }
2167
 
 
2168
 
                                      else
2169
 
                                      {
2170
 
                                            /*
2171
 
                                             * axis2_qname_t *qname = NULL;
2172
 
                                             * axiom_attribute_t *the_attri = NULL;
2173
 
                                             *
2174
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2175
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
2176
 
                                             */
2177
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2178
 
 
2179
 
                                            axiom_attribute_t *the_attri = NULL;
2180
 
                                            axis2_char_t *attrib_text = NULL;
2181
 
                                            axutil_hash_t *attribute_hash = NULL;
2182
 
 
2183
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
2184
 
 
2185
 
                                            attrib_text = NULL;
2186
 
                                            if(attribute_hash)
2187
 
                                            {
2188
 
                                                 axutil_hash_index_t *hi;
2189
 
                                                 void *val;
2190
 
                                                 const void *key;
2191
 
 
2192
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
2193
 
                                                 {
2194
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
2195
 
 
2196
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2197
 
                                                     {
2198
 
                                                         the_attri = (axiom_attribute_t*)val;
2199
 
                                                         break;
2200
 
                                                     }
2201
 
                                                 }
2202
 
                                            }
2203
 
 
2204
 
                                            if(the_attri)
2205
 
                                            {
2206
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
2207
 
                                            }
2208
 
                                            else
2209
 
                                            {
2210
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2211
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2212
 
                                            }
2213
 
 
2214
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2215
 
                                            {
2216
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress");
2217
 
                                                status = AXIS2_FAILURE;
2218
 
                                            }
2219
 
                                            else
2220
 
                                            {
2221
 
                                                /* after all, we found this is a empty string */
2222
 
                                                status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env,
2223
 
                                                                   "");
2224
 
                                            }
2225
 
                                      }
2226
 
 
2227
 
                                 if(AXIS2_FAILURE ==  status)
2228
 
                                 {
2229
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress ");
2230
 
                                     if(element_qname)
2231
 
                                     {
2232
 
                                         axutil_qname_free(element_qname, env);
2233
 
                                     }
2234
 
                                     return AXIS2_FAILURE;
2235
 
                                 }
2236
 
                              }
2237
 
 
2238
 
                              else if(!dont_care_minoccurs)
2239
 
                              {
2240
 
                                  if(element_qname)
2241
 
                                  {
2242
 
                                      axutil_qname_free(element_qname, env);
2243
 
                                  }
2244
 
                                  /* this is not a nillable element*/
2245
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing");
2246
 
                                  return AXIS2_FAILURE;
2247
 
                              }
2248
 
 
2249
 
                  if(element_qname)
2250
 
                  {
2251
 
                     axutil_qname_free(element_qname, env);
2252
 
                     element_qname = NULL;
2253
 
                  }
2254
 
 
2255
 
 
2256
 
 
2257
 
                     /*
2258
 
                      * building reservationId element
2259
 
                      */
2260
 
 
2261
 
 
2262
 
 
2263
 
                                    /*
2264
 
                                     * because elements are ordered this works fine
2265
 
                                     */
2266
 
 
2267
 
 
2268
 
                                   if(current_node != NULL && is_early_node_valid)
2269
 
                                   {
2270
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
2271
 
 
2272
 
 
2273
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2274
 
                                        {
2275
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
2276
 
                                        }
2277
 
                                        if(current_node != NULL)
2278
 
                                        {
2279
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2280
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
2281
 
                                        }
2282
 
 
2283
 
                                   }
2284
 
                                   is_early_node_valid = AXIS2_FALSE;
2285
 
 
2286
 
                                 element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL);
2287
 
 
2288
 
 
2289
 
                           if (
2290
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
2291
 
                           {
2292
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
2293
 
                              {
2294
 
                                is_early_node_valid = AXIS2_TRUE;
2295
 
                              }
2296
 
 
2297
 
 
2298
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
2299
 
                                      if(text_value != NULL)
2300
 
                                      {
2301
 
                                            status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env,
2302
 
                                                               text_value);
2303
 
                                      }
2304
 
 
2305
 
                                      else
2306
 
                                      {
2307
 
                                            /*
2308
 
                                             * axis2_qname_t *qname = NULL;
2309
 
                                             * axiom_attribute_t *the_attri = NULL;
2310
 
                                             *
2311
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2312
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
2313
 
                                             */
2314
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2315
 
 
2316
 
                                            axiom_attribute_t *the_attri = NULL;
2317
 
                                            axis2_char_t *attrib_text = NULL;
2318
 
                                            axutil_hash_t *attribute_hash = NULL;
2319
 
 
2320
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
2321
 
 
2322
 
                                            attrib_text = NULL;
2323
 
                                            if(attribute_hash)
2324
 
                                            {
2325
 
                                                 axutil_hash_index_t *hi;
2326
 
                                                 void *val;
2327
 
                                                 const void *key;
2328
 
 
2329
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
2330
 
                                                 {
2331
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
2332
 
 
2333
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2334
 
                                                     {
2335
 
                                                         the_attri = (axiom_attribute_t*)val;
2336
 
                                                         break;
2337
 
                                                     }
2338
 
                                                 }
2339
 
                                            }
2340
 
 
2341
 
                                            if(the_attri)
2342
 
                                            {
2343
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
2344
 
                                            }
2345
 
                                            else
2346
 
                                            {
2347
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2348
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2349
 
                                            }
2350
 
 
2351
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2352
 
                                            {
2353
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId");
2354
 
                                                status = AXIS2_FAILURE;
2355
 
                                            }
2356
 
                                            else
2357
 
                                            {
2358
 
                                                /* after all, we found this is a empty string */
2359
 
                                                status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env,
2360
 
                                                                   "");
2361
 
                                            }
2362
 
                                      }
2363
 
 
2364
 
                                 if(AXIS2_FAILURE ==  status)
2365
 
                                 {
2366
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId ");
2367
 
                                     if(element_qname)
2368
 
                                     {
2369
 
                                         axutil_qname_free(element_qname, env);
2370
 
                                     }
2371
 
                                     return AXIS2_FAILURE;
2372
 
                                 }
2373
 
                              }
2374
 
 
2375
 
                              else if(!dont_care_minoccurs)
2376
 
                              {
2377
 
                                  if(element_qname)
2378
 
                                  {
2379
 
                                      axutil_qname_free(element_qname, env);
2380
 
                                  }
2381
 
                                  /* this is not a nillable element*/
2382
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing");
2383
 
                                  return AXIS2_FAILURE;
2384
 
                              }
2385
 
 
2386
 
                  if(element_qname)
2387
 
                  {
2388
 
                     axutil_qname_free(element_qname, env);
2389
 
                     element_qname = NULL;
2390
 
                  }
2391
 
 
2392
 
 
2393
 
 
2394
 
                     /*
2395
 
                      * building vlan element
2396
 
                      */
2397
 
 
2398
 
 
2399
 
 
2400
 
                                    /*
2401
 
                                     * because elements are ordered this works fine
2402
 
                                     */
2403
 
 
2404
 
 
2405
 
                                   if(current_node != NULL && is_early_node_valid)
2406
 
                                   {
2407
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
2408
 
 
2409
 
 
2410
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2411
 
                                        {
2412
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
2413
 
                                        }
2414
 
                                        if(current_node != NULL)
2415
 
                                        {
2416
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2417
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
2418
 
                                        }
2419
 
 
2420
 
                                   }
2421
 
                                   is_early_node_valid = AXIS2_FALSE;
2422
 
 
2423
 
                                 element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
2424
 
 
2425
 
 
2426
 
                           if (
2427
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
2428
 
                           {
2429
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
2430
 
                              {
2431
 
                                is_early_node_valid = AXIS2_TRUE;
2432
 
                              }
2433
 
 
2434
 
 
2435
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
2436
 
                                      if(text_value != NULL)
2437
 
                                      {
2438
 
                                            status = adb_ncRunInstanceType_set_vlan(_ncRunInstanceType, env,
2439
 
                                                                   atoi(text_value));
2440
 
                                      }
2441
 
 
2442
 
                                      else
2443
 
                                      {
2444
 
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
2445
 
                                          status = AXIS2_FAILURE;
2446
 
                                      }
2447
 
 
2448
 
                                 if(AXIS2_FAILURE ==  status)
2449
 
                                 {
2450
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
2451
 
                                     if(element_qname)
2452
 
                                     {
2453
 
                                         axutil_qname_free(element_qname, env);
2454
 
                                     }
2455
 
                                     return AXIS2_FAILURE;
2456
 
                                 }
2457
 
                              }
2458
 
 
2459
 
                              else if(!dont_care_minoccurs)
2460
 
                              {
2461
 
                                  if(element_qname)
2462
 
                                  {
2463
 
                                      axutil_qname_free(element_qname, env);
2464
 
                                  }
2465
 
                                  /* this is not a nillable element*/
2466
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing");
2467
 
                                  return AXIS2_FAILURE;
2468
 
                              }
2469
 
 
2470
 
                  if(element_qname)
2471
 
                  {
2472
 
                     axutil_qname_free(element_qname, env);
2473
 
                     element_qname = NULL;
2474
 
                  }
2475
 
 
2476
 
 
2477
 
 
 
2071
                           
 
2072
                  if(element_qname)
 
2073
                  {
 
2074
                     axutil_qname_free(element_qname, env);
 
2075
                     element_qname = NULL;
 
2076
                  }
 
2077
                 
 
2078
 
 
2079
                     
 
2080
                     /*
 
2081
                      * building netParams element
 
2082
                      */
 
2083
                     
 
2084
                     
 
2085
                     
 
2086
                                    /*
 
2087
                                     * because elements are ordered this works fine
 
2088
                                     */
 
2089
                                  
 
2090
                                   
 
2091
                                   if(current_node != NULL && is_early_node_valid)
 
2092
                                   {
 
2093
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
2094
                                       
 
2095
                                       
 
2096
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
2097
                                        {
 
2098
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
2099
                                        }
 
2100
                                        if(current_node != NULL)
 
2101
                                        {
 
2102
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
2103
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
2104
                                        }
 
2105
                                       
 
2106
                                   }
 
2107
                                   is_early_node_valid = AXIS2_FALSE;
 
2108
                                 
 
2109
                                 element_qname = axutil_qname_create(env, "netParams", "http://eucalyptus.ucsb.edu/", NULL);
 
2110
                                 
 
2111
 
 
2112
                           if (adb_netConfigType_is_particle() ||  
 
2113
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
2114
                           {
 
2115
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
2116
                              {
 
2117
                                is_early_node_valid = AXIS2_TRUE;
 
2118
                              }
 
2119
                              
 
2120
                                 
 
2121
                                      element = (void*)adb_netConfigType_create(env);
 
2122
 
 
2123
                                      status =  adb_netConfigType_deserialize((adb_netConfigType_t*)element,
 
2124
                                                                            env, &current_node, &is_early_node_valid, AXIS2_FALSE);
 
2125
                                      if(AXIS2_FAILURE == status)
 
2126
                                      {
 
2127
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element netParams");
 
2128
                                      }
 
2129
                                      else
 
2130
                                      {
 
2131
                                          status = adb_ncRunInstanceType_set_netParams(_ncRunInstanceType, env,
 
2132
                                                                   (adb_netConfigType_t*)element);
 
2133
                                      }
 
2134
                                    
 
2135
                                 if(AXIS2_FAILURE ==  status)
 
2136
                                 {
 
2137
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netParams ");
 
2138
                                     if(element_qname)
 
2139
                                     {
 
2140
                                         axutil_qname_free(element_qname, env);
 
2141
                                     }
 
2142
                                     return AXIS2_FAILURE;
 
2143
                                 }
 
2144
                              }
 
2145
                           
 
2146
                              else if(!dont_care_minoccurs)
 
2147
                              {
 
2148
                                  if(element_qname)
 
2149
                                  {
 
2150
                                      axutil_qname_free(element_qname, env);
 
2151
                                  }
 
2152
                                  /* this is not a nillable element*/
 
2153
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element netParams missing");
 
2154
                                  return AXIS2_FAILURE;
 
2155
                              }
 
2156
                           
 
2157
                  if(element_qname)
 
2158
                  {
 
2159
                     axutil_qname_free(element_qname, env);
 
2160
                     element_qname = NULL;
 
2161
                  }
 
2162
                 
 
2163
 
 
2164
                     
2478
2165
                     /*
2479
2166
                      * building userData element
2480
2167
                      */
2481
 
 
2482
 
 
2483
 
 
 
2168
                     
 
2169
                     
 
2170
                     
2484
2171
                                    /*
2485
2172
                                     * because elements are ordered this works fine
2486
2173
                                     */
2487
 
 
2488
 
 
 
2174
                                  
 
2175
                                   
2489
2176
                                   if(current_node != NULL && is_early_node_valid)
2490
2177
                                   {
2491
2178
                                       current_node = axiom_node_get_next_sibling(current_node, env);
2492
 
 
2493
 
 
 
2179
                                       
 
2180
                                       
2494
2181
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2495
2182
                                        {
2496
2183
                                            current_node = axiom_node_get_next_sibling(current_node, env);
2500
2187
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2501
2188
                                            qname = axiom_element_get_qname(current_element, env, current_node);
2502
2189
                                        }
2503
 
 
 
2190
                                       
2504
2191
                                   }
2505
2192
                                   is_early_node_valid = AXIS2_FALSE;
2506
 
 
 
2193
                                 
2507
2194
                                 element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL);
2508
 
 
2509
 
 
2510
 
                           if (
 
2195
                                 
 
2196
 
 
2197
                           if ( 
2511
2198
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
2512
2199
                           {
2513
2200
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
2514
2201
                              {
2515
2202
                                is_early_node_valid = AXIS2_TRUE;
2516
2203
                              }
2517
 
 
2518
 
 
 
2204
                              
 
2205
                                 
2519
2206
                                      text_value = axiom_element_get_text(current_element, env, current_node);
2520
2207
                                      if(text_value != NULL)
2521
2208
                                      {
2522
2209
                                            status = adb_ncRunInstanceType_set_userData(_ncRunInstanceType, env,
2523
2210
                                                               text_value);
2524
2211
                                      }
2525
 
 
 
2212
                                      
2526
2213
                                      else
2527
2214
                                      {
2528
2215
                                            /*
2529
2216
                                             * axis2_qname_t *qname = NULL;
2530
2217
                                             * axiom_attribute_t *the_attri = NULL;
2531
 
                                             *
 
2218
                                             * 
2532
2219
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2533
2220
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
2534
2221
                                             */
2546
2233
                                                 axutil_hash_index_t *hi;
2547
2234
                                                 void *val;
2548
2235
                                                 const void *key;
2549
 
 
2550
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
2236
                                        
 
2237
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
2551
2238
                                                 {
2552
2239
                                                     axutil_hash_this(hi, &key, NULL, &val);
2553
 
 
 
2240
                                                     
2554
2241
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2555
2242
                                                     {
2556
2243
                                                         the_attri = (axiom_attribute_t*)val;
2581
2268
                                                                   "");
2582
2269
                                            }
2583
2270
                                      }
2584
 
 
 
2271
                                      
2585
2272
                                 if(AXIS2_FAILURE ==  status)
2586
2273
                                 {
2587
2274
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData ");
2592
2279
                                     return AXIS2_FAILURE;
2593
2280
                                 }
2594
2281
                              }
2595
 
 
 
2282
                           
2596
2283
                  if(element_qname)
2597
2284
                  {
2598
2285
                     axutil_qname_free(element_qname, env);
2599
2286
                     element_qname = NULL;
2600
2287
                  }
2601
 
 
2602
 
 
2603
 
 
 
2288
                 
 
2289
 
 
2290
                     
2604
2291
                     /*
2605
2292
                      * building launchIndex element
2606
2293
                      */
2607
 
 
2608
 
 
2609
 
 
 
2294
                     
 
2295
                     
 
2296
                     
2610
2297
                                    /*
2611
2298
                                     * because elements are ordered this works fine
2612
2299
                                     */
2613
 
 
2614
 
 
 
2300
                                  
 
2301
                                   
2615
2302
                                   if(current_node != NULL && is_early_node_valid)
2616
2303
                                   {
2617
2304
                                       current_node = axiom_node_get_next_sibling(current_node, env);
2618
 
 
2619
 
 
 
2305
                                       
 
2306
                                       
2620
2307
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2621
2308
                                        {
2622
2309
                                            current_node = axiom_node_get_next_sibling(current_node, env);
2626
2313
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2627
2314
                                            qname = axiom_element_get_qname(current_element, env, current_node);
2628
2315
                                        }
2629
 
 
 
2316
                                       
2630
2317
                                   }
2631
2318
                                   is_early_node_valid = AXIS2_FALSE;
2632
 
 
 
2319
                                 
2633
2320
                                 element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL);
2634
 
 
2635
 
 
2636
 
                           if (
 
2321
                                 
 
2322
 
 
2323
                           if ( 
2637
2324
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
2638
2325
                           {
2639
2326
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
2640
2327
                              {
2641
2328
                                is_early_node_valid = AXIS2_TRUE;
2642
2329
                              }
2643
 
 
2644
 
 
 
2330
                              
 
2331
                                 
2645
2332
                                      text_value = axiom_element_get_text(current_element, env, current_node);
2646
2333
                                      if(text_value != NULL)
2647
2334
                                      {
2648
2335
                                            status = adb_ncRunInstanceType_set_launchIndex(_ncRunInstanceType, env,
2649
2336
                                                               text_value);
2650
2337
                                      }
2651
 
 
 
2338
                                      
2652
2339
                                      else
2653
2340
                                      {
2654
2341
                                            /*
2655
2342
                                             * axis2_qname_t *qname = NULL;
2656
2343
                                             * axiom_attribute_t *the_attri = NULL;
2657
 
                                             *
 
2344
                                             * 
2658
2345
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2659
2346
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
2660
2347
                                             */
2672
2359
                                                 axutil_hash_index_t *hi;
2673
2360
                                                 void *val;
2674
2361
                                                 const void *key;
2675
 
 
2676
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
2362
                                        
 
2363
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
2677
2364
                                                 {
2678
2365
                                                     axutil_hash_this(hi, &key, NULL, &val);
2679
 
 
 
2366
                                                     
2680
2367
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2681
2368
                                                     {
2682
2369
                                                         the_attri = (axiom_attribute_t*)val;
2707
2394
                                                                   "");
2708
2395
                                            }
2709
2396
                                      }
2710
 
 
 
2397
                                      
2711
2398
                                 if(AXIS2_FAILURE ==  status)
2712
2399
                                 {
2713
2400
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex ");
2718
2405
                                     return AXIS2_FAILURE;
2719
2406
                                 }
2720
2407
                              }
2721
 
 
 
2408
                           
2722
2409
                  if(element_qname)
2723
2410
                  {
2724
2411
                     axutil_qname_free(element_qname, env);
2725
2412
                     element_qname = NULL;
2726
2413
                  }
2727
 
 
 
2414
                 
2728
2415
                    /*
2729
2416
                     * building groupNames array
2730
2417
                     */
2731
2418
                       arr_list = axutil_array_list_create(env, 10);
2732
 
 
2733
 
 
2734
 
 
 
2419
                   
 
2420
 
 
2421
                     
2735
2422
                     /*
2736
2423
                      * building groupNames element
2737
2424
                      */
2738
 
 
2739
 
 
2740
 
 
 
2425
                     
 
2426
                     
 
2427
                     
2741
2428
                                    element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL);
2742
 
 
2743
 
 
2744
 
                               for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
2745
 
 
 
2429
                                  
 
2430
                               
 
2431
                               for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;) 
 
2432
                                             
2746
2433
                               {
2747
2434
                                  if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2748
2435
                                  {
2750
2437
                                     is_early_node_valid = AXIS2_FALSE;
2751
2438
                                     continue;
2752
2439
                                  }
2753
 
 
 
2440
                                  
2754
2441
                                  current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2755
2442
                                  qname = axiom_element_get_qname(current_element, env, current_node);
2756
2443
 
2757
2444
                                  if (axutil_qname_equals(element_qname, env, qname))
2758
2445
                                  {
2759
 
 
 
2446
                                  
2760
2447
                                      is_early_node_valid = AXIS2_TRUE;
2761
 
 
2762
 
 
 
2448
                                      
 
2449
                                     
2763
2450
                                          text_value = axiom_element_get_text(current_element, env, current_node);
2764
2451
                                          if(text_value != NULL)
2765
2452
                                          {
2766
2453
                                              axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
2767
2454
                                          }
2768
 
 
 
2455
                                          
2769
2456
                                          else
2770
2457
                                          {
2771
2458
                                              /*
2772
2459
                                               * axis2_qname_t *qname = NULL;
2773
2460
                                               * axiom_attribute_t *the_attri = NULL;
2774
 
                                               *
 
2461
                                               * 
2775
2462
                                               * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2776
2463
                                               * the_attri = axiom_element_get_attribute(current_element, env, qname);
2777
2464
                                               */
2778
 
 
 
2465
                                           
2779
2466
                                              /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2780
 
 
 
2467
                                             
2781
2468
                                              axiom_attribute_t *the_attri = NULL;
2782
2469
                                              axis2_char_t *attrib_text = NULL;
2783
2470
                                              axutil_hash_t *attribute_hash = NULL;
2784
 
 
 
2471
                                             
2785
2472
                                              attribute_hash = axiom_element_get_all_attributes(current_element, env);
2786
 
 
 
2473
                                             
2787
2474
                                              attrib_text = NULL;
2788
2475
                                              if(attribute_hash)
2789
2476
                                              {
2790
2477
                                                   axutil_hash_index_t *hi;
2791
2478
                                                   void *val;
2792
2479
                                                   const void *key;
2793
 
 
2794
 
                                                   for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
2480
                                             
 
2481
                                                   for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
2795
2482
                                                   {
2796
2483
                                                       axutil_hash_this(hi, &key, NULL, &val);
2797
 
 
 
2484
                                                       
2798
2485
                                                       if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2799
2486
                                                       {
2800
2487
                                                           the_attri = (axiom_attribute_t*)val;
2802
2489
                                                       }
2803
2490
                                                   }
2804
2491
                                              }
2805
 
 
 
2492
                                             
2806
2493
                                              if(the_attri)
2807
2494
                                              {
2808
2495
                                                  attrib_text = axiom_attribute_get_value(the_attri, env);
2812
2499
                                                  /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2813
2500
                                                  attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2814
2501
                                              }
2815
 
 
 
2502
                                             
2816
2503
                                              if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2817
2504
                                              {
2818
2505
                                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames");
2824
2511
                                                  axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
2825
2512
                                              }
2826
2513
                                          }
2827
 
 
 
2514
                                          
2828
2515
                                     if(AXIS2_FAILURE ==  status)
2829
2516
                                     {
2830
2517
                                         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames ");
2847
2534
                                      is_early_node_valid = AXIS2_FALSE;
2848
2535
                                      sequence_broken = 1;
2849
2536
                                  }
2850
 
 
 
2537
                                  
2851
2538
                               }
2852
2539
 
2853
 
 
 
2540
                               
2854
2541
                                   if (i < 0)
2855
2542
                                   {
2856
2543
                                     /* found element out of order */
2865
2552
                                     }
2866
2553
                                     return AXIS2_FAILURE;
2867
2554
                                   }
2868
 
 
 
2555
                               
2869
2556
 
2870
2557
                               if(0 == axutil_array_list_size(arr_list,env))
2871
2558
                               {
2877
2564
                                                                   arr_list);
2878
2565
                               }
2879
2566
 
2880
 
 
 
2567
                             
2881
2568
                  if(element_qname)
2882
2569
                  {
2883
2570
                     axutil_qname_free(element_qname, env);
2884
2571
                     element_qname = NULL;
2885
2572
                  }
2886
 
 
 
2573
                 
2887
2574
          return status;
2888
2575
       }
2889
2576
 
2890
2577
          axis2_bool_t AXIS2_CALL
2891
2578
          adb_ncRunInstanceType_is_particle()
2892
2579
          {
2893
 
 
 
2580
            
2894
2581
                 return AXIS2_FALSE;
2895
 
 
 
2582
              
2896
2583
          }
2897
2584
 
2898
2585
 
2902
2589
                    const axutil_env_t *env, axiom_element_t *parent_element,
2903
2590
                    axutil_hash_t *namespaces, int *next_ns_index)
2904
2591
          {
2905
 
 
 
2592
            
2906
2593
                  /* Here this is an empty function, Nothing to declare */
2907
 
 
 
2594
                 
2908
2595
          }
2909
2596
 
2910
 
 
2911
 
 
 
2597
        
 
2598
        
2912
2599
        axiom_node_t* AXIS2_CALL
2913
2600
        adb_ncRunInstanceType_serialize(
2914
2601
                adb_ncRunInstanceType_t* _ncRunInstanceType,
2915
2602
                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)
2916
2603
        {
2917
 
 
2918
 
 
 
2604
            
 
2605
            
2919
2606
             axis2_char_t *string_to_stream;
2920
 
 
2921
 
 
 
2607
            
 
2608
         
2922
2609
         axiom_node_t *current_node = NULL;
2923
2610
         int tag_closed = 0;
2924
2611
 
2925
 
 
2926
 
 
 
2612
         
 
2613
         
2927
2614
                axiom_namespace_t *ns1 = NULL;
2928
2615
 
2929
2616
                axis2_char_t *qname_uri = NULL;
2930
2617
                axis2_char_t *qname_prefix = NULL;
2931
2618
                axis2_char_t *p_prefix = NULL;
2932
2619
                axis2_bool_t ns_already_defined;
2933
 
 
 
2620
            
2934
2621
               int i = 0;
2935
2622
               int count = 0;
2936
2623
               void *element = NULL;
2937
 
 
 
2624
             
2938
2625
                    axis2_char_t *text_value_1;
2939
2626
                    axis2_char_t *text_value_1_temp;
2940
 
 
 
2627
                    
2941
2628
                    axis2_char_t *text_value_2;
2942
2629
                    axis2_char_t *text_value_2_temp;
2943
 
 
 
2630
                    
2944
2631
                    axis2_char_t text_value_3[64];
2945
 
 
2946
 
                    axis2_char_t text_value_4[64];
2947
 
 
2948
 
                    axis2_char_t *text_value_5;
2949
 
                    axis2_char_t *text_value_5_temp;
2950
 
 
 
2632
                    
 
2633
                    axis2_char_t *text_value_4;
 
2634
                    axis2_char_t *text_value_4_temp;
 
2635
                    
 
2636
                    axis2_char_t text_value_5[64];
 
2637
                    
2951
2638
                    axis2_char_t *text_value_6;
2952
2639
                    axis2_char_t *text_value_6_temp;
2953
 
 
 
2640
                    
2954
2641
                    axis2_char_t *text_value_7;
2955
2642
                    axis2_char_t *text_value_7_temp;
2956
 
 
 
2643
                    
2957
2644
                    axis2_char_t *text_value_8;
2958
2645
                    axis2_char_t *text_value_8_temp;
2959
 
 
 
2646
                    
2960
2647
                    axis2_char_t *text_value_9;
2961
2648
                    axis2_char_t *text_value_9_temp;
2962
 
 
 
2649
                    
2963
2650
                    axis2_char_t *text_value_10;
2964
2651
                    axis2_char_t *text_value_10_temp;
2965
 
 
 
2652
                    
2966
2653
                    axis2_char_t *text_value_11;
2967
2654
                    axis2_char_t *text_value_11_temp;
2968
 
 
2969
 
                    axis2_char_t text_value_12[64];
2970
 
 
 
2655
                    
 
2656
                    axis2_char_t *text_value_12;
 
2657
                    axis2_char_t *text_value_12_temp;
 
2658
                    
2971
2659
                    axis2_char_t *text_value_13;
2972
2660
                    axis2_char_t *text_value_13_temp;
2973
 
 
2974
 
                    axis2_char_t *text_value_14;
2975
 
                    axis2_char_t *text_value_14_temp;
2976
 
 
 
2661
                    
 
2662
                    axis2_char_t text_value_14[64];
 
2663
                    
2977
2664
                    axis2_char_t *text_value_15;
2978
2665
                    axis2_char_t *text_value_15_temp;
2979
 
 
2980
 
                    axis2_char_t *text_value_16;
2981
 
                    axis2_char_t *text_value_16_temp;
2982
 
 
2983
 
                    axis2_char_t text_value_17[64];
2984
 
 
 
2666
                    
 
2667
                    axis2_char_t text_value_16[64];
 
2668
                    
 
2669
                    axis2_char_t *text_value_17;
 
2670
                    axis2_char_t *text_value_17_temp;
 
2671
                    
2985
2672
                    axis2_char_t *text_value_18;
2986
2673
                    axis2_char_t *text_value_18_temp;
2987
 
 
 
2674
                    
2988
2675
                    axis2_char_t *text_value_19;
2989
2676
                    axis2_char_t *text_value_19_temp;
2990
 
 
2991
 
                    axis2_char_t *text_value_20;
2992
 
                    axis2_char_t *text_value_20_temp;
2993
 
 
 
2677
                    
2994
2678
               axis2_char_t *start_input_str = NULL;
2995
2679
               axis2_char_t *end_input_str = NULL;
2996
2680
               unsigned int start_input_str_len = 0;
2997
2681
               unsigned int end_input_str_len = 0;
2998
 
 
2999
 
 
 
2682
            
 
2683
            
3000
2684
               axiom_data_source_t *data_source = NULL;
3001
2685
               axutil_stream_t *stream = NULL;
3002
2686
 
3003
 
 
 
2687
            
3004
2688
 
3005
2689
            AXIS2_ENV_CHECK(env, NULL);
3006
2690
            AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
3007
 
 
3008
 
 
 
2691
            
 
2692
            
3009
2693
                    current_node = parent;
3010
2694
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
3011
2695
                    if (!data_source)
3013
2697
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
3014
2698
                    if (!stream)
3015
2699
                        return NULL;
3016
 
 
 
2700
                  
3017
2701
            if(!parent_tag_closed)
3018
2702
            {
3019
 
 
3020
 
              string_to_stream = ">";
 
2703
            
 
2704
              string_to_stream = ">"; 
3021
2705
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
3022
2706
              tag_closed = 1;
3023
 
 
 
2707
            
3024
2708
            }
3025
 
 
 
2709
            
3026
2710
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3027
2711
                       {
3028
2712
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3029
2713
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3030
2714
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3031
 
 
 
2715
                           
3032
2716
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3033
2717
                                            "http://eucalyptus.ucsb.edu/",
3034
2718
                                            p_prefix));
3035
2719
                       }
3036
 
 
 
2720
                      
3037
2721
 
3038
2722
                   if (!_ncRunInstanceType->is_valid_correlationId)
3039
2723
                   {
3040
 
 
 
2724
                      
3041
2725
                           /* no need to complain for minoccurs=0 element */
3042
 
 
3043
 
 
 
2726
                            
 
2727
                          
3044
2728
                   }
3045
2729
                   else
3046
2730
                   {
3047
2731
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3048
 
                                 (4 + axutil_strlen(p_prefix) +
3049
 
                                  axutil_strlen("correlationId")));
3050
 
 
 
2732
                                 (4 + axutil_strlen(p_prefix) + 
 
2733
                                  axutil_strlen("correlationId"))); 
 
2734
                                 
3051
2735
                                 /* axutil_strlen("<:>") + 1 = 4 */
3052
2736
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3053
2737
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
3054
2738
                                  /* axutil_strlen("</:>") + 1 = 5 */
3055
 
 
3056
 
 
3057
 
 
3058
 
 
3059
 
 
3060
 
 
 
2739
                                  
 
2740
                     
 
2741
 
 
2742
                   
 
2743
                   
 
2744
                     
3061
2745
                     /*
3062
2746
                      * parsing correlationId element
3063
2747
                      */
3064
2748
 
3065
 
 
3066
 
 
 
2749
                    
 
2750
                    
3067
2751
                            sprintf(start_input_str, "<%s%scorrelationId>",
3068
2752
                                 p_prefix?p_prefix:"",
3069
2753
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3070
 
 
 
2754
                            
3071
2755
                        start_input_str_len = axutil_strlen(start_input_str);
3072
2756
                        sprintf(end_input_str, "</%s%scorrelationId>",
3073
2757
                                 p_prefix?p_prefix:"",
3074
2758
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3075
2759
                        end_input_str_len = axutil_strlen(end_input_str);
3076
 
 
 
2760
                    
3077
2761
                           text_value_1 = _ncRunInstanceType->property_correlationId;
3078
 
 
 
2762
                           
3079
2763
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3080
 
 
3081
 
 
 
2764
                           
 
2765
                            
3082
2766
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
3083
2767
                           if (text_value_1_temp)
3084
2768
                           {
3089
2773
                           {
3090
2774
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
3091
2775
                           }
3092
 
 
 
2776
                           
3093
2777
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3094
 
 
3095
 
 
 
2778
                           
 
2779
                     
3096
2780
                     AXIS2_FREE(env->allocator,start_input_str);
3097
2781
                     AXIS2_FREE(env->allocator,end_input_str);
3098
 
                 }
3099
 
 
3100
 
 
 
2782
                 } 
 
2783
 
 
2784
                 
3101
2785
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3102
2786
                       {
3103
2787
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3104
2788
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3105
2789
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3106
 
 
 
2790
                           
3107
2791
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3108
2792
                                            "http://eucalyptus.ucsb.edu/",
3109
2793
                                            p_prefix));
3110
2794
                       }
3111
 
 
 
2795
                      
3112
2796
 
3113
2797
                   if (!_ncRunInstanceType->is_valid_userId)
3114
2798
                   {
3115
 
 
 
2799
                      
3116
2800
                           /* no need to complain for minoccurs=0 element */
3117
 
 
3118
 
 
 
2801
                            
 
2802
                          
3119
2803
                   }
3120
2804
                   else
3121
2805
                   {
3122
2806
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3123
 
                                 (4 + axutil_strlen(p_prefix) +
3124
 
                                  axutil_strlen("userId")));
3125
 
 
 
2807
                                 (4 + axutil_strlen(p_prefix) + 
 
2808
                                  axutil_strlen("userId"))); 
 
2809
                                 
3126
2810
                                 /* axutil_strlen("<:>") + 1 = 4 */
3127
2811
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3128
2812
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
3129
2813
                                  /* axutil_strlen("</:>") + 1 = 5 */
3130
 
 
3131
 
 
3132
 
 
3133
 
 
3134
 
 
3135
 
 
 
2814
                                  
 
2815
                     
 
2816
 
 
2817
                   
 
2818
                   
 
2819
                     
3136
2820
                     /*
3137
2821
                      * parsing userId element
3138
2822
                      */
3139
2823
 
3140
 
 
3141
 
 
 
2824
                    
 
2825
                    
3142
2826
                            sprintf(start_input_str, "<%s%suserId>",
3143
2827
                                 p_prefix?p_prefix:"",
3144
2828
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3145
 
 
 
2829
                            
3146
2830
                        start_input_str_len = axutil_strlen(start_input_str);
3147
2831
                        sprintf(end_input_str, "</%s%suserId>",
3148
2832
                                 p_prefix?p_prefix:"",
3149
2833
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3150
2834
                        end_input_str_len = axutil_strlen(end_input_str);
3151
 
 
 
2835
                    
3152
2836
                           text_value_2 = _ncRunInstanceType->property_userId;
3153
 
 
 
2837
                           
3154
2838
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3155
 
 
3156
 
 
 
2839
                           
 
2840
                            
3157
2841
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
3158
2842
                           if (text_value_2_temp)
3159
2843
                           {
3164
2848
                           {
3165
2849
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
3166
2850
                           }
3167
 
 
 
2851
                           
3168
2852
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3169
 
 
3170
 
 
 
2853
                           
 
2854
                     
3171
2855
                     AXIS2_FREE(env->allocator,start_input_str);
3172
2856
                     AXIS2_FREE(env->allocator,end_input_str);
3173
 
                 }
3174
 
 
3175
 
 
 
2857
                 } 
 
2858
 
 
2859
                 
3176
2860
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3177
2861
                       {
3178
2862
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3179
2863
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3180
2864
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3181
 
 
 
2865
                           
3182
2866
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3183
2867
                                            "http://eucalyptus.ucsb.edu/",
3184
2868
                                            p_prefix));
3185
2869
                       }
3186
 
 
 
2870
                      
3187
2871
 
3188
2872
                   if (!_ncRunInstanceType->is_valid_return)
3189
2873
                   {
3190
 
 
 
2874
                      
3191
2875
                           /* no need to complain for minoccurs=0 element */
3192
 
 
3193
 
 
 
2876
                            
 
2877
                          
3194
2878
                   }
3195
2879
                   else
3196
2880
                   {
3197
2881
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3198
 
                                 (4 + axutil_strlen(p_prefix) +
3199
 
                                  axutil_strlen("return")));
3200
 
 
 
2882
                                 (4 + axutil_strlen(p_prefix) + 
 
2883
                                  axutil_strlen("return"))); 
 
2884
                                 
3201
2885
                                 /* axutil_strlen("<:>") + 1 = 4 */
3202
2886
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3203
2887
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
3204
2888
                                  /* axutil_strlen("</:>") + 1 = 5 */
3205
 
 
3206
 
 
3207
 
 
3208
 
 
3209
 
 
3210
 
 
 
2889
                                  
 
2890
                     
 
2891
 
 
2892
                   
 
2893
                   
 
2894
                     
3211
2895
                     /*
3212
2896
                      * parsing return element
3213
2897
                      */
3214
2898
 
3215
 
 
3216
 
 
 
2899
                    
 
2900
                    
3217
2901
                            sprintf(start_input_str, "<%s%sreturn>",
3218
2902
                                 p_prefix?p_prefix:"",
3219
2903
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3220
 
 
 
2904
                            
3221
2905
                        start_input_str_len = axutil_strlen(start_input_str);
3222
2906
                        sprintf(end_input_str, "</%s%sreturn>",
3223
2907
                                 p_prefix?p_prefix:"",
3224
2908
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3225
2909
                        end_input_str_len = axutil_strlen(end_input_str);
3226
 
 
 
2910
                    
3227
2911
                           strcpy(text_value_3, (_ncRunInstanceType->property_return)?"true":"false");
3228
 
 
 
2912
                           
3229
2913
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3230
 
 
 
2914
                           
3231
2915
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
3232
 
 
3233
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3234
 
 
3235
 
 
3236
 
                     AXIS2_FREE(env->allocator,start_input_str);
3237
 
                     AXIS2_FREE(env->allocator,end_input_str);
3238
 
                 }
3239
 
 
3240
 
 
3241
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3242
 
                       {
3243
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3244
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3245
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3246
 
 
3247
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3248
 
                                            "http://eucalyptus.ucsb.edu/",
3249
 
                                            p_prefix));
3250
 
                       }
3251
 
 
 
2916
                           
 
2917
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
2918
                           
 
2919
                     
 
2920
                     AXIS2_FREE(env->allocator,start_input_str);
 
2921
                     AXIS2_FREE(env->allocator,end_input_str);
 
2922
                 } 
 
2923
 
 
2924
                 
 
2925
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
2926
                       {
 
2927
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
2928
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
2929
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
2930
                           
 
2931
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
2932
                                            "http://eucalyptus.ucsb.edu/",
 
2933
                                            p_prefix));
 
2934
                       }
 
2935
                      
 
2936
 
 
2937
                   if (!_ncRunInstanceType->is_valid_nodeName)
 
2938
                   {
 
2939
                      
 
2940
                           /* no need to complain for minoccurs=0 element */
 
2941
                            
 
2942
                          
 
2943
                   }
 
2944
                   else
 
2945
                   {
 
2946
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
2947
                                 (4 + axutil_strlen(p_prefix) + 
 
2948
                                  axutil_strlen("nodeName"))); 
 
2949
                                 
 
2950
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
2951
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
2952
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("nodeName")));
 
2953
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
2954
                                  
 
2955
                     
 
2956
 
 
2957
                   
 
2958
                   
 
2959
                     
 
2960
                     /*
 
2961
                      * parsing nodeName element
 
2962
                      */
 
2963
 
 
2964
                    
 
2965
                    
 
2966
                            sprintf(start_input_str, "<%s%snodeName>",
 
2967
                                 p_prefix?p_prefix:"",
 
2968
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
2969
                            
 
2970
                        start_input_str_len = axutil_strlen(start_input_str);
 
2971
                        sprintf(end_input_str, "</%s%snodeName>",
 
2972
                                 p_prefix?p_prefix:"",
 
2973
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
2974
                        end_input_str_len = axutil_strlen(end_input_str);
 
2975
                    
 
2976
                           text_value_4 = _ncRunInstanceType->property_nodeName;
 
2977
                           
 
2978
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
2979
                           
 
2980
                            
 
2981
                           text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
 
2982
                           if (text_value_4_temp)
 
2983
                           {
 
2984
                               axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
 
2985
                               AXIS2_FREE(env->allocator, text_value_4_temp);
 
2986
                           }
 
2987
                           else
 
2988
                           {
 
2989
                               axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
 
2990
                           }
 
2991
                           
 
2992
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
2993
                           
 
2994
                     
 
2995
                     AXIS2_FREE(env->allocator,start_input_str);
 
2996
                     AXIS2_FREE(env->allocator,end_input_str);
 
2997
                 } 
 
2998
 
 
2999
                 
 
3000
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
3001
                       {
 
3002
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
3003
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
3004
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
3005
                           
 
3006
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
3007
                                            "http://eucalyptus.ucsb.edu/",
 
3008
                                            p_prefix));
 
3009
                       }
 
3010
                      
3252
3011
 
3253
3012
                   if (!_ncRunInstanceType->is_valid_statusMessage)
3254
3013
                   {
3255
 
 
 
3014
                      
3256
3015
                           /* no need to complain for minoccurs=0 element */
3257
 
 
3258
 
 
 
3016
                            
 
3017
                          
3259
3018
                   }
3260
3019
                   else
3261
3020
                   {
3262
3021
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3263
 
                                 (4 + axutil_strlen(p_prefix) +
3264
 
                                  axutil_strlen("statusMessage")));
3265
 
 
 
3022
                                 (4 + axutil_strlen(p_prefix) + 
 
3023
                                  axutil_strlen("statusMessage"))); 
 
3024
                                 
3266
3025
                                 /* axutil_strlen("<:>") + 1 = 4 */
3267
3026
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3268
3027
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
3269
3028
                                  /* axutil_strlen("</:>") + 1 = 5 */
3270
 
 
3271
 
 
3272
 
 
3273
 
 
3274
 
 
3275
 
 
 
3029
                                  
 
3030
                     
 
3031
 
 
3032
                   
 
3033
                   
 
3034
                     
3276
3035
                     /*
3277
3036
                      * parsing statusMessage element
3278
3037
                      */
3279
3038
 
3280
 
 
3281
 
 
 
3039
                    
 
3040
                    
3282
3041
                            sprintf(start_input_str, "<%s%sstatusMessage>",
3283
3042
                                 p_prefix?p_prefix:"",
3284
3043
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3285
 
 
 
3044
                            
3286
3045
                        start_input_str_len = axutil_strlen(start_input_str);
3287
3046
                        sprintf(end_input_str, "</%s%sstatusMessage>",
3288
3047
                                 p_prefix?p_prefix:"",
3289
3048
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3290
3049
                        end_input_str_len = axutil_strlen(end_input_str);
3291
 
 
3292
 
                               sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_statusMessage);
3293
 
 
 
3050
                    
 
3051
                               sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_statusMessage);
 
3052
                             
3294
3053
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3295
 
 
3296
 
                           axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
3297
 
 
 
3054
                           
 
3055
                           axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
 
3056
                           
3298
3057
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3299
 
 
3300
 
 
 
3058
                           
 
3059
                     
3301
3060
                     AXIS2_FREE(env->allocator,start_input_str);
3302
3061
                     AXIS2_FREE(env->allocator,end_input_str);
3303
 
                 }
3304
 
 
3305
 
 
 
3062
                 } 
 
3063
 
 
3064
                 
3306
3065
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3307
3066
                       {
3308
3067
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3309
3068
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3310
3069
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3311
 
 
 
3070
                           
3312
3071
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3313
3072
                                            "http://eucalyptus.ucsb.edu/",
3314
3073
                                            p_prefix));
3315
3074
                       }
3316
 
 
 
3075
                      
3317
3076
 
3318
3077
                   if (!_ncRunInstanceType->is_valid_imageId)
3319
3078
                   {
3320
 
 
3321
 
 
 
3079
                      
 
3080
                            
3322
3081
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageId");
3323
3082
                            return NULL;
3324
 
 
 
3083
                          
3325
3084
                   }
3326
3085
                   else
3327
3086
                   {
3328
3087
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3329
 
                                 (4 + axutil_strlen(p_prefix) +
3330
 
                                  axutil_strlen("imageId")));
3331
 
 
 
3088
                                 (4 + axutil_strlen(p_prefix) + 
 
3089
                                  axutil_strlen("imageId"))); 
 
3090
                                 
3332
3091
                                 /* axutil_strlen("<:>") + 1 = 4 */
3333
3092
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3334
3093
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId")));
3335
3094
                                  /* axutil_strlen("</:>") + 1 = 5 */
3336
 
 
3337
 
 
3338
 
 
3339
 
 
3340
 
 
3341
 
 
 
3095
                                  
 
3096
                     
 
3097
 
 
3098
                   
 
3099
                   
 
3100
                     
3342
3101
                     /*
3343
3102
                      * parsing imageId element
3344
3103
                      */
3345
3104
 
3346
 
 
3347
 
 
 
3105
                    
 
3106
                    
3348
3107
                            sprintf(start_input_str, "<%s%simageId>",
3349
3108
                                 p_prefix?p_prefix:"",
3350
3109
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3351
 
 
 
3110
                            
3352
3111
                        start_input_str_len = axutil_strlen(start_input_str);
3353
3112
                        sprintf(end_input_str, "</%s%simageId>",
3354
3113
                                 p_prefix?p_prefix:"",
3355
3114
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3356
3115
                        end_input_str_len = axutil_strlen(end_input_str);
3357
 
 
3358
 
                           text_value_5 = _ncRunInstanceType->property_imageId;
3359
 
 
 
3116
                    
 
3117
                           text_value_6 = _ncRunInstanceType->property_imageId;
 
3118
                           
3360
3119
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3361
 
 
3362
 
 
3363
 
                           text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
3364
 
                           if (text_value_5_temp)
 
3120
                           
 
3121
                            
 
3122
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
 
3123
                           if (text_value_6_temp)
3365
3124
                           {
3366
 
                               axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
3367
 
                               AXIS2_FREE(env->allocator, text_value_5_temp);
 
3125
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
 
3126
                               AXIS2_FREE(env->allocator, text_value_6_temp);
3368
3127
                           }
3369
3128
                           else
3370
3129
                           {
3371
 
                               axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
 
3130
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
3372
3131
                           }
3373
 
 
 
3132
                           
3374
3133
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3375
 
 
3376
 
 
 
3134
                           
 
3135
                     
3377
3136
                     AXIS2_FREE(env->allocator,start_input_str);
3378
3137
                     AXIS2_FREE(env->allocator,end_input_str);
3379
 
                 }
3380
 
 
3381
 
 
 
3138
                 } 
 
3139
 
 
3140
                 
3382
3141
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3383
3142
                       {
3384
3143
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3385
3144
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3386
3145
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3387
 
 
 
3146
                           
3388
3147
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3389
3148
                                            "http://eucalyptus.ucsb.edu/",
3390
3149
                                            p_prefix));
3391
3150
                       }
3392
 
 
 
3151
                      
3393
3152
 
3394
3153
                   if (!_ncRunInstanceType->is_valid_kernelId)
3395
3154
                   {
3396
 
 
3397
 
 
3398
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelId");
3399
 
                            return NULL;
3400
 
 
 
3155
                      
 
3156
                           /* no need to complain for minoccurs=0 element */
 
3157
                            
 
3158
                          
3401
3159
                   }
3402
3160
                   else
3403
3161
                   {
3404
3162
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3405
 
                                 (4 + axutil_strlen(p_prefix) +
3406
 
                                  axutil_strlen("kernelId")));
3407
 
 
 
3163
                                 (4 + axutil_strlen(p_prefix) + 
 
3164
                                  axutil_strlen("kernelId"))); 
 
3165
                                 
3408
3166
                                 /* axutil_strlen("<:>") + 1 = 4 */
3409
3167
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3410
3168
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId")));
3411
3169
                                  /* axutil_strlen("</:>") + 1 = 5 */
3412
 
 
3413
 
 
3414
 
 
3415
 
 
3416
 
 
3417
 
 
 
3170
                                  
 
3171
                     
 
3172
 
 
3173
                   
 
3174
                   
 
3175
                     
3418
3176
                     /*
3419
3177
                      * parsing kernelId element
3420
3178
                      */
3421
3179
 
3422
 
 
3423
 
 
 
3180
                    
 
3181
                    
3424
3182
                            sprintf(start_input_str, "<%s%skernelId>",
3425
3183
                                 p_prefix?p_prefix:"",
3426
3184
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3427
 
 
 
3185
                            
3428
3186
                        start_input_str_len = axutil_strlen(start_input_str);
3429
3187
                        sprintf(end_input_str, "</%s%skernelId>",
3430
3188
                                 p_prefix?p_prefix:"",
3431
3189
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3432
3190
                        end_input_str_len = axutil_strlen(end_input_str);
3433
 
 
3434
 
                           text_value_6 = _ncRunInstanceType->property_kernelId;
3435
 
 
 
3191
                    
 
3192
                           text_value_7 = _ncRunInstanceType->property_kernelId;
 
3193
                           
3436
3194
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3437
 
 
3438
 
 
3439
 
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
3440
 
                           if (text_value_6_temp)
 
3195
                           
 
3196
                            
 
3197
                           text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
 
3198
                           if (text_value_7_temp)
3441
3199
                           {
3442
 
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
3443
 
                               AXIS2_FREE(env->allocator, text_value_6_temp);
 
3200
                               axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
 
3201
                               AXIS2_FREE(env->allocator, text_value_7_temp);
3444
3202
                           }
3445
3203
                           else
3446
3204
                           {
3447
 
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
 
3205
                               axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
3448
3206
                           }
3449
 
 
 
3207
                           
3450
3208
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3451
 
 
3452
 
 
 
3209
                           
 
3210
                     
3453
3211
                     AXIS2_FREE(env->allocator,start_input_str);
3454
3212
                     AXIS2_FREE(env->allocator,end_input_str);
3455
 
                 }
3456
 
 
3457
 
 
 
3213
                 } 
 
3214
 
 
3215
                 
3458
3216
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3459
3217
                       {
3460
3218
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3461
3219
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3462
3220
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3463
 
 
 
3221
                           
3464
3222
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3465
3223
                                            "http://eucalyptus.ucsb.edu/",
3466
3224
                                            p_prefix));
3467
3225
                       }
3468
 
 
 
3226
                      
3469
3227
 
3470
3228
                   if (!_ncRunInstanceType->is_valid_ramdiskId)
3471
3229
                   {
3472
 
 
 
3230
                      
3473
3231
                           /* no need to complain for minoccurs=0 element */
3474
 
 
3475
 
 
 
3232
                            
 
3233
                          
3476
3234
                   }
3477
3235
                   else
3478
3236
                   {
3479
3237
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3480
 
                                 (4 + axutil_strlen(p_prefix) +
3481
 
                                  axutil_strlen("ramdiskId")));
3482
 
 
 
3238
                                 (4 + axutil_strlen(p_prefix) + 
 
3239
                                  axutil_strlen("ramdiskId"))); 
 
3240
                                 
3483
3241
                                 /* axutil_strlen("<:>") + 1 = 4 */
3484
3242
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3485
3243
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId")));
3486
3244
                                  /* axutil_strlen("</:>") + 1 = 5 */
3487
 
 
3488
 
 
3489
 
 
3490
 
 
3491
 
 
3492
 
 
 
3245
                                  
 
3246
                     
 
3247
 
 
3248
                   
 
3249
                   
 
3250
                     
3493
3251
                     /*
3494
3252
                      * parsing ramdiskId element
3495
3253
                      */
3496
3254
 
3497
 
 
3498
 
 
 
3255
                    
 
3256
                    
3499
3257
                            sprintf(start_input_str, "<%s%sramdiskId>",
3500
3258
                                 p_prefix?p_prefix:"",
3501
3259
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3502
 
 
 
3260
                            
3503
3261
                        start_input_str_len = axutil_strlen(start_input_str);
3504
3262
                        sprintf(end_input_str, "</%s%sramdiskId>",
3505
3263
                                 p_prefix?p_prefix:"",
3506
3264
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3507
3265
                        end_input_str_len = axutil_strlen(end_input_str);
3508
 
 
3509
 
                           text_value_7 = _ncRunInstanceType->property_ramdiskId;
3510
 
 
 
3266
                    
 
3267
                           text_value_8 = _ncRunInstanceType->property_ramdiskId;
 
3268
                           
3511
3269
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3512
 
 
3513
 
 
3514
 
                           text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
3515
 
                           if (text_value_7_temp)
 
3270
                           
 
3271
                            
 
3272
                           text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
 
3273
                           if (text_value_8_temp)
3516
3274
                           {
3517
 
                               axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
3518
 
                               AXIS2_FREE(env->allocator, text_value_7_temp);
 
3275
                               axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
 
3276
                               AXIS2_FREE(env->allocator, text_value_8_temp);
3519
3277
                           }
3520
3278
                           else
3521
3279
                           {
3522
 
                               axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
 
3280
                               axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
3523
3281
                           }
3524
 
 
 
3282
                           
3525
3283
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3526
 
 
3527
 
 
 
3284
                           
 
3285
                     
3528
3286
                     AXIS2_FREE(env->allocator,start_input_str);
3529
3287
                     AXIS2_FREE(env->allocator,end_input_str);
3530
 
                 }
3531
 
 
3532
 
 
 
3288
                 } 
 
3289
 
 
3290
                 
3533
3291
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3534
3292
                       {
3535
3293
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3536
3294
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3537
3295
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3538
 
 
 
3296
                           
3539
3297
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3540
3298
                                            "http://eucalyptus.ucsb.edu/",
3541
3299
                                            p_prefix));
3542
3300
                       }
3543
 
 
 
3301
                      
3544
3302
 
3545
3303
                   if (!_ncRunInstanceType->is_valid_imageURL)
3546
3304
                   {
3547
 
 
3548
 
 
 
3305
                      
 
3306
                            
3549
3307
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageURL");
3550
3308
                            return NULL;
3551
 
 
 
3309
                          
3552
3310
                   }
3553
3311
                   else
3554
3312
                   {
3555
3313
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3556
 
                                 (4 + axutil_strlen(p_prefix) +
3557
 
                                  axutil_strlen("imageURL")));
3558
 
 
 
3314
                                 (4 + axutil_strlen(p_prefix) + 
 
3315
                                  axutil_strlen("imageURL"))); 
 
3316
                                 
3559
3317
                                 /* axutil_strlen("<:>") + 1 = 4 */
3560
3318
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3561
3319
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("imageURL")));
3562
3320
                                  /* axutil_strlen("</:>") + 1 = 5 */
3563
 
 
3564
 
 
3565
 
 
3566
 
 
3567
 
 
3568
 
 
 
3321
                                  
 
3322
                     
 
3323
 
 
3324
                   
 
3325
                   
 
3326
                     
3569
3327
                     /*
3570
3328
                      * parsing imageURL element
3571
3329
                      */
3572
3330
 
3573
 
 
3574
 
 
 
3331
                    
 
3332
                    
3575
3333
                            sprintf(start_input_str, "<%s%simageURL>",
3576
3334
                                 p_prefix?p_prefix:"",
3577
3335
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3578
 
 
 
3336
                            
3579
3337
                        start_input_str_len = axutil_strlen(start_input_str);
3580
3338
                        sprintf(end_input_str, "</%s%simageURL>",
3581
3339
                                 p_prefix?p_prefix:"",
3582
3340
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3583
3341
                        end_input_str_len = axutil_strlen(end_input_str);
3584
 
 
3585
 
                           text_value_8 = _ncRunInstanceType->property_imageURL;
3586
 
 
 
3342
                    
 
3343
                           text_value_9 = _ncRunInstanceType->property_imageURL;
 
3344
                           
3587
3345
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3588
 
 
3589
 
 
3590
 
                           text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
3591
 
                           if (text_value_8_temp)
 
3346
                           
 
3347
                            
 
3348
                           text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
 
3349
                           if (text_value_9_temp)
3592
3350
                           {
3593
 
                               axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
3594
 
                               AXIS2_FREE(env->allocator, text_value_8_temp);
 
3351
                               axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
 
3352
                               AXIS2_FREE(env->allocator, text_value_9_temp);
3595
3353
                           }
3596
3354
                           else
3597
3355
                           {
3598
 
                               axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
 
3356
                               axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
3599
3357
                           }
3600
 
 
 
3358
                           
3601
3359
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3602
 
 
3603
 
 
 
3360
                           
 
3361
                     
3604
3362
                     AXIS2_FREE(env->allocator,start_input_str);
3605
3363
                     AXIS2_FREE(env->allocator,end_input_str);
3606
 
                 }
3607
 
 
3608
 
 
 
3364
                 } 
 
3365
 
 
3366
                 
3609
3367
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3610
3368
                       {
3611
3369
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3612
3370
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3613
3371
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3614
 
 
 
3372
                           
3615
3373
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3616
3374
                                            "http://eucalyptus.ucsb.edu/",
3617
3375
                                            p_prefix));
3618
3376
                       }
3619
 
 
 
3377
                      
3620
3378
 
3621
3379
                   if (!_ncRunInstanceType->is_valid_kernelURL)
3622
3380
                   {
3623
 
 
3624
 
 
3625
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelURL");
3626
 
                            return NULL;
3627
 
 
 
3381
                      
 
3382
                           /* no need to complain for minoccurs=0 element */
 
3383
                            
 
3384
                          
3628
3385
                   }
3629
3386
                   else
3630
3387
                   {
3631
3388
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3632
 
                                 (4 + axutil_strlen(p_prefix) +
3633
 
                                  axutil_strlen("kernelURL")));
3634
 
 
 
3389
                                 (4 + axutil_strlen(p_prefix) + 
 
3390
                                  axutil_strlen("kernelURL"))); 
 
3391
                                 
3635
3392
                                 /* axutil_strlen("<:>") + 1 = 4 */
3636
3393
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3637
3394
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelURL")));
3638
3395
                                  /* axutil_strlen("</:>") + 1 = 5 */
3639
 
 
3640
 
 
3641
 
 
3642
 
 
3643
 
 
3644
 
 
 
3396
                                  
 
3397
                     
 
3398
 
 
3399
                   
 
3400
                   
 
3401
                     
3645
3402
                     /*
3646
3403
                      * parsing kernelURL element
3647
3404
                      */
3648
3405
 
3649
 
 
3650
 
 
 
3406
                    
 
3407
                    
3651
3408
                            sprintf(start_input_str, "<%s%skernelURL>",
3652
3409
                                 p_prefix?p_prefix:"",
3653
3410
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3654
 
 
 
3411
                            
3655
3412
                        start_input_str_len = axutil_strlen(start_input_str);
3656
3413
                        sprintf(end_input_str, "</%s%skernelURL>",
3657
3414
                                 p_prefix?p_prefix:"",
3658
3415
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3659
3416
                        end_input_str_len = axutil_strlen(end_input_str);
3660
 
 
3661
 
                           text_value_9 = _ncRunInstanceType->property_kernelURL;
3662
 
 
 
3417
                    
 
3418
                           text_value_10 = _ncRunInstanceType->property_kernelURL;
 
3419
                           
3663
3420
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3664
 
 
3665
 
 
3666
 
                           text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
3667
 
                           if (text_value_9_temp)
 
3421
                           
 
3422
                            
 
3423
                           text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE);
 
3424
                           if (text_value_10_temp)
3668
3425
                           {
3669
 
                               axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
3670
 
                               AXIS2_FREE(env->allocator, text_value_9_temp);
 
3426
                               axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp));
 
3427
                               AXIS2_FREE(env->allocator, text_value_10_temp);
3671
3428
                           }
3672
3429
                           else
3673
3430
                           {
3674
 
                               axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
 
3431
                               axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10));
3675
3432
                           }
3676
 
 
 
3433
                           
3677
3434
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3678
 
 
3679
 
 
 
3435
                           
 
3436
                     
3680
3437
                     AXIS2_FREE(env->allocator,start_input_str);
3681
3438
                     AXIS2_FREE(env->allocator,end_input_str);
3682
 
                 }
3683
 
 
3684
 
 
 
3439
                 } 
 
3440
 
 
3441
                 
3685
3442
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3686
3443
                       {
3687
3444
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3688
3445
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3689
3446
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3690
 
 
 
3447
                           
3691
3448
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3692
3449
                                            "http://eucalyptus.ucsb.edu/",
3693
3450
                                            p_prefix));
3694
3451
                       }
3695
 
 
 
3452
                      
3696
3453
 
3697
3454
                   if (!_ncRunInstanceType->is_valid_ramdiskURL)
3698
3455
                   {
3699
 
 
 
3456
                      
3700
3457
                           /* no need to complain for minoccurs=0 element */
3701
 
 
3702
 
 
 
3458
                            
 
3459
                          
3703
3460
                   }
3704
3461
                   else
3705
3462
                   {
3706
3463
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3707
 
                                 (4 + axutil_strlen(p_prefix) +
3708
 
                                  axutil_strlen("ramdiskURL")));
3709
 
 
 
3464
                                 (4 + axutil_strlen(p_prefix) + 
 
3465
                                  axutil_strlen("ramdiskURL"))); 
 
3466
                                 
3710
3467
                                 /* axutil_strlen("<:>") + 1 = 4 */
3711
3468
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3712
3469
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskURL")));
3713
3470
                                  /* axutil_strlen("</:>") + 1 = 5 */
3714
 
 
3715
 
 
3716
 
 
3717
 
 
3718
 
 
3719
 
 
 
3471
                                  
 
3472
                     
 
3473
 
 
3474
                   
 
3475
                   
 
3476
                     
3720
3477
                     /*
3721
3478
                      * parsing ramdiskURL element
3722
3479
                      */
3723
3480
 
3724
 
 
3725
 
 
 
3481
                    
 
3482
                    
3726
3483
                            sprintf(start_input_str, "<%s%sramdiskURL>",
3727
3484
                                 p_prefix?p_prefix:"",
3728
3485
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3729
 
 
 
3486
                            
3730
3487
                        start_input_str_len = axutil_strlen(start_input_str);
3731
3488
                        sprintf(end_input_str, "</%s%sramdiskURL>",
3732
3489
                                 p_prefix?p_prefix:"",
3733
3490
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3734
3491
                        end_input_str_len = axutil_strlen(end_input_str);
3735
 
 
3736
 
                           text_value_10 = _ncRunInstanceType->property_ramdiskURL;
3737
 
 
3738
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3739
 
 
3740
 
 
3741
 
                           text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE);
3742
 
                           if (text_value_10_temp)
3743
 
                           {
3744
 
                               axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp));
3745
 
                               AXIS2_FREE(env->allocator, text_value_10_temp);
3746
 
                           }
3747
 
                           else
3748
 
                           {
3749
 
                               axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10));
3750
 
                           }
3751
 
 
3752
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3753
 
 
3754
 
 
3755
 
                     AXIS2_FREE(env->allocator,start_input_str);
3756
 
                     AXIS2_FREE(env->allocator,end_input_str);
3757
 
                 }
3758
 
 
3759
 
 
3760
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3761
 
                       {
3762
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3763
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3764
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3765
 
 
3766
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3767
 
                                            "http://eucalyptus.ucsb.edu/",
3768
 
                                            p_prefix));
3769
 
                       }
3770
 
 
 
3492
                    
 
3493
                           text_value_11 = _ncRunInstanceType->property_ramdiskURL;
 
3494
                           
 
3495
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
3496
                           
 
3497
                            
 
3498
                           text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE);
 
3499
                           if (text_value_11_temp)
 
3500
                           {
 
3501
                               axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp));
 
3502
                               AXIS2_FREE(env->allocator, text_value_11_temp);
 
3503
                           }
 
3504
                           else
 
3505
                           {
 
3506
                               axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11));
 
3507
                           }
 
3508
                           
 
3509
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
3510
                           
 
3511
                     
 
3512
                     AXIS2_FREE(env->allocator,start_input_str);
 
3513
                     AXIS2_FREE(env->allocator,end_input_str);
 
3514
                 } 
 
3515
 
 
3516
                 
 
3517
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
3518
                       {
 
3519
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
3520
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
3521
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
3522
                           
 
3523
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
3524
                                            "http://eucalyptus.ucsb.edu/",
 
3525
                                            p_prefix));
 
3526
                       }
 
3527
                      
 
3528
 
 
3529
                   if (!_ncRunInstanceType->is_valid_reservationId)
 
3530
                   {
 
3531
                      
 
3532
                            
 
3533
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId");
 
3534
                            return NULL;
 
3535
                          
 
3536
                   }
 
3537
                   else
 
3538
                   {
 
3539
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
3540
                                 (4 + axutil_strlen(p_prefix) + 
 
3541
                                  axutil_strlen("reservationId"))); 
 
3542
                                 
 
3543
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
3544
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
3545
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId")));
 
3546
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
3547
                                  
 
3548
                     
 
3549
 
 
3550
                   
 
3551
                   
 
3552
                     
 
3553
                     /*
 
3554
                      * parsing reservationId element
 
3555
                      */
 
3556
 
 
3557
                    
 
3558
                    
 
3559
                            sprintf(start_input_str, "<%s%sreservationId>",
 
3560
                                 p_prefix?p_prefix:"",
 
3561
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
3562
                            
 
3563
                        start_input_str_len = axutil_strlen(start_input_str);
 
3564
                        sprintf(end_input_str, "</%s%sreservationId>",
 
3565
                                 p_prefix?p_prefix:"",
 
3566
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
3567
                        end_input_str_len = axutil_strlen(end_input_str);
 
3568
                    
 
3569
                           text_value_12 = _ncRunInstanceType->property_reservationId;
 
3570
                           
 
3571
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
3572
                           
 
3573
                            
 
3574
                           text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE);
 
3575
                           if (text_value_12_temp)
 
3576
                           {
 
3577
                               axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp));
 
3578
                               AXIS2_FREE(env->allocator, text_value_12_temp);
 
3579
                           }
 
3580
                           else
 
3581
                           {
 
3582
                               axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12));
 
3583
                           }
 
3584
                           
 
3585
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
3586
                           
 
3587
                     
 
3588
                     AXIS2_FREE(env->allocator,start_input_str);
 
3589
                     AXIS2_FREE(env->allocator,end_input_str);
 
3590
                 } 
 
3591
 
 
3592
                 
 
3593
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
3594
                       {
 
3595
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
3596
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
3597
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
3598
                           
 
3599
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
3600
                                            "http://eucalyptus.ucsb.edu/",
 
3601
                                            p_prefix));
 
3602
                       }
 
3603
                      
3771
3604
 
3772
3605
                   if (!_ncRunInstanceType->is_valid_instanceId)
3773
3606
                   {
3774
 
 
3775
 
 
 
3607
                      
 
3608
                            
3776
3609
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId");
3777
3610
                            return NULL;
3778
 
 
 
3611
                          
3779
3612
                   }
3780
3613
                   else
3781
3614
                   {
3782
3615
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3783
 
                                 (4 + axutil_strlen(p_prefix) +
3784
 
                                  axutil_strlen("instanceId")));
3785
 
 
 
3616
                                 (4 + axutil_strlen(p_prefix) + 
 
3617
                                  axutil_strlen("instanceId"))); 
 
3618
                                 
3786
3619
                                 /* axutil_strlen("<:>") + 1 = 4 */
3787
3620
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3788
3621
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
3789
3622
                                  /* axutil_strlen("</:>") + 1 = 5 */
3790
 
 
3791
 
 
3792
 
 
3793
 
 
3794
 
 
3795
 
 
 
3623
                                  
 
3624
                     
 
3625
 
 
3626
                   
 
3627
                   
 
3628
                     
3796
3629
                     /*
3797
3630
                      * parsing instanceId element
3798
3631
                      */
3799
3632
 
3800
 
 
3801
 
 
 
3633
                    
 
3634
                    
3802
3635
                            sprintf(start_input_str, "<%s%sinstanceId>",
3803
3636
                                 p_prefix?p_prefix:"",
3804
3637
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3805
 
 
 
3638
                            
3806
3639
                        start_input_str_len = axutil_strlen(start_input_str);
3807
3640
                        sprintf(end_input_str, "</%s%sinstanceId>",
3808
3641
                                 p_prefix?p_prefix:"",
3809
3642
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3810
3643
                        end_input_str_len = axutil_strlen(end_input_str);
3811
 
 
3812
 
                           text_value_11 = _ncRunInstanceType->property_instanceId;
3813
 
 
 
3644
                    
 
3645
                           text_value_13 = _ncRunInstanceType->property_instanceId;
 
3646
                           
3814
3647
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3815
 
 
3816
 
 
3817
 
                           text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE);
3818
 
                           if (text_value_11_temp)
 
3648
                           
 
3649
                            
 
3650
                           text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE);
 
3651
                           if (text_value_13_temp)
3819
3652
                           {
3820
 
                               axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp));
3821
 
                               AXIS2_FREE(env->allocator, text_value_11_temp);
 
3653
                               axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp));
 
3654
                               AXIS2_FREE(env->allocator, text_value_13_temp);
3822
3655
                           }
3823
3656
                           else
3824
3657
                           {
3825
 
                               axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11));
 
3658
                               axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13));
3826
3659
                           }
3827
 
 
 
3660
                           
3828
3661
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3829
 
 
3830
 
 
 
3662
                           
 
3663
                     
3831
3664
                     AXIS2_FREE(env->allocator,start_input_str);
3832
3665
                     AXIS2_FREE(env->allocator,end_input_str);
3833
 
                 }
3834
 
 
3835
 
 
 
3666
                 } 
 
3667
 
 
3668
                 
3836
3669
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3837
3670
                       {
3838
3671
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3839
3672
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3840
3673
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3841
 
 
 
3674
                           
3842
3675
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3843
3676
                                            "http://eucalyptus.ucsb.edu/",
3844
3677
                                            p_prefix));
3845
3678
                       }
3846
 
 
 
3679
                      
3847
3680
 
3848
3681
                   if (!_ncRunInstanceType->is_valid_instanceType)
3849
3682
                   {
3850
 
 
3851
 
 
 
3683
                      
 
3684
                            
3852
3685
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceType");
3853
3686
                            return NULL;
3854
 
 
 
3687
                          
3855
3688
                   }
3856
3689
                   else
3857
3690
                   {
3858
3691
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3859
 
                                 (4 + axutil_strlen(p_prefix) +
3860
 
                                  axutil_strlen("instanceType")));
3861
 
 
 
3692
                                 (4 + axutil_strlen(p_prefix) + 
 
3693
                                  axutil_strlen("instanceType"))); 
 
3694
                                 
3862
3695
                                 /* axutil_strlen("<:>") + 1 = 4 */
3863
3696
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3864
3697
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType")));
3865
3698
                                  /* axutil_strlen("</:>") + 1 = 5 */
3866
 
 
3867
 
 
3868
 
 
3869
 
 
3870
 
 
3871
 
 
 
3699
                                  
 
3700
                     
 
3701
 
 
3702
                   
 
3703
                   
 
3704
                     
3872
3705
                     /*
3873
3706
                      * parsing instanceType element
3874
3707
                      */
3875
3708
 
3876
 
 
3877
 
 
 
3709
                    
 
3710
                    
3878
3711
                            sprintf(start_input_str, "<%s%sinstanceType",
3879
3712
                                 p_prefix?p_prefix:"",
3880
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3881
 
 
 
3713
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); 
 
3714
                            
3882
3715
                        start_input_str_len = axutil_strlen(start_input_str);
3883
3716
                        sprintf(end_input_str, "</%s%sinstanceType>",
3884
3717
                                 p_prefix?p_prefix:"",
3885
3718
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3886
3719
                        end_input_str_len = axutil_strlen(end_input_str);
3887
 
 
 
3720
                     
3888
3721
                            if(!adb_virtualMachineType_is_particle())
3889
3722
                            {
3890
3723
                                axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3891
3724
                            }
3892
 
 
3893
 
                            adb_virtualMachineType_serialize(_ncRunInstanceType->property_instanceType,
 
3725
                            
 
3726
                            adb_virtualMachineType_serialize(_ncRunInstanceType->property_instanceType, 
3894
3727
                                                                                 env, current_node, parent_element,
3895
3728
                                                                                 adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
3896
 
 
 
3729
                            
3897
3730
                            if(!adb_virtualMachineType_is_particle())
3898
3731
                            {
3899
3732
                                axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3900
3733
                            }
3901
 
 
3902
 
 
 
3734
                            
 
3735
                     
3903
3736
                     AXIS2_FREE(env->allocator,start_input_str);
3904
3737
                     AXIS2_FREE(env->allocator,end_input_str);
3905
 
                 }
3906
 
 
3907
 
 
 
3738
                 } 
 
3739
 
 
3740
                 
3908
3741
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3909
3742
                       {
3910
3743
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3911
3744
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3912
3745
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3913
 
 
 
3746
                           
3914
3747
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3915
3748
                                            "http://eucalyptus.ucsb.edu/",
3916
3749
                                            p_prefix));
3917
3750
                       }
3918
 
 
 
3751
                      
3919
3752
 
3920
3753
                   if (!_ncRunInstanceType->is_valid_keyName)
3921
3754
                   {
3922
 
 
3923
 
 
 
3755
                      
 
3756
                            
3924
3757
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property keyName");
3925
3758
                            return NULL;
3926
 
 
 
3759
                          
3927
3760
                   }
3928
3761
                   else
3929
3762
                   {
3930
3763
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3931
 
                                 (4 + axutil_strlen(p_prefix) +
3932
 
                                  axutil_strlen("keyName")));
3933
 
 
 
3764
                                 (4 + axutil_strlen(p_prefix) + 
 
3765
                                  axutil_strlen("keyName"))); 
 
3766
                                 
3934
3767
                                 /* axutil_strlen("<:>") + 1 = 4 */
3935
3768
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3936
3769
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName")));
3937
3770
                                  /* axutil_strlen("</:>") + 1 = 5 */
3938
 
 
3939
 
 
3940
 
 
3941
 
 
3942
 
 
3943
 
 
 
3771
                                  
 
3772
                     
 
3773
 
 
3774
                   
 
3775
                   
 
3776
                     
3944
3777
                     /*
3945
3778
                      * parsing keyName element
3946
3779
                      */
3947
3780
 
3948
 
 
3949
 
 
 
3781
                    
 
3782
                    
3950
3783
                            sprintf(start_input_str, "<%s%skeyName>",
3951
3784
                                 p_prefix?p_prefix:"",
3952
3785
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3953
 
 
 
3786
                            
3954
3787
                        start_input_str_len = axutil_strlen(start_input_str);
3955
3788
                        sprintf(end_input_str, "</%s%skeyName>",
3956
3789
                                 p_prefix?p_prefix:"",
3957
3790
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3958
3791
                        end_input_str_len = axutil_strlen(end_input_str);
3959
 
 
3960
 
                           text_value_13 = _ncRunInstanceType->property_keyName;
3961
 
 
3962
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3963
 
 
3964
 
 
3965
 
                           text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE);
3966
 
                           if (text_value_13_temp)
3967
 
                           {
3968
 
                               axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp));
3969
 
                               AXIS2_FREE(env->allocator, text_value_13_temp);
3970
 
                           }
3971
 
                           else
3972
 
                           {
3973
 
                               axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13));
3974
 
                           }
3975
 
 
3976
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3977
 
 
3978
 
 
3979
 
                     AXIS2_FREE(env->allocator,start_input_str);
3980
 
                     AXIS2_FREE(env->allocator,end_input_str);
3981
 
                 }
3982
 
 
3983
 
 
3984
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3985
 
                       {
3986
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3987
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
3988
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3989
 
 
3990
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3991
 
                                            "http://eucalyptus.ucsb.edu/",
3992
 
                                            p_prefix));
3993
 
                       }
3994
 
 
3995
 
 
3996
 
                   if (!_ncRunInstanceType->is_valid_publicMacAddress)
3997
 
                   {
3998
 
 
3999
 
 
4000
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress");
4001
 
                            return NULL;
4002
 
 
4003
 
                   }
4004
 
                   else
4005
 
                   {
4006
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4007
 
                                 (4 + axutil_strlen(p_prefix) +
4008
 
                                  axutil_strlen("publicMacAddress")));
4009
 
 
4010
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
4011
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4012
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress")));
4013
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
4014
 
 
4015
 
 
4016
 
 
4017
 
 
4018
 
 
4019
 
 
4020
 
                     /*
4021
 
                      * parsing publicMacAddress element
4022
 
                      */
4023
 
 
4024
 
 
4025
 
 
4026
 
                            sprintf(start_input_str, "<%s%spublicMacAddress>",
4027
 
                                 p_prefix?p_prefix:"",
4028
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4029
 
 
4030
 
                        start_input_str_len = axutil_strlen(start_input_str);
4031
 
                        sprintf(end_input_str, "</%s%spublicMacAddress>",
4032
 
                                 p_prefix?p_prefix:"",
4033
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4034
 
                        end_input_str_len = axutil_strlen(end_input_str);
4035
 
 
4036
 
                           text_value_14 = _ncRunInstanceType->property_publicMacAddress;
4037
 
 
4038
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4039
 
 
4040
 
 
4041
 
                           text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE);
4042
 
                           if (text_value_14_temp)
4043
 
                           {
4044
 
                               axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp));
4045
 
                               AXIS2_FREE(env->allocator, text_value_14_temp);
4046
 
                           }
4047
 
                           else
4048
 
                           {
4049
 
                               axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14));
4050
 
                           }
4051
 
 
4052
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4053
 
 
4054
 
 
4055
 
                     AXIS2_FREE(env->allocator,start_input_str);
4056
 
                     AXIS2_FREE(env->allocator,end_input_str);
4057
 
                 }
4058
 
 
4059
 
 
4060
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4061
 
                       {
4062
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4063
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
4064
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4065
 
 
4066
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4067
 
                                            "http://eucalyptus.ucsb.edu/",
4068
 
                                            p_prefix));
4069
 
                       }
4070
 
 
4071
 
 
4072
 
                   if (!_ncRunInstanceType->is_valid_privateMacAddress)
4073
 
                   {
4074
 
 
4075
 
 
4076
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress");
4077
 
                            return NULL;
4078
 
 
4079
 
                   }
4080
 
                   else
4081
 
                   {
4082
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4083
 
                                 (4 + axutil_strlen(p_prefix) +
4084
 
                                  axutil_strlen("privateMacAddress")));
4085
 
 
4086
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
4087
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4088
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress")));
4089
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
4090
 
 
4091
 
 
4092
 
 
4093
 
 
4094
 
 
4095
 
 
4096
 
                     /*
4097
 
                      * parsing privateMacAddress element
4098
 
                      */
4099
 
 
4100
 
 
4101
 
 
4102
 
                            sprintf(start_input_str, "<%s%sprivateMacAddress>",
4103
 
                                 p_prefix?p_prefix:"",
4104
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4105
 
 
4106
 
                        start_input_str_len = axutil_strlen(start_input_str);
4107
 
                        sprintf(end_input_str, "</%s%sprivateMacAddress>",
4108
 
                                 p_prefix?p_prefix:"",
4109
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4110
 
                        end_input_str_len = axutil_strlen(end_input_str);
4111
 
 
4112
 
                           text_value_15 = _ncRunInstanceType->property_privateMacAddress;
4113
 
 
4114
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4115
 
 
4116
 
 
 
3792
                    
 
3793
                           text_value_15 = _ncRunInstanceType->property_keyName;
 
3794
                           
 
3795
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
3796
                           
 
3797
                            
4117
3798
                           text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE);
4118
3799
                           if (text_value_15_temp)
4119
3800
                           {
4124
3805
                           {
4125
3806
                               axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15));
4126
3807
                           }
4127
 
 
4128
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4129
 
 
4130
 
 
4131
 
                     AXIS2_FREE(env->allocator,start_input_str);
4132
 
                     AXIS2_FREE(env->allocator,end_input_str);
4133
 
                 }
4134
 
 
4135
 
 
4136
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4137
 
                       {
4138
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4139
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
4140
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4141
 
 
4142
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4143
 
                                            "http://eucalyptus.ucsb.edu/",
4144
 
                                            p_prefix));
4145
 
                       }
4146
 
 
4147
 
 
4148
 
                   if (!_ncRunInstanceType->is_valid_reservationId)
4149
 
                   {
4150
 
 
4151
 
 
4152
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId");
4153
 
                            return NULL;
4154
 
 
4155
 
                   }
4156
 
                   else
4157
 
                   {
4158
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4159
 
                                 (4 + axutil_strlen(p_prefix) +
4160
 
                                  axutil_strlen("reservationId")));
4161
 
 
4162
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
4163
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4164
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId")));
4165
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
4166
 
 
4167
 
 
4168
 
 
4169
 
 
4170
 
 
4171
 
 
4172
 
                     /*
4173
 
                      * parsing reservationId element
4174
 
                      */
4175
 
 
4176
 
 
4177
 
 
4178
 
                            sprintf(start_input_str, "<%s%sreservationId>",
4179
 
                                 p_prefix?p_prefix:"",
4180
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4181
 
 
4182
 
                        start_input_str_len = axutil_strlen(start_input_str);
4183
 
                        sprintf(end_input_str, "</%s%sreservationId>",
4184
 
                                 p_prefix?p_prefix:"",
4185
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4186
 
                        end_input_str_len = axutil_strlen(end_input_str);
4187
 
 
4188
 
                           text_value_16 = _ncRunInstanceType->property_reservationId;
4189
 
 
4190
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4191
 
 
4192
 
 
4193
 
                           text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE);
4194
 
                           if (text_value_16_temp)
4195
 
                           {
4196
 
                               axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp));
4197
 
                               AXIS2_FREE(env->allocator, text_value_16_temp);
4198
 
                           }
4199
 
                           else
4200
 
                           {
4201
 
                               axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16));
4202
 
                           }
4203
 
 
4204
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4205
 
 
4206
 
 
4207
 
                     AXIS2_FREE(env->allocator,start_input_str);
4208
 
                     AXIS2_FREE(env->allocator,end_input_str);
4209
 
                 }
4210
 
 
4211
 
 
4212
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4213
 
                       {
4214
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4215
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
4216
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4217
 
 
4218
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4219
 
                                            "http://eucalyptus.ucsb.edu/",
4220
 
                                            p_prefix));
4221
 
                       }
4222
 
 
4223
 
 
4224
 
                   if (!_ncRunInstanceType->is_valid_vlan)
4225
 
                   {
4226
 
 
4227
 
 
4228
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan");
4229
 
                            return NULL;
4230
 
 
4231
 
                   }
4232
 
                   else
4233
 
                   {
4234
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4235
 
                                 (4 + axutil_strlen(p_prefix) +
4236
 
                                  axutil_strlen("vlan")));
4237
 
 
4238
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
4239
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4240
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
4241
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
4242
 
 
4243
 
 
4244
 
 
4245
 
 
4246
 
 
4247
 
 
4248
 
                     /*
4249
 
                      * parsing vlan element
4250
 
                      */
4251
 
 
4252
 
 
4253
 
 
4254
 
                            sprintf(start_input_str, "<%s%svlan>",
4255
 
                                 p_prefix?p_prefix:"",
4256
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4257
 
 
4258
 
                        start_input_str_len = axutil_strlen(start_input_str);
4259
 
                        sprintf(end_input_str, "</%s%svlan>",
4260
 
                                 p_prefix?p_prefix:"",
4261
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4262
 
                        end_input_str_len = axutil_strlen(end_input_str);
4263
 
 
4264
 
                               sprintf (text_value_17, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_vlan);
4265
 
 
4266
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4267
 
 
4268
 
                           axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17));
4269
 
 
4270
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4271
 
 
4272
 
 
4273
 
                     AXIS2_FREE(env->allocator,start_input_str);
4274
 
                     AXIS2_FREE(env->allocator,end_input_str);
4275
 
                 }
4276
 
 
4277
 
 
4278
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4279
 
                       {
4280
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4281
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
4282
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4283
 
 
4284
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4285
 
                                            "http://eucalyptus.ucsb.edu/",
4286
 
                                            p_prefix));
4287
 
                       }
4288
 
 
 
3808
                           
 
3809
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
3810
                           
 
3811
                     
 
3812
                     AXIS2_FREE(env->allocator,start_input_str);
 
3813
                     AXIS2_FREE(env->allocator,end_input_str);
 
3814
                 } 
 
3815
 
 
3816
                 
 
3817
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
3818
                       {
 
3819
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
3820
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
3821
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
3822
                           
 
3823
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
3824
                                            "http://eucalyptus.ucsb.edu/",
 
3825
                                            p_prefix));
 
3826
                       }
 
3827
                      
 
3828
 
 
3829
                   if (!_ncRunInstanceType->is_valid_netParams)
 
3830
                   {
 
3831
                      
 
3832
                            
 
3833
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property netParams");
 
3834
                            return NULL;
 
3835
                          
 
3836
                   }
 
3837
                   else
 
3838
                   {
 
3839
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
3840
                                 (4 + axutil_strlen(p_prefix) + 
 
3841
                                  axutil_strlen("netParams"))); 
 
3842
                                 
 
3843
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
3844
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
3845
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("netParams")));
 
3846
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
3847
                                  
 
3848
                     
 
3849
 
 
3850
                   
 
3851
                   
 
3852
                     
 
3853
                     /*
 
3854
                      * parsing netParams element
 
3855
                      */
 
3856
 
 
3857
                    
 
3858
                    
 
3859
                            sprintf(start_input_str, "<%s%snetParams",
 
3860
                                 p_prefix?p_prefix:"",
 
3861
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); 
 
3862
                            
 
3863
                        start_input_str_len = axutil_strlen(start_input_str);
 
3864
                        sprintf(end_input_str, "</%s%snetParams>",
 
3865
                                 p_prefix?p_prefix:"",
 
3866
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
3867
                        end_input_str_len = axutil_strlen(end_input_str);
 
3868
                     
 
3869
                            if(!adb_netConfigType_is_particle())
 
3870
                            {
 
3871
                                axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
3872
                            }
 
3873
                            
 
3874
                            adb_netConfigType_serialize(_ncRunInstanceType->property_netParams, 
 
3875
                                                                                 env, current_node, parent_element,
 
3876
                                                                                 adb_netConfigType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
 
3877
                            
 
3878
                            if(!adb_netConfigType_is_particle())
 
3879
                            {
 
3880
                                axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
3881
                            }
 
3882
                            
 
3883
                     
 
3884
                     AXIS2_FREE(env->allocator,start_input_str);
 
3885
                     AXIS2_FREE(env->allocator,end_input_str);
 
3886
                 } 
 
3887
 
 
3888
                 
 
3889
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
3890
                       {
 
3891
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
3892
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
3893
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
3894
                           
 
3895
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
3896
                                            "http://eucalyptus.ucsb.edu/",
 
3897
                                            p_prefix));
 
3898
                       }
 
3899
                      
4289
3900
 
4290
3901
                   if (!_ncRunInstanceType->is_valid_userData)
4291
3902
                   {
4292
 
 
 
3903
                      
4293
3904
                           /* no need to complain for minoccurs=0 element */
4294
 
 
4295
 
 
 
3905
                            
 
3906
                          
4296
3907
                   }
4297
3908
                   else
4298
3909
                   {
4299
3910
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4300
 
                                 (4 + axutil_strlen(p_prefix) +
4301
 
                                  axutil_strlen("userData")));
4302
 
 
 
3911
                                 (4 + axutil_strlen(p_prefix) + 
 
3912
                                  axutil_strlen("userData"))); 
 
3913
                                 
4303
3914
                                 /* axutil_strlen("<:>") + 1 = 4 */
4304
3915
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4305
3916
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userData")));
4306
3917
                                  /* axutil_strlen("</:>") + 1 = 5 */
4307
 
 
4308
 
 
4309
 
 
4310
 
 
4311
 
 
4312
 
 
 
3918
                                  
 
3919
                     
 
3920
 
 
3921
                   
 
3922
                   
 
3923
                     
4313
3924
                     /*
4314
3925
                      * parsing userData element
4315
3926
                      */
4316
3927
 
4317
 
 
4318
 
 
 
3928
                    
 
3929
                    
4319
3930
                            sprintf(start_input_str, "<%s%suserData>",
4320
3931
                                 p_prefix?p_prefix:"",
4321
3932
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4322
 
 
 
3933
                            
4323
3934
                        start_input_str_len = axutil_strlen(start_input_str);
4324
3935
                        sprintf(end_input_str, "</%s%suserData>",
4325
3936
                                 p_prefix?p_prefix:"",
4326
3937
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4327
3938
                        end_input_str_len = axutil_strlen(end_input_str);
4328
 
 
4329
 
                           text_value_18 = _ncRunInstanceType->property_userData;
4330
 
 
4331
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4332
 
 
4333
 
 
 
3939
                    
 
3940
                           text_value_17 = _ncRunInstanceType->property_userData;
 
3941
                           
 
3942
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
3943
                           
 
3944
                            
 
3945
                           text_value_17_temp = axutil_xml_quote_string(env, text_value_17, AXIS2_TRUE);
 
3946
                           if (text_value_17_temp)
 
3947
                           {
 
3948
                               axutil_stream_write(stream, env, text_value_17_temp, axutil_strlen(text_value_17_temp));
 
3949
                               AXIS2_FREE(env->allocator, text_value_17_temp);
 
3950
                           }
 
3951
                           else
 
3952
                           {
 
3953
                               axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17));
 
3954
                           }
 
3955
                           
 
3956
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
3957
                           
 
3958
                     
 
3959
                     AXIS2_FREE(env->allocator,start_input_str);
 
3960
                     AXIS2_FREE(env->allocator,end_input_str);
 
3961
                 } 
 
3962
 
 
3963
                 
 
3964
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
3965
                       {
 
3966
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
3967
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
3968
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
3969
                           
 
3970
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
3971
                                            "http://eucalyptus.ucsb.edu/",
 
3972
                                            p_prefix));
 
3973
                       }
 
3974
                      
 
3975
 
 
3976
                   if (!_ncRunInstanceType->is_valid_launchIndex)
 
3977
                   {
 
3978
                      
 
3979
                           /* no need to complain for minoccurs=0 element */
 
3980
                            
 
3981
                          
 
3982
                   }
 
3983
                   else
 
3984
                   {
 
3985
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
3986
                                 (4 + axutil_strlen(p_prefix) + 
 
3987
                                  axutil_strlen("launchIndex"))); 
 
3988
                                 
 
3989
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
3990
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
3991
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex")));
 
3992
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
3993
                                  
 
3994
                     
 
3995
 
 
3996
                   
 
3997
                   
 
3998
                     
 
3999
                     /*
 
4000
                      * parsing launchIndex element
 
4001
                      */
 
4002
 
 
4003
                    
 
4004
                    
 
4005
                            sprintf(start_input_str, "<%s%slaunchIndex>",
 
4006
                                 p_prefix?p_prefix:"",
 
4007
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
4008
                            
 
4009
                        start_input_str_len = axutil_strlen(start_input_str);
 
4010
                        sprintf(end_input_str, "</%s%slaunchIndex>",
 
4011
                                 p_prefix?p_prefix:"",
 
4012
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
4013
                        end_input_str_len = axutil_strlen(end_input_str);
 
4014
                    
 
4015
                           text_value_18 = _ncRunInstanceType->property_launchIndex;
 
4016
                           
 
4017
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
4018
                           
 
4019
                            
4334
4020
                           text_value_18_temp = axutil_xml_quote_string(env, text_value_18, AXIS2_TRUE);
4335
4021
                           if (text_value_18_temp)
4336
4022
                           {
4341
4027
                           {
4342
4028
                               axutil_stream_write(stream, env, text_value_18, axutil_strlen(text_value_18));
4343
4029
                           }
4344
 
 
4345
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4346
 
 
4347
 
 
4348
 
                     AXIS2_FREE(env->allocator,start_input_str);
4349
 
                     AXIS2_FREE(env->allocator,end_input_str);
4350
 
                 }
4351
 
 
4352
 
 
4353
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4354
 
                       {
4355
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4356
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
4357
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4358
 
 
4359
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4360
 
                                            "http://eucalyptus.ucsb.edu/",
4361
 
                                            p_prefix));
4362
 
                       }
4363
 
 
4364
 
 
4365
 
                   if (!_ncRunInstanceType->is_valid_launchIndex)
4366
 
                   {
4367
 
 
4368
 
                           /* no need to complain for minoccurs=0 element */
4369
 
 
4370
 
 
4371
 
                   }
4372
 
                   else
4373
 
                   {
4374
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4375
 
                                 (4 + axutil_strlen(p_prefix) +
4376
 
                                  axutil_strlen("launchIndex")));
4377
 
 
4378
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
4379
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4380
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex")));
4381
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
4382
 
 
4383
 
 
4384
 
 
4385
 
 
4386
 
 
4387
 
 
4388
 
                     /*
4389
 
                      * parsing launchIndex element
4390
 
                      */
4391
 
 
4392
 
 
4393
 
 
4394
 
                            sprintf(start_input_str, "<%s%slaunchIndex>",
4395
 
                                 p_prefix?p_prefix:"",
4396
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4397
 
 
4398
 
                        start_input_str_len = axutil_strlen(start_input_str);
4399
 
                        sprintf(end_input_str, "</%s%slaunchIndex>",
4400
 
                                 p_prefix?p_prefix:"",
4401
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4402
 
                        end_input_str_len = axutil_strlen(end_input_str);
4403
 
 
4404
 
                           text_value_19 = _ncRunInstanceType->property_launchIndex;
4405
 
 
4406
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4407
 
 
4408
 
 
4409
 
                           text_value_19_temp = axutil_xml_quote_string(env, text_value_19, AXIS2_TRUE);
4410
 
                           if (text_value_19_temp)
4411
 
                           {
4412
 
                               axutil_stream_write(stream, env, text_value_19_temp, axutil_strlen(text_value_19_temp));
4413
 
                               AXIS2_FREE(env->allocator, text_value_19_temp);
4414
 
                           }
4415
 
                           else
4416
 
                           {
4417
 
                               axutil_stream_write(stream, env, text_value_19, axutil_strlen(text_value_19));
4418
 
                           }
4419
 
 
4420
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4421
 
 
4422
 
 
4423
 
                     AXIS2_FREE(env->allocator,start_input_str);
4424
 
                     AXIS2_FREE(env->allocator,end_input_str);
4425
 
                 }
4426
 
 
4427
 
 
4428
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4429
 
                       {
4430
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4431
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
4432
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4433
 
 
4434
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4435
 
                                            "http://eucalyptus.ucsb.edu/",
4436
 
                                            p_prefix));
4437
 
                       }
4438
 
 
 
4030
                           
 
4031
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
4032
                           
 
4033
                     
 
4034
                     AXIS2_FREE(env->allocator,start_input_str);
 
4035
                     AXIS2_FREE(env->allocator,end_input_str);
 
4036
                 } 
 
4037
 
 
4038
                 
 
4039
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
4040
                       {
 
4041
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
4042
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
4043
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
4044
                           
 
4045
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
4046
                                            "http://eucalyptus.ucsb.edu/",
 
4047
                                            p_prefix));
 
4048
                       }
 
4049
                      
4439
4050
 
4440
4051
                   if (!_ncRunInstanceType->is_valid_groupNames)
4441
4052
                   {
4442
 
 
 
4053
                      
4443
4054
                           /* no need to complain for minoccurs=0 element */
4444
 
 
4445
 
 
 
4055
                            
 
4056
                          
4446
4057
                   }
4447
4058
                   else
4448
4059
                   {
4449
4060
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4450
 
                                 (4 + axutil_strlen(p_prefix) +
4451
 
                                  axutil_strlen("groupNames")));
4452
 
 
 
4061
                                 (4 + axutil_strlen(p_prefix) + 
 
4062
                                  axutil_strlen("groupNames"))); 
 
4063
                                 
4453
4064
                                 /* axutil_strlen("<:>") + 1 = 4 */
4454
4065
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4455
4066
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames")));
4456
4067
                                  /* axutil_strlen("</:>") + 1 = 5 */
4457
 
 
4458
 
 
4459
 
 
4460
 
 
4461
 
 
 
4068
                                  
 
4069
                     
 
4070
 
 
4071
                   
 
4072
                   
4462
4073
                     /*
4463
4074
                      * Parsing groupNames array
4464
4075
                      */
4465
4076
                     if (_ncRunInstanceType->property_groupNames != NULL)
4466
4077
                     {
4467
 
 
 
4078
                        
4468
4079
                            sprintf(start_input_str, "<%s%sgroupNames>",
4469
4080
                                 p_prefix?p_prefix:"",
4470
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4471
 
 
 
4081
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":""); 
 
4082
                            
4472
4083
                         start_input_str_len = axutil_strlen(start_input_str);
4473
4084
 
4474
4085
                         sprintf(end_input_str, "</%s%sgroupNames>",
4481
4092
                         {
4482
4093
                            element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i);
4483
4094
 
4484
 
                            if(NULL == element)
 
4095
                            if(NULL == element) 
4485
4096
                            {
4486
4097
                                continue;
4487
4098
                            }
4488
 
 
4489
 
 
 
4099
                    
 
4100
                     
4490
4101
                     /*
4491
4102
                      * parsing groupNames element
4492
4103
                      */
4493
4104
 
4494
 
 
4495
 
 
4496
 
                           text_value_20 = (axis2_char_t*)element;
4497
 
 
 
4105
                    
 
4106
                    
 
4107
                           text_value_19 = (axis2_char_t*)element;
 
4108
                           
4498
4109
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4499
 
 
4500
 
 
4501
 
                           text_value_20_temp = axutil_xml_quote_string(env, text_value_20, AXIS2_TRUE);
4502
 
                           if (text_value_20_temp)
 
4110
                           
 
4111
                            
 
4112
                           text_value_19_temp = axutil_xml_quote_string(env, text_value_19, AXIS2_TRUE);
 
4113
                           if (text_value_19_temp)
4503
4114
                           {
4504
 
                               axutil_stream_write(stream, env, text_value_20_temp, axutil_strlen(text_value_20_temp));
4505
 
                               AXIS2_FREE(env->allocator, text_value_20_temp);
 
4115
                               axutil_stream_write(stream, env, text_value_19_temp, axutil_strlen(text_value_19_temp));
 
4116
                               AXIS2_FREE(env->allocator, text_value_19_temp);
4506
4117
                           }
4507
4118
                           else
4508
4119
                           {
4509
 
                               axutil_stream_write(stream, env, text_value_20, axutil_strlen(text_value_20));
 
4120
                               axutil_stream_write(stream, env, text_value_19, axutil_strlen(text_value_19));
4510
4121
                           }
4511
 
 
 
4122
                           
4512
4123
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4513
 
 
 
4124
                           
4514
4125
                         }
4515
4126
                     }
4516
 
 
4517
 
 
 
4127
                   
 
4128
                     
4518
4129
                     AXIS2_FREE(env->allocator,start_input_str);
4519
4130
                     AXIS2_FREE(env->allocator,end_input_str);
4520
 
                 }
4521
 
 
4522
 
 
 
4131
                 } 
 
4132
 
 
4133
                 
4523
4134
 
4524
4135
            return parent;
4525
4136
        }
4526
4137
 
4527
4138
 
4528
 
 
 
4139
        
4529
4140
 
4530
4141
            /**
4531
4142
             * getter for correlationId.
4535
4146
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
4536
4147
                    const axutil_env_t *env)
4537
4148
             {
4538
 
 
 
4149
                
4539
4150
                    AXIS2_ENV_CHECK(env, NULL);
4540
4151
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
4541
 
 
 
4152
                  
4542
4153
 
4543
4154
                return _ncRunInstanceType->property_correlationId;
4544
4155
             }
4552
4163
                    const axutil_env_t *env,
4553
4164
                    const axis2_char_t*  arg_correlationId)
4554
4165
             {
4555
 
 
 
4166
                
4556
4167
 
4557
4168
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4558
4169
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4559
 
 
 
4170
                
4560
4171
                if(_ncRunInstanceType->is_valid_correlationId &&
4561
4172
                        arg_correlationId == _ncRunInstanceType->property_correlationId)
4562
4173
                {
4563
 
 
4564
 
                    return AXIS2_SUCCESS;
 
4174
                    
 
4175
                    return AXIS2_SUCCESS; 
4565
4176
                }
4566
4177
 
4567
4178
                adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env);
4568
4179
 
4569
 
 
 
4180
                
4570
4181
                if(NULL == arg_correlationId)
4571
4182
                {
4572
4183
                    /* We are already done */
4579
4190
                            return AXIS2_FAILURE;
4580
4191
                        }
4581
4192
                        _ncRunInstanceType->is_valid_correlationId = AXIS2_TRUE;
4582
 
 
 
4193
                    
4583
4194
                return AXIS2_SUCCESS;
4584
4195
             }
4585
4196
 
4586
 
 
 
4197
             
4587
4198
 
4588
4199
           /**
4589
4200
            * resetter for correlationId
4599
4210
 
4600
4211
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4601
4212
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4602
 
 
4603
 
 
4604
 
 
4605
 
 
4606
 
 
 
4213
               
 
4214
 
 
4215
               
 
4216
            
 
4217
                
4607
4218
                if(_ncRunInstanceType->property_correlationId != NULL)
4608
4219
                {
4609
 
 
4610
 
 
 
4220
                   
 
4221
                   
4611
4222
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_correlationId);
4612
4223
                     _ncRunInstanceType->property_correlationId = NULL;
4613
4224
                }
4614
 
 
4615
 
 
4616
 
 
4617
 
                _ncRunInstanceType->is_valid_correlationId = AXIS2_FALSE;
 
4225
            
 
4226
                
 
4227
                
 
4228
                _ncRunInstanceType->is_valid_correlationId = AXIS2_FALSE; 
4618
4229
               return AXIS2_SUCCESS;
4619
4230
           }
4620
4231
 
4628
4239
           {
4629
4240
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
4630
4241
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
4631
 
 
 
4242
               
4632
4243
               return !_ncRunInstanceType->is_valid_correlationId;
4633
4244
           }
4634
4245
 
4643
4254
               return adb_ncRunInstanceType_reset_correlationId(_ncRunInstanceType, env);
4644
4255
           }
4645
4256
 
4646
 
 
 
4257
           
4647
4258
 
4648
4259
            /**
4649
4260
             * getter for userId.
4653
4264
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
4654
4265
                    const axutil_env_t *env)
4655
4266
             {
4656
 
 
 
4267
                
4657
4268
                    AXIS2_ENV_CHECK(env, NULL);
4658
4269
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
4659
 
 
 
4270
                  
4660
4271
 
4661
4272
                return _ncRunInstanceType->property_userId;
4662
4273
             }
4670
4281
                    const axutil_env_t *env,
4671
4282
                    const axis2_char_t*  arg_userId)
4672
4283
             {
4673
 
 
 
4284
                
4674
4285
 
4675
4286
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4676
4287
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4677
 
 
 
4288
                
4678
4289
                if(_ncRunInstanceType->is_valid_userId &&
4679
4290
                        arg_userId == _ncRunInstanceType->property_userId)
4680
4291
                {
4681
 
 
4682
 
                    return AXIS2_SUCCESS;
 
4292
                    
 
4293
                    return AXIS2_SUCCESS; 
4683
4294
                }
4684
4295
 
4685
4296
                adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env);
4686
4297
 
4687
 
 
 
4298
                
4688
4299
                if(NULL == arg_userId)
4689
4300
                {
4690
4301
                    /* We are already done */
4697
4308
                            return AXIS2_FAILURE;
4698
4309
                        }
4699
4310
                        _ncRunInstanceType->is_valid_userId = AXIS2_TRUE;
4700
 
 
 
4311
                    
4701
4312
                return AXIS2_SUCCESS;
4702
4313
             }
4703
4314
 
4704
 
 
 
4315
             
4705
4316
 
4706
4317
           /**
4707
4318
            * resetter for userId
4717
4328
 
4718
4329
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4719
4330
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
 
4331
               
 
4332
 
 
4333
               
 
4334
            
 
4335
                
4725
4336
                if(_ncRunInstanceType->property_userId != NULL)
4726
4337
                {
4727
 
 
4728
 
 
 
4338
                   
 
4339
                   
4729
4340
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_userId);
4730
4341
                     _ncRunInstanceType->property_userId = NULL;
4731
4342
                }
4732
 
 
4733
 
 
4734
 
 
4735
 
                _ncRunInstanceType->is_valid_userId = AXIS2_FALSE;
 
4343
            
 
4344
                
 
4345
                
 
4346
                _ncRunInstanceType->is_valid_userId = AXIS2_FALSE; 
4736
4347
               return AXIS2_SUCCESS;
4737
4348
           }
4738
4349
 
4746
4357
           {
4747
4358
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
4748
4359
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
4749
 
 
 
4360
               
4750
4361
               return !_ncRunInstanceType->is_valid_userId;
4751
4362
           }
4752
4363
 
4761
4372
               return adb_ncRunInstanceType_reset_userId(_ncRunInstanceType, env);
4762
4373
           }
4763
4374
 
4764
 
 
 
4375
           
4765
4376
 
4766
4377
            /**
4767
4378
             * getter for return.
4771
4382
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
4772
4383
                    const axutil_env_t *env)
4773
4384
             {
4774
 
 
 
4385
                
4775
4386
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
4776
4387
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (axis2_bool_t)0);
4777
 
 
 
4388
                  
4778
4389
 
4779
4390
                return _ncRunInstanceType->property_return;
4780
4391
             }
4788
4399
                    const axutil_env_t *env,
4789
4400
                    axis2_bool_t  arg_return)
4790
4401
             {
4791
 
 
 
4402
                
4792
4403
 
4793
4404
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4794
4405
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4795
 
 
 
4406
                
4796
4407
                if(_ncRunInstanceType->is_valid_return &&
4797
4408
                        arg_return == _ncRunInstanceType->property_return)
4798
4409
                {
4799
 
 
4800
 
                    return AXIS2_SUCCESS;
 
4410
                    
 
4411
                    return AXIS2_SUCCESS; 
4801
4412
                }
4802
4413
 
4803
4414
                adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env);
4804
4415
 
4805
4416
                _ncRunInstanceType->property_return = arg_return;
4806
4417
                        _ncRunInstanceType->is_valid_return = AXIS2_TRUE;
4807
 
 
 
4418
                    
4808
4419
                return AXIS2_SUCCESS;
4809
4420
             }
4810
4421
 
4811
 
 
 
4422
             
4812
4423
 
4813
4424
           /**
4814
4425
            * resetter for return
4824
4435
 
4825
4436
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4826
4437
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4827
 
 
4828
 
 
4829
 
               _ncRunInstanceType->is_valid_return = AXIS2_FALSE;
 
4438
               
 
4439
 
 
4440
               _ncRunInstanceType->is_valid_return = AXIS2_FALSE; 
4830
4441
               return AXIS2_SUCCESS;
4831
4442
           }
4832
4443
 
4840
4451
           {
4841
4452
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
4842
4453
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
4843
 
 
 
4454
               
4844
4455
               return !_ncRunInstanceType->is_valid_return;
4845
4456
           }
4846
4457
 
4855
4466
               return adb_ncRunInstanceType_reset_return(_ncRunInstanceType, env);
4856
4467
           }
4857
4468
 
4858
 
 
 
4469
           
 
4470
 
 
4471
            /**
 
4472
             * getter for nodeName.
 
4473
             */
 
4474
            axis2_char_t* AXIS2_CALL
 
4475
            adb_ncRunInstanceType_get_nodeName(
 
4476
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
 
4477
                    const axutil_env_t *env)
 
4478
             {
 
4479
                
 
4480
                    AXIS2_ENV_CHECK(env, NULL);
 
4481
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
 
4482
                  
 
4483
 
 
4484
                return _ncRunInstanceType->property_nodeName;
 
4485
             }
 
4486
 
 
4487
            /**
 
4488
             * setter for nodeName
 
4489
             */
 
4490
            axis2_status_t AXIS2_CALL
 
4491
            adb_ncRunInstanceType_set_nodeName(
 
4492
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
 
4493
                    const axutil_env_t *env,
 
4494
                    const axis2_char_t*  arg_nodeName)
 
4495
             {
 
4496
                
 
4497
 
 
4498
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
4499
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
 
4500
                
 
4501
                if(_ncRunInstanceType->is_valid_nodeName &&
 
4502
                        arg_nodeName == _ncRunInstanceType->property_nodeName)
 
4503
                {
 
4504
                    
 
4505
                    return AXIS2_SUCCESS; 
 
4506
                }
 
4507
 
 
4508
                adb_ncRunInstanceType_reset_nodeName(_ncRunInstanceType, env);
 
4509
 
 
4510
                
 
4511
                if(NULL == arg_nodeName)
 
4512
                {
 
4513
                    /* We are already done */
 
4514
                    return AXIS2_SUCCESS;
 
4515
                }
 
4516
                _ncRunInstanceType->property_nodeName = (axis2_char_t *)axutil_strdup(env, arg_nodeName);
 
4517
                        if(NULL == _ncRunInstanceType->property_nodeName)
 
4518
                        {
 
4519
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nodeName");
 
4520
                            return AXIS2_FAILURE;
 
4521
                        }
 
4522
                        _ncRunInstanceType->is_valid_nodeName = AXIS2_TRUE;
 
4523
                    
 
4524
                return AXIS2_SUCCESS;
 
4525
             }
 
4526
 
 
4527
             
 
4528
 
 
4529
           /**
 
4530
            * resetter for nodeName
 
4531
            */
 
4532
           axis2_status_t AXIS2_CALL
 
4533
           adb_ncRunInstanceType_reset_nodeName(
 
4534
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
4535
                   const axutil_env_t *env)
 
4536
           {
 
4537
               int i = 0;
 
4538
               int count = 0;
 
4539
               void *element = NULL;
 
4540
 
 
4541
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
4542
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
 
4543
               
 
4544
 
 
4545
               
 
4546
            
 
4547
                
 
4548
                if(_ncRunInstanceType->property_nodeName != NULL)
 
4549
                {
 
4550
                   
 
4551
                   
 
4552
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_nodeName);
 
4553
                     _ncRunInstanceType->property_nodeName = NULL;
 
4554
                }
 
4555
            
 
4556
                
 
4557
                
 
4558
                _ncRunInstanceType->is_valid_nodeName = AXIS2_FALSE; 
 
4559
               return AXIS2_SUCCESS;
 
4560
           }
 
4561
 
 
4562
           /**
 
4563
            * Check whether nodeName is nill
 
4564
            */
 
4565
           axis2_bool_t AXIS2_CALL
 
4566
           adb_ncRunInstanceType_is_nodeName_nil(
 
4567
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
4568
                   const axutil_env_t *env)
 
4569
           {
 
4570
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
4571
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
 
4572
               
 
4573
               return !_ncRunInstanceType->is_valid_nodeName;
 
4574
           }
 
4575
 
 
4576
           /**
 
4577
            * Set nodeName to nill (currently the same as reset)
 
4578
            */
 
4579
           axis2_status_t AXIS2_CALL
 
4580
           adb_ncRunInstanceType_set_nodeName_nil(
 
4581
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
4582
                   const axutil_env_t *env)
 
4583
           {
 
4584
               return adb_ncRunInstanceType_reset_nodeName(_ncRunInstanceType, env);
 
4585
           }
 
4586
 
 
4587
           
4859
4588
 
4860
4589
            /**
4861
4590
             * getter for statusMessage.
4865
4594
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
4866
4595
                    const axutil_env_t *env)
4867
4596
             {
4868
 
 
 
4597
                
4869
4598
                    AXIS2_ENV_CHECK(env, (int)0);
4870
4599
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0);
4871
 
 
 
4600
                  
4872
4601
 
4873
4602
                return _ncRunInstanceType->property_statusMessage;
4874
4603
             }
4882
4611
                    const axutil_env_t *env,
4883
4612
                    const int  arg_statusMessage)
4884
4613
             {
4885
 
 
 
4614
                
4886
4615
 
4887
4616
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4888
4617
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4889
 
 
 
4618
                
4890
4619
                if(_ncRunInstanceType->is_valid_statusMessage &&
4891
4620
                        arg_statusMessage == _ncRunInstanceType->property_statusMessage)
4892
4621
                {
4893
 
 
4894
 
                    return AXIS2_SUCCESS;
 
4622
                    
 
4623
                    return AXIS2_SUCCESS; 
4895
4624
                }
4896
4625
 
4897
4626
                adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env);
4898
4627
 
4899
4628
                _ncRunInstanceType->property_statusMessage = arg_statusMessage;
4900
4629
                        _ncRunInstanceType->is_valid_statusMessage = AXIS2_TRUE;
4901
 
 
 
4630
                    
4902
4631
                return AXIS2_SUCCESS;
4903
4632
             }
4904
4633
 
4905
 
 
 
4634
             
4906
4635
 
4907
4636
           /**
4908
4637
            * resetter for statusMessage
4918
4647
 
4919
4648
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4920
4649
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4921
 
 
4922
 
 
4923
 
               _ncRunInstanceType->is_valid_statusMessage = AXIS2_FALSE;
 
4650
               
 
4651
 
 
4652
               _ncRunInstanceType->is_valid_statusMessage = AXIS2_FALSE; 
4924
4653
               return AXIS2_SUCCESS;
4925
4654
           }
4926
4655
 
4934
4663
           {
4935
4664
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
4936
4665
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
4937
 
 
 
4666
               
4938
4667
               return !_ncRunInstanceType->is_valid_statusMessage;
4939
4668
           }
4940
4669
 
4949
4678
               return adb_ncRunInstanceType_reset_statusMessage(_ncRunInstanceType, env);
4950
4679
           }
4951
4680
 
4952
 
 
 
4681
           
4953
4682
 
4954
4683
            /**
4955
4684
             * getter for imageId.
4959
4688
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
4960
4689
                    const axutil_env_t *env)
4961
4690
             {
4962
 
 
 
4691
                
4963
4692
                    AXIS2_ENV_CHECK(env, NULL);
4964
4693
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
4965
 
 
 
4694
                  
4966
4695
 
4967
4696
                return _ncRunInstanceType->property_imageId;
4968
4697
             }
4976
4705
                    const axutil_env_t *env,
4977
4706
                    const axis2_char_t*  arg_imageId)
4978
4707
             {
4979
 
 
 
4708
                
4980
4709
 
4981
4710
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
4982
4711
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
4983
 
 
 
4712
                
4984
4713
                if(_ncRunInstanceType->is_valid_imageId &&
4985
4714
                        arg_imageId == _ncRunInstanceType->property_imageId)
4986
4715
                {
4987
 
 
4988
 
                    return AXIS2_SUCCESS;
 
4716
                    
 
4717
                    return AXIS2_SUCCESS; 
4989
4718
                }
4990
4719
 
4991
 
 
 
4720
                
4992
4721
                  if(NULL == arg_imageId)
4993
4722
                  {
4994
4723
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageId is being set to NULL, but it is not a nullable element");
4996
4725
                  }
4997
4726
                adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env);
4998
4727
 
4999
 
 
 
4728
                
5000
4729
                if(NULL == arg_imageId)
5001
4730
                {
5002
4731
                    /* We are already done */
5009
4738
                            return AXIS2_FAILURE;
5010
4739
                        }
5011
4740
                        _ncRunInstanceType->is_valid_imageId = AXIS2_TRUE;
5012
 
 
 
4741
                    
5013
4742
                return AXIS2_SUCCESS;
5014
4743
             }
5015
4744
 
5016
 
 
 
4745
             
5017
4746
 
5018
4747
           /**
5019
4748
            * resetter for imageId
5029
4758
 
5030
4759
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5031
4760
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5032
 
 
5033
 
 
5034
 
 
5035
 
 
5036
 
 
 
4761
               
 
4762
 
 
4763
               
 
4764
            
 
4765
                
5037
4766
                if(_ncRunInstanceType->property_imageId != NULL)
5038
4767
                {
5039
 
 
5040
 
 
 
4768
                   
 
4769
                   
5041
4770
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_imageId);
5042
4771
                     _ncRunInstanceType->property_imageId = NULL;
5043
4772
                }
5044
 
 
5045
 
 
5046
 
 
5047
 
                _ncRunInstanceType->is_valid_imageId = AXIS2_FALSE;
 
4773
            
 
4774
                
 
4775
                
 
4776
                _ncRunInstanceType->is_valid_imageId = AXIS2_FALSE; 
5048
4777
               return AXIS2_SUCCESS;
5049
4778
           }
5050
4779
 
5058
4787
           {
5059
4788
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5060
4789
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5061
 
 
 
4790
               
5062
4791
               return !_ncRunInstanceType->is_valid_imageId;
5063
4792
           }
5064
4793
 
5073
4802
               return adb_ncRunInstanceType_reset_imageId(_ncRunInstanceType, env);
5074
4803
           }
5075
4804
 
5076
 
 
 
4805
           
5077
4806
 
5078
4807
            /**
5079
4808
             * getter for kernelId.
5083
4812
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5084
4813
                    const axutil_env_t *env)
5085
4814
             {
5086
 
 
 
4815
                
5087
4816
                    AXIS2_ENV_CHECK(env, NULL);
5088
4817
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5089
 
 
 
4818
                  
5090
4819
 
5091
4820
                return _ncRunInstanceType->property_kernelId;
5092
4821
             }
5100
4829
                    const axutil_env_t *env,
5101
4830
                    const axis2_char_t*  arg_kernelId)
5102
4831
             {
5103
 
 
 
4832
                
5104
4833
 
5105
4834
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5106
4835
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5107
 
 
 
4836
                
5108
4837
                if(_ncRunInstanceType->is_valid_kernelId &&
5109
4838
                        arg_kernelId == _ncRunInstanceType->property_kernelId)
5110
4839
                {
5111
 
 
5112
 
                    return AXIS2_SUCCESS;
 
4840
                    
 
4841
                    return AXIS2_SUCCESS; 
5113
4842
                }
5114
4843
 
5115
 
 
5116
 
                  if(NULL == arg_kernelId)
5117
 
                  {
5118
 
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelId is being set to NULL, but it is not a nullable element");
5119
 
                      return AXIS2_FAILURE;
5120
 
                  }
5121
4844
                adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env);
5122
4845
 
5123
 
 
 
4846
                
5124
4847
                if(NULL == arg_kernelId)
5125
4848
                {
5126
4849
                    /* We are already done */
5133
4856
                            return AXIS2_FAILURE;
5134
4857
                        }
5135
4858
                        _ncRunInstanceType->is_valid_kernelId = AXIS2_TRUE;
5136
 
 
 
4859
                    
5137
4860
                return AXIS2_SUCCESS;
5138
4861
             }
5139
4862
 
5140
 
 
 
4863
             
5141
4864
 
5142
4865
           /**
5143
4866
            * resetter for kernelId
5153
4876
 
5154
4877
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5155
4878
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5156
 
 
5157
 
 
5158
 
 
5159
 
 
5160
 
 
 
4879
               
 
4880
 
 
4881
               
 
4882
            
 
4883
                
5161
4884
                if(_ncRunInstanceType->property_kernelId != NULL)
5162
4885
                {
5163
 
 
5164
 
 
 
4886
                   
 
4887
                   
5165
4888
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_kernelId);
5166
4889
                     _ncRunInstanceType->property_kernelId = NULL;
5167
4890
                }
5168
 
 
5169
 
 
5170
 
 
5171
 
                _ncRunInstanceType->is_valid_kernelId = AXIS2_FALSE;
 
4891
            
 
4892
                
 
4893
                
 
4894
                _ncRunInstanceType->is_valid_kernelId = AXIS2_FALSE; 
5172
4895
               return AXIS2_SUCCESS;
5173
4896
           }
5174
4897
 
5182
4905
           {
5183
4906
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5184
4907
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5185
 
 
 
4908
               
5186
4909
               return !_ncRunInstanceType->is_valid_kernelId;
5187
4910
           }
5188
4911
 
5197
4920
               return adb_ncRunInstanceType_reset_kernelId(_ncRunInstanceType, env);
5198
4921
           }
5199
4922
 
5200
 
 
 
4923
           
5201
4924
 
5202
4925
            /**
5203
4926
             * getter for ramdiskId.
5207
4930
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5208
4931
                    const axutil_env_t *env)
5209
4932
             {
5210
 
 
 
4933
                
5211
4934
                    AXIS2_ENV_CHECK(env, NULL);
5212
4935
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5213
 
 
 
4936
                  
5214
4937
 
5215
4938
                return _ncRunInstanceType->property_ramdiskId;
5216
4939
             }
5224
4947
                    const axutil_env_t *env,
5225
4948
                    const axis2_char_t*  arg_ramdiskId)
5226
4949
             {
5227
 
 
 
4950
                
5228
4951
 
5229
4952
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5230
4953
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5231
 
 
 
4954
                
5232
4955
                if(_ncRunInstanceType->is_valid_ramdiskId &&
5233
4956
                        arg_ramdiskId == _ncRunInstanceType->property_ramdiskId)
5234
4957
                {
5235
 
 
5236
 
                    return AXIS2_SUCCESS;
 
4958
                    
 
4959
                    return AXIS2_SUCCESS; 
5237
4960
                }
5238
4961
 
5239
4962
                adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env);
5240
4963
 
5241
 
 
 
4964
                
5242
4965
                if(NULL == arg_ramdiskId)
5243
4966
                {
5244
4967
                    /* We are already done */
5251
4974
                            return AXIS2_FAILURE;
5252
4975
                        }
5253
4976
                        _ncRunInstanceType->is_valid_ramdiskId = AXIS2_TRUE;
5254
 
 
 
4977
                    
5255
4978
                return AXIS2_SUCCESS;
5256
4979
             }
5257
4980
 
5258
 
 
 
4981
             
5259
4982
 
5260
4983
           /**
5261
4984
            * resetter for ramdiskId
5271
4994
 
5272
4995
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5273
4996
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5274
 
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
 
4997
               
 
4998
 
 
4999
               
 
5000
            
 
5001
                
5279
5002
                if(_ncRunInstanceType->property_ramdiskId != NULL)
5280
5003
                {
5281
 
 
5282
 
 
 
5004
                   
 
5005
                   
5283
5006
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_ramdiskId);
5284
5007
                     _ncRunInstanceType->property_ramdiskId = NULL;
5285
5008
                }
5286
 
 
5287
 
 
5288
 
 
5289
 
                _ncRunInstanceType->is_valid_ramdiskId = AXIS2_FALSE;
 
5009
            
 
5010
                
 
5011
                
 
5012
                _ncRunInstanceType->is_valid_ramdiskId = AXIS2_FALSE; 
5290
5013
               return AXIS2_SUCCESS;
5291
5014
           }
5292
5015
 
5300
5023
           {
5301
5024
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5302
5025
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5303
 
 
 
5026
               
5304
5027
               return !_ncRunInstanceType->is_valid_ramdiskId;
5305
5028
           }
5306
5029
 
5315
5038
               return adb_ncRunInstanceType_reset_ramdiskId(_ncRunInstanceType, env);
5316
5039
           }
5317
5040
 
5318
 
 
 
5041
           
5319
5042
 
5320
5043
            /**
5321
5044
             * getter for imageURL.
5325
5048
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5326
5049
                    const axutil_env_t *env)
5327
5050
             {
5328
 
 
 
5051
                
5329
5052
                    AXIS2_ENV_CHECK(env, NULL);
5330
5053
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5331
 
 
 
5054
                  
5332
5055
 
5333
5056
                return _ncRunInstanceType->property_imageURL;
5334
5057
             }
5342
5065
                    const axutil_env_t *env,
5343
5066
                    const axis2_char_t*  arg_imageURL)
5344
5067
             {
5345
 
 
 
5068
                
5346
5069
 
5347
5070
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5348
5071
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5349
 
 
 
5072
                
5350
5073
                if(_ncRunInstanceType->is_valid_imageURL &&
5351
5074
                        arg_imageURL == _ncRunInstanceType->property_imageURL)
5352
5075
                {
5353
 
 
5354
 
                    return AXIS2_SUCCESS;
 
5076
                    
 
5077
                    return AXIS2_SUCCESS; 
5355
5078
                }
5356
5079
 
5357
 
 
 
5080
                
5358
5081
                  if(NULL == arg_imageURL)
5359
5082
                  {
5360
5083
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "imageURL is being set to NULL, but it is not a nullable element");
5362
5085
                  }
5363
5086
                adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env);
5364
5087
 
5365
 
 
 
5088
                
5366
5089
                if(NULL == arg_imageURL)
5367
5090
                {
5368
5091
                    /* We are already done */
5375
5098
                            return AXIS2_FAILURE;
5376
5099
                        }
5377
5100
                        _ncRunInstanceType->is_valid_imageURL = AXIS2_TRUE;
5378
 
 
 
5101
                    
5379
5102
                return AXIS2_SUCCESS;
5380
5103
             }
5381
5104
 
5382
 
 
 
5105
             
5383
5106
 
5384
5107
           /**
5385
5108
            * resetter for imageURL
5395
5118
 
5396
5119
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5397
5120
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5398
 
 
5399
 
 
5400
 
 
5401
 
 
5402
 
 
 
5121
               
 
5122
 
 
5123
               
 
5124
            
 
5125
                
5403
5126
                if(_ncRunInstanceType->property_imageURL != NULL)
5404
5127
                {
5405
 
 
5406
 
 
 
5128
                   
 
5129
                   
5407
5130
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_imageURL);
5408
5131
                     _ncRunInstanceType->property_imageURL = NULL;
5409
5132
                }
5410
 
 
5411
 
 
5412
 
 
5413
 
                _ncRunInstanceType->is_valid_imageURL = AXIS2_FALSE;
 
5133
            
 
5134
                
 
5135
                
 
5136
                _ncRunInstanceType->is_valid_imageURL = AXIS2_FALSE; 
5414
5137
               return AXIS2_SUCCESS;
5415
5138
           }
5416
5139
 
5424
5147
           {
5425
5148
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5426
5149
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5427
 
 
 
5150
               
5428
5151
               return !_ncRunInstanceType->is_valid_imageURL;
5429
5152
           }
5430
5153
 
5439
5162
               return adb_ncRunInstanceType_reset_imageURL(_ncRunInstanceType, env);
5440
5163
           }
5441
5164
 
5442
 
 
 
5165
           
5443
5166
 
5444
5167
            /**
5445
5168
             * getter for kernelURL.
5449
5172
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5450
5173
                    const axutil_env_t *env)
5451
5174
             {
5452
 
 
 
5175
                
5453
5176
                    AXIS2_ENV_CHECK(env, NULL);
5454
5177
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5455
 
 
 
5178
                  
5456
5179
 
5457
5180
                return _ncRunInstanceType->property_kernelURL;
5458
5181
             }
5466
5189
                    const axutil_env_t *env,
5467
5190
                    const axis2_char_t*  arg_kernelURL)
5468
5191
             {
5469
 
 
 
5192
                
5470
5193
 
5471
5194
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5472
5195
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5473
 
 
 
5196
                
5474
5197
                if(_ncRunInstanceType->is_valid_kernelURL &&
5475
5198
                        arg_kernelURL == _ncRunInstanceType->property_kernelURL)
5476
5199
                {
5477
 
 
5478
 
                    return AXIS2_SUCCESS;
 
5200
                    
 
5201
                    return AXIS2_SUCCESS; 
5479
5202
                }
5480
5203
 
5481
 
 
5482
 
                  if(NULL == arg_kernelURL)
5483
 
                  {
5484
 
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "kernelURL is being set to NULL, but it is not a nullable element");
5485
 
                      return AXIS2_FAILURE;
5486
 
                  }
5487
5204
                adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env);
5488
5205
 
5489
 
 
 
5206
                
5490
5207
                if(NULL == arg_kernelURL)
5491
5208
                {
5492
5209
                    /* We are already done */
5499
5216
                            return AXIS2_FAILURE;
5500
5217
                        }
5501
5218
                        _ncRunInstanceType->is_valid_kernelURL = AXIS2_TRUE;
5502
 
 
 
5219
                    
5503
5220
                return AXIS2_SUCCESS;
5504
5221
             }
5505
5222
 
5506
 
 
 
5223
             
5507
5224
 
5508
5225
           /**
5509
5226
            * resetter for kernelURL
5519
5236
 
5520
5237
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5521
5238
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5522
 
 
5523
 
 
5524
 
 
5525
 
 
5526
 
 
 
5239
               
 
5240
 
 
5241
               
 
5242
            
 
5243
                
5527
5244
                if(_ncRunInstanceType->property_kernelURL != NULL)
5528
5245
                {
5529
 
 
5530
 
 
 
5246
                   
 
5247
                   
5531
5248
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_kernelURL);
5532
5249
                     _ncRunInstanceType->property_kernelURL = NULL;
5533
5250
                }
5534
 
 
5535
 
 
5536
 
 
5537
 
                _ncRunInstanceType->is_valid_kernelURL = AXIS2_FALSE;
 
5251
            
 
5252
                
 
5253
                
 
5254
                _ncRunInstanceType->is_valid_kernelURL = AXIS2_FALSE; 
5538
5255
               return AXIS2_SUCCESS;
5539
5256
           }
5540
5257
 
5548
5265
           {
5549
5266
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5550
5267
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5551
 
 
 
5268
               
5552
5269
               return !_ncRunInstanceType->is_valid_kernelURL;
5553
5270
           }
5554
5271
 
5563
5280
               return adb_ncRunInstanceType_reset_kernelURL(_ncRunInstanceType, env);
5564
5281
           }
5565
5282
 
5566
 
 
 
5283
           
5567
5284
 
5568
5285
            /**
5569
5286
             * getter for ramdiskURL.
5573
5290
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5574
5291
                    const axutil_env_t *env)
5575
5292
             {
5576
 
 
 
5293
                
5577
5294
                    AXIS2_ENV_CHECK(env, NULL);
5578
5295
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5579
 
 
 
5296
                  
5580
5297
 
5581
5298
                return _ncRunInstanceType->property_ramdiskURL;
5582
5299
             }
5590
5307
                    const axutil_env_t *env,
5591
5308
                    const axis2_char_t*  arg_ramdiskURL)
5592
5309
             {
5593
 
 
 
5310
                
5594
5311
 
5595
5312
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5596
5313
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5597
 
 
 
5314
                
5598
5315
                if(_ncRunInstanceType->is_valid_ramdiskURL &&
5599
5316
                        arg_ramdiskURL == _ncRunInstanceType->property_ramdiskURL)
5600
5317
                {
5601
 
 
5602
 
                    return AXIS2_SUCCESS;
 
5318
                    
 
5319
                    return AXIS2_SUCCESS; 
5603
5320
                }
5604
5321
 
5605
5322
                adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env);
5606
5323
 
5607
 
 
 
5324
                
5608
5325
                if(NULL == arg_ramdiskURL)
5609
5326
                {
5610
5327
                    /* We are already done */
5617
5334
                            return AXIS2_FAILURE;
5618
5335
                        }
5619
5336
                        _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_TRUE;
5620
 
 
 
5337
                    
5621
5338
                return AXIS2_SUCCESS;
5622
5339
             }
5623
5340
 
5624
 
 
 
5341
             
5625
5342
 
5626
5343
           /**
5627
5344
            * resetter for ramdiskURL
5637
5354
 
5638
5355
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5639
5356
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5640
 
 
5641
 
 
5642
 
 
5643
 
 
5644
 
 
 
5357
               
 
5358
 
 
5359
               
 
5360
            
 
5361
                
5645
5362
                if(_ncRunInstanceType->property_ramdiskURL != NULL)
5646
5363
                {
5647
 
 
5648
 
 
 
5364
                   
 
5365
                   
5649
5366
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_ramdiskURL);
5650
5367
                     _ncRunInstanceType->property_ramdiskURL = NULL;
5651
5368
                }
5652
 
 
5653
 
 
5654
 
 
5655
 
                _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_FALSE;
 
5369
            
 
5370
                
 
5371
                
 
5372
                _ncRunInstanceType->is_valid_ramdiskURL = AXIS2_FALSE; 
5656
5373
               return AXIS2_SUCCESS;
5657
5374
           }
5658
5375
 
5666
5383
           {
5667
5384
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5668
5385
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5669
 
 
 
5386
               
5670
5387
               return !_ncRunInstanceType->is_valid_ramdiskURL;
5671
5388
           }
5672
5389
 
5681
5398
               return adb_ncRunInstanceType_reset_ramdiskURL(_ncRunInstanceType, env);
5682
5399
           }
5683
5400
 
5684
 
 
 
5401
           
 
5402
 
 
5403
            /**
 
5404
             * getter for reservationId.
 
5405
             */
 
5406
            axis2_char_t* AXIS2_CALL
 
5407
            adb_ncRunInstanceType_get_reservationId(
 
5408
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5409
                    const axutil_env_t *env)
 
5410
             {
 
5411
                
 
5412
                    AXIS2_ENV_CHECK(env, NULL);
 
5413
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
 
5414
                  
 
5415
 
 
5416
                return _ncRunInstanceType->property_reservationId;
 
5417
             }
 
5418
 
 
5419
            /**
 
5420
             * setter for reservationId
 
5421
             */
 
5422
            axis2_status_t AXIS2_CALL
 
5423
            adb_ncRunInstanceType_set_reservationId(
 
5424
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5425
                    const axutil_env_t *env,
 
5426
                    const axis2_char_t*  arg_reservationId)
 
5427
             {
 
5428
                
 
5429
 
 
5430
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
5431
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
 
5432
                
 
5433
                if(_ncRunInstanceType->is_valid_reservationId &&
 
5434
                        arg_reservationId == _ncRunInstanceType->property_reservationId)
 
5435
                {
 
5436
                    
 
5437
                    return AXIS2_SUCCESS; 
 
5438
                }
 
5439
 
 
5440
                
 
5441
                  if(NULL == arg_reservationId)
 
5442
                  {
 
5443
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element");
 
5444
                      return AXIS2_FAILURE;
 
5445
                  }
 
5446
                adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
 
5447
 
 
5448
                
 
5449
                if(NULL == arg_reservationId)
 
5450
                {
 
5451
                    /* We are already done */
 
5452
                    return AXIS2_SUCCESS;
 
5453
                }
 
5454
                _ncRunInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId);
 
5455
                        if(NULL == _ncRunInstanceType->property_reservationId)
 
5456
                        {
 
5457
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId");
 
5458
                            return AXIS2_FAILURE;
 
5459
                        }
 
5460
                        _ncRunInstanceType->is_valid_reservationId = AXIS2_TRUE;
 
5461
                    
 
5462
                return AXIS2_SUCCESS;
 
5463
             }
 
5464
 
 
5465
             
 
5466
 
 
5467
           /**
 
5468
            * resetter for reservationId
 
5469
            */
 
5470
           axis2_status_t AXIS2_CALL
 
5471
           adb_ncRunInstanceType_reset_reservationId(
 
5472
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5473
                   const axutil_env_t *env)
 
5474
           {
 
5475
               int i = 0;
 
5476
               int count = 0;
 
5477
               void *element = NULL;
 
5478
 
 
5479
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
5480
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
 
5481
               
 
5482
 
 
5483
               
 
5484
            
 
5485
                
 
5486
                if(_ncRunInstanceType->property_reservationId != NULL)
 
5487
                {
 
5488
                   
 
5489
                   
 
5490
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_reservationId);
 
5491
                     _ncRunInstanceType->property_reservationId = NULL;
 
5492
                }
 
5493
            
 
5494
                
 
5495
                
 
5496
                _ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE; 
 
5497
               return AXIS2_SUCCESS;
 
5498
           }
 
5499
 
 
5500
           /**
 
5501
            * Check whether reservationId is nill
 
5502
            */
 
5503
           axis2_bool_t AXIS2_CALL
 
5504
           adb_ncRunInstanceType_is_reservationId_nil(
 
5505
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5506
                   const axutil_env_t *env)
 
5507
           {
 
5508
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
5509
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
 
5510
               
 
5511
               return !_ncRunInstanceType->is_valid_reservationId;
 
5512
           }
 
5513
 
 
5514
           /**
 
5515
            * Set reservationId to nill (currently the same as reset)
 
5516
            */
 
5517
           axis2_status_t AXIS2_CALL
 
5518
           adb_ncRunInstanceType_set_reservationId_nil(
 
5519
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5520
                   const axutil_env_t *env)
 
5521
           {
 
5522
               return adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
 
5523
           }
 
5524
 
 
5525
           
5685
5526
 
5686
5527
            /**
5687
5528
             * getter for instanceId.
5691
5532
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5692
5533
                    const axutil_env_t *env)
5693
5534
             {
5694
 
 
 
5535
                
5695
5536
                    AXIS2_ENV_CHECK(env, NULL);
5696
5537
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5697
 
 
 
5538
                  
5698
5539
 
5699
5540
                return _ncRunInstanceType->property_instanceId;
5700
5541
             }
5708
5549
                    const axutil_env_t *env,
5709
5550
                    const axis2_char_t*  arg_instanceId)
5710
5551
             {
5711
 
 
 
5552
                
5712
5553
 
5713
5554
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5714
5555
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5715
 
 
 
5556
                
5716
5557
                if(_ncRunInstanceType->is_valid_instanceId &&
5717
5558
                        arg_instanceId == _ncRunInstanceType->property_instanceId)
5718
5559
                {
5719
 
 
5720
 
                    return AXIS2_SUCCESS;
 
5560
                    
 
5561
                    return AXIS2_SUCCESS; 
5721
5562
                }
5722
5563
 
5723
 
 
 
5564
                
5724
5565
                  if(NULL == arg_instanceId)
5725
5566
                  {
5726
5567
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element");
5728
5569
                  }
5729
5570
                adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env);
5730
5571
 
5731
 
 
 
5572
                
5732
5573
                if(NULL == arg_instanceId)
5733
5574
                {
5734
5575
                    /* We are already done */
5741
5582
                            return AXIS2_FAILURE;
5742
5583
                        }
5743
5584
                        _ncRunInstanceType->is_valid_instanceId = AXIS2_TRUE;
5744
 
 
 
5585
                    
5745
5586
                return AXIS2_SUCCESS;
5746
5587
             }
5747
5588
 
5748
 
 
 
5589
             
5749
5590
 
5750
5591
           /**
5751
5592
            * resetter for instanceId
5761
5602
 
5762
5603
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5763
5604
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5764
 
 
5765
 
 
5766
 
 
5767
 
 
5768
 
 
 
5605
               
 
5606
 
 
5607
               
 
5608
            
 
5609
                
5769
5610
                if(_ncRunInstanceType->property_instanceId != NULL)
5770
5611
                {
5771
 
 
5772
 
 
 
5612
                   
 
5613
                   
5773
5614
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_instanceId);
5774
5615
                     _ncRunInstanceType->property_instanceId = NULL;
5775
5616
                }
5776
 
 
5777
 
 
5778
 
 
5779
 
                _ncRunInstanceType->is_valid_instanceId = AXIS2_FALSE;
 
5617
            
 
5618
                
 
5619
                
 
5620
                _ncRunInstanceType->is_valid_instanceId = AXIS2_FALSE; 
5780
5621
               return AXIS2_SUCCESS;
5781
5622
           }
5782
5623
 
5790
5631
           {
5791
5632
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5792
5633
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5793
 
 
 
5634
               
5794
5635
               return !_ncRunInstanceType->is_valid_instanceId;
5795
5636
           }
5796
5637
 
5805
5646
               return adb_ncRunInstanceType_reset_instanceId(_ncRunInstanceType, env);
5806
5647
           }
5807
5648
 
5808
 
 
 
5649
           
5809
5650
 
5810
5651
            /**
5811
5652
             * getter for instanceType.
5815
5656
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5816
5657
                    const axutil_env_t *env)
5817
5658
             {
5818
 
 
 
5659
                
5819
5660
                    AXIS2_ENV_CHECK(env, NULL);
5820
5661
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5821
 
 
 
5662
                  
5822
5663
 
5823
5664
                return _ncRunInstanceType->property_instanceType;
5824
5665
             }
5832
5673
                    const axutil_env_t *env,
5833
5674
                    adb_virtualMachineType_t*  arg_instanceType)
5834
5675
             {
5835
 
 
 
5676
                
5836
5677
 
5837
5678
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5838
5679
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5839
 
 
 
5680
                
5840
5681
                if(_ncRunInstanceType->is_valid_instanceType &&
5841
5682
                        arg_instanceType == _ncRunInstanceType->property_instanceType)
5842
5683
                {
5843
 
 
5844
 
                    return AXIS2_SUCCESS;
 
5684
                    
 
5685
                    return AXIS2_SUCCESS; 
5845
5686
                }
5846
5687
 
5847
 
 
 
5688
                
5848
5689
                  if(NULL == arg_instanceType)
5849
5690
                  {
5850
5691
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceType is being set to NULL, but it is not a nullable element");
5852
5693
                  }
5853
5694
                adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env);
5854
5695
 
5855
 
 
 
5696
                
5856
5697
                if(NULL == arg_instanceType)
5857
5698
                {
5858
5699
                    /* We are already done */
5860
5701
                }
5861
5702
                _ncRunInstanceType->property_instanceType = arg_instanceType;
5862
5703
                        _ncRunInstanceType->is_valid_instanceType = AXIS2_TRUE;
5863
 
 
 
5704
                    
5864
5705
                return AXIS2_SUCCESS;
5865
5706
             }
5866
5707
 
5867
 
 
 
5708
             
5868
5709
 
5869
5710
           /**
5870
5711
            * resetter for instanceType
5880
5721
 
5881
5722
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5882
5723
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
 
 
5724
               
 
5725
 
 
5726
               
 
5727
            
 
5728
                
5888
5729
                if(_ncRunInstanceType->property_instanceType != NULL)
5889
5730
                {
5890
 
 
5891
 
 
 
5731
                   
 
5732
                   
5892
5733
                        adb_virtualMachineType_free(_ncRunInstanceType->property_instanceType, env);
5893
5734
                     _ncRunInstanceType->property_instanceType = NULL;
5894
5735
                }
5895
 
 
5896
 
 
5897
 
 
5898
 
                _ncRunInstanceType->is_valid_instanceType = AXIS2_FALSE;
 
5736
            
 
5737
                
 
5738
                
 
5739
                _ncRunInstanceType->is_valid_instanceType = AXIS2_FALSE; 
5899
5740
               return AXIS2_SUCCESS;
5900
5741
           }
5901
5742
 
5909
5750
           {
5910
5751
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5911
5752
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5912
 
 
 
5753
               
5913
5754
               return !_ncRunInstanceType->is_valid_instanceType;
5914
5755
           }
5915
5756
 
5924
5765
               return adb_ncRunInstanceType_reset_instanceType(_ncRunInstanceType, env);
5925
5766
           }
5926
5767
 
5927
 
 
 
5768
           
5928
5769
 
5929
5770
            /**
5930
5771
             * getter for keyName.
5934
5775
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
5935
5776
                    const axutil_env_t *env)
5936
5777
             {
5937
 
 
 
5778
                
5938
5779
                    AXIS2_ENV_CHECK(env, NULL);
5939
5780
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5940
 
 
 
5781
                  
5941
5782
 
5942
5783
                return _ncRunInstanceType->property_keyName;
5943
5784
             }
5951
5792
                    const axutil_env_t *env,
5952
5793
                    const axis2_char_t*  arg_keyName)
5953
5794
             {
5954
 
 
 
5795
                
5955
5796
 
5956
5797
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5957
5798
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5958
 
 
 
5799
                
5959
5800
                if(_ncRunInstanceType->is_valid_keyName &&
5960
5801
                        arg_keyName == _ncRunInstanceType->property_keyName)
5961
5802
                {
5962
 
 
5963
 
                    return AXIS2_SUCCESS;
 
5803
                    
 
5804
                    return AXIS2_SUCCESS; 
5964
5805
                }
5965
5806
 
5966
 
 
 
5807
                
5967
5808
                  if(NULL == arg_keyName)
5968
5809
                  {
5969
5810
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "keyName is being set to NULL, but it is not a nullable element");
5971
5812
                  }
5972
5813
                adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env);
5973
5814
 
5974
 
 
 
5815
                
5975
5816
                if(NULL == arg_keyName)
5976
5817
                {
5977
5818
                    /* We are already done */
5984
5825
                            return AXIS2_FAILURE;
5985
5826
                        }
5986
5827
                        _ncRunInstanceType->is_valid_keyName = AXIS2_TRUE;
5987
 
 
 
5828
                    
5988
5829
                return AXIS2_SUCCESS;
5989
5830
             }
5990
5831
 
5991
 
 
 
5832
             
5992
5833
 
5993
5834
           /**
5994
5835
            * resetter for keyName
6004
5845
 
6005
5846
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6006
5847
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6007
 
 
6008
 
 
6009
 
 
6010
 
 
6011
 
 
 
5848
               
 
5849
 
 
5850
               
 
5851
            
 
5852
                
6012
5853
                if(_ncRunInstanceType->property_keyName != NULL)
6013
5854
                {
6014
 
 
6015
 
 
 
5855
                   
 
5856
                   
6016
5857
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_keyName);
6017
5858
                     _ncRunInstanceType->property_keyName = NULL;
6018
5859
                }
6019
 
 
6020
 
 
6021
 
 
6022
 
                _ncRunInstanceType->is_valid_keyName = AXIS2_FALSE;
 
5860
            
 
5861
                
 
5862
                
 
5863
                _ncRunInstanceType->is_valid_keyName = AXIS2_FALSE; 
6023
5864
               return AXIS2_SUCCESS;
6024
5865
           }
6025
5866
 
6033
5874
           {
6034
5875
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6035
5876
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6036
 
 
 
5877
               
6037
5878
               return !_ncRunInstanceType->is_valid_keyName;
6038
5879
           }
6039
5880
 
6048
5889
               return adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env);
6049
5890
           }
6050
5891
 
6051
 
 
6052
 
 
6053
 
            /**
6054
 
             * getter for publicMacAddress.
6055
 
             */
6056
 
            axis2_char_t* AXIS2_CALL
6057
 
            adb_ncRunInstanceType_get_publicMacAddress(
6058
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6059
 
                    const axutil_env_t *env)
6060
 
             {
6061
 
 
6062
 
                    AXIS2_ENV_CHECK(env, NULL);
6063
 
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6064
 
 
6065
 
 
6066
 
                return _ncRunInstanceType->property_publicMacAddress;
6067
 
             }
6068
 
 
6069
 
            /**
6070
 
             * setter for publicMacAddress
6071
 
             */
6072
 
            axis2_status_t AXIS2_CALL
6073
 
            adb_ncRunInstanceType_set_publicMacAddress(
6074
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6075
 
                    const axutil_env_t *env,
6076
 
                    const axis2_char_t*  arg_publicMacAddress)
6077
 
             {
6078
 
 
6079
 
 
6080
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6081
 
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6082
 
 
6083
 
                if(_ncRunInstanceType->is_valid_publicMacAddress &&
6084
 
                        arg_publicMacAddress == _ncRunInstanceType->property_publicMacAddress)
6085
 
                {
6086
 
 
6087
 
                    return AXIS2_SUCCESS;
6088
 
                }
6089
 
 
6090
 
 
6091
 
                  if(NULL == arg_publicMacAddress)
6092
 
                  {
6093
 
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element");
6094
 
                      return AXIS2_FAILURE;
6095
 
                  }
6096
 
                adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env);
6097
 
 
6098
 
 
6099
 
                if(NULL == arg_publicMacAddress)
6100
 
                {
6101
 
                    /* We are already done */
6102
 
                    return AXIS2_SUCCESS;
6103
 
                }
6104
 
                _ncRunInstanceType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress);
6105
 
                        if(NULL == _ncRunInstanceType->property_publicMacAddress)
6106
 
                        {
6107
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress");
6108
 
                            return AXIS2_FAILURE;
6109
 
                        }
6110
 
                        _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_TRUE;
6111
 
 
6112
 
                return AXIS2_SUCCESS;
6113
 
             }
6114
 
 
6115
 
 
6116
 
 
6117
 
           /**
6118
 
            * resetter for publicMacAddress
6119
 
            */
6120
 
           axis2_status_t AXIS2_CALL
6121
 
           adb_ncRunInstanceType_reset_publicMacAddress(
6122
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6123
 
                   const axutil_env_t *env)
6124
 
           {
6125
 
               int i = 0;
6126
 
               int count = 0;
6127
 
               void *element = NULL;
6128
 
 
6129
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6130
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6131
 
 
6132
 
 
6133
 
 
6134
 
 
6135
 
 
6136
 
                if(_ncRunInstanceType->property_publicMacAddress != NULL)
6137
 
                {
6138
 
 
6139
 
 
6140
 
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_publicMacAddress);
6141
 
                     _ncRunInstanceType->property_publicMacAddress = NULL;
6142
 
                }
6143
 
 
6144
 
 
6145
 
 
6146
 
                _ncRunInstanceType->is_valid_publicMacAddress = AXIS2_FALSE;
6147
 
               return AXIS2_SUCCESS;
6148
 
           }
6149
 
 
6150
 
           /**
6151
 
            * Check whether publicMacAddress is nill
6152
 
            */
6153
 
           axis2_bool_t AXIS2_CALL
6154
 
           adb_ncRunInstanceType_is_publicMacAddress_nil(
6155
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6156
 
                   const axutil_env_t *env)
6157
 
           {
6158
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6159
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6160
 
 
6161
 
               return !_ncRunInstanceType->is_valid_publicMacAddress;
6162
 
           }
6163
 
 
6164
 
           /**
6165
 
            * Set publicMacAddress to nill (currently the same as reset)
6166
 
            */
6167
 
           axis2_status_t AXIS2_CALL
6168
 
           adb_ncRunInstanceType_set_publicMacAddress_nil(
6169
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6170
 
                   const axutil_env_t *env)
6171
 
           {
6172
 
               return adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env);
6173
 
           }
6174
 
 
6175
 
 
6176
 
 
6177
 
            /**
6178
 
             * getter for privateMacAddress.
6179
 
             */
6180
 
            axis2_char_t* AXIS2_CALL
6181
 
            adb_ncRunInstanceType_get_privateMacAddress(
6182
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6183
 
                    const axutil_env_t *env)
6184
 
             {
6185
 
 
6186
 
                    AXIS2_ENV_CHECK(env, NULL);
6187
 
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6188
 
 
6189
 
 
6190
 
                return _ncRunInstanceType->property_privateMacAddress;
6191
 
             }
6192
 
 
6193
 
            /**
6194
 
             * setter for privateMacAddress
6195
 
             */
6196
 
            axis2_status_t AXIS2_CALL
6197
 
            adb_ncRunInstanceType_set_privateMacAddress(
6198
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6199
 
                    const axutil_env_t *env,
6200
 
                    const axis2_char_t*  arg_privateMacAddress)
6201
 
             {
6202
 
 
6203
 
 
6204
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6205
 
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6206
 
 
6207
 
                if(_ncRunInstanceType->is_valid_privateMacAddress &&
6208
 
                        arg_privateMacAddress == _ncRunInstanceType->property_privateMacAddress)
6209
 
                {
6210
 
 
6211
 
                    return AXIS2_SUCCESS;
6212
 
                }
6213
 
 
6214
 
 
6215
 
                  if(NULL == arg_privateMacAddress)
6216
 
                  {
6217
 
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element");
6218
 
                      return AXIS2_FAILURE;
6219
 
                  }
6220
 
                adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env);
6221
 
 
6222
 
 
6223
 
                if(NULL == arg_privateMacAddress)
6224
 
                {
6225
 
                    /* We are already done */
6226
 
                    return AXIS2_SUCCESS;
6227
 
                }
6228
 
                _ncRunInstanceType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress);
6229
 
                        if(NULL == _ncRunInstanceType->property_privateMacAddress)
6230
 
                        {
6231
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress");
6232
 
                            return AXIS2_FAILURE;
6233
 
                        }
6234
 
                        _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_TRUE;
6235
 
 
6236
 
                return AXIS2_SUCCESS;
6237
 
             }
6238
 
 
6239
 
 
6240
 
 
6241
 
           /**
6242
 
            * resetter for privateMacAddress
6243
 
            */
6244
 
           axis2_status_t AXIS2_CALL
6245
 
           adb_ncRunInstanceType_reset_privateMacAddress(
6246
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6247
 
                   const axutil_env_t *env)
6248
 
           {
6249
 
               int i = 0;
6250
 
               int count = 0;
6251
 
               void *element = NULL;
6252
 
 
6253
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6254
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
                if(_ncRunInstanceType->property_privateMacAddress != NULL)
6261
 
                {
6262
 
 
6263
 
 
6264
 
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_privateMacAddress);
6265
 
                     _ncRunInstanceType->property_privateMacAddress = NULL;
6266
 
                }
6267
 
 
6268
 
 
6269
 
 
6270
 
                _ncRunInstanceType->is_valid_privateMacAddress = AXIS2_FALSE;
6271
 
               return AXIS2_SUCCESS;
6272
 
           }
6273
 
 
6274
 
           /**
6275
 
            * Check whether privateMacAddress is nill
6276
 
            */
6277
 
           axis2_bool_t AXIS2_CALL
6278
 
           adb_ncRunInstanceType_is_privateMacAddress_nil(
6279
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6280
 
                   const axutil_env_t *env)
6281
 
           {
6282
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6283
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6284
 
 
6285
 
               return !_ncRunInstanceType->is_valid_privateMacAddress;
6286
 
           }
6287
 
 
6288
 
           /**
6289
 
            * Set privateMacAddress to nill (currently the same as reset)
6290
 
            */
6291
 
           axis2_status_t AXIS2_CALL
6292
 
           adb_ncRunInstanceType_set_privateMacAddress_nil(
6293
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6294
 
                   const axutil_env_t *env)
6295
 
           {
6296
 
               return adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env);
6297
 
           }
6298
 
 
6299
 
 
6300
 
 
6301
 
            /**
6302
 
             * getter for reservationId.
6303
 
             */
6304
 
            axis2_char_t* AXIS2_CALL
6305
 
            adb_ncRunInstanceType_get_reservationId(
6306
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6307
 
                    const axutil_env_t *env)
6308
 
             {
6309
 
 
6310
 
                    AXIS2_ENV_CHECK(env, NULL);
6311
 
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6312
 
 
6313
 
 
6314
 
                return _ncRunInstanceType->property_reservationId;
6315
 
             }
6316
 
 
6317
 
            /**
6318
 
             * setter for reservationId
6319
 
             */
6320
 
            axis2_status_t AXIS2_CALL
6321
 
            adb_ncRunInstanceType_set_reservationId(
6322
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6323
 
                    const axutil_env_t *env,
6324
 
                    const axis2_char_t*  arg_reservationId)
6325
 
             {
6326
 
 
6327
 
 
6328
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6329
 
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6330
 
 
6331
 
                if(_ncRunInstanceType->is_valid_reservationId &&
6332
 
                        arg_reservationId == _ncRunInstanceType->property_reservationId)
6333
 
                {
6334
 
 
6335
 
                    return AXIS2_SUCCESS;
6336
 
                }
6337
 
 
6338
 
 
6339
 
                  if(NULL == arg_reservationId)
6340
 
                  {
6341
 
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element");
6342
 
                      return AXIS2_FAILURE;
6343
 
                  }
6344
 
                adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
6345
 
 
6346
 
 
6347
 
                if(NULL == arg_reservationId)
6348
 
                {
6349
 
                    /* We are already done */
6350
 
                    return AXIS2_SUCCESS;
6351
 
                }
6352
 
                _ncRunInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId);
6353
 
                        if(NULL == _ncRunInstanceType->property_reservationId)
6354
 
                        {
6355
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId");
6356
 
                            return AXIS2_FAILURE;
6357
 
                        }
6358
 
                        _ncRunInstanceType->is_valid_reservationId = AXIS2_TRUE;
6359
 
 
6360
 
                return AXIS2_SUCCESS;
6361
 
             }
6362
 
 
6363
 
 
6364
 
 
6365
 
           /**
6366
 
            * resetter for reservationId
6367
 
            */
6368
 
           axis2_status_t AXIS2_CALL
6369
 
           adb_ncRunInstanceType_reset_reservationId(
6370
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6371
 
                   const axutil_env_t *env)
6372
 
           {
6373
 
               int i = 0;
6374
 
               int count = 0;
6375
 
               void *element = NULL;
6376
 
 
6377
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6378
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6379
 
 
6380
 
 
6381
 
 
6382
 
 
6383
 
 
6384
 
                if(_ncRunInstanceType->property_reservationId != NULL)
6385
 
                {
6386
 
 
6387
 
 
6388
 
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_reservationId);
6389
 
                     _ncRunInstanceType->property_reservationId = NULL;
6390
 
                }
6391
 
 
6392
 
 
6393
 
 
6394
 
                _ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE;
6395
 
               return AXIS2_SUCCESS;
6396
 
           }
6397
 
 
6398
 
           /**
6399
 
            * Check whether reservationId is nill
6400
 
            */
6401
 
           axis2_bool_t AXIS2_CALL
6402
 
           adb_ncRunInstanceType_is_reservationId_nil(
6403
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6404
 
                   const axutil_env_t *env)
6405
 
           {
6406
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6407
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6408
 
 
6409
 
               return !_ncRunInstanceType->is_valid_reservationId;
6410
 
           }
6411
 
 
6412
 
           /**
6413
 
            * Set reservationId to nill (currently the same as reset)
6414
 
            */
6415
 
           axis2_status_t AXIS2_CALL
6416
 
           adb_ncRunInstanceType_set_reservationId_nil(
6417
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6418
 
                   const axutil_env_t *env)
6419
 
           {
6420
 
               return adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
6421
 
           }
6422
 
 
6423
 
 
6424
 
 
6425
 
            /**
6426
 
             * getter for vlan.
6427
 
             */
6428
 
            int AXIS2_CALL
6429
 
            adb_ncRunInstanceType_get_vlan(
6430
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6431
 
                    const axutil_env_t *env)
6432
 
             {
6433
 
 
6434
 
                    AXIS2_ENV_CHECK(env, (int)0);
6435
 
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0);
6436
 
 
6437
 
 
6438
 
                return _ncRunInstanceType->property_vlan;
6439
 
             }
6440
 
 
6441
 
            /**
6442
 
             * setter for vlan
6443
 
             */
6444
 
            axis2_status_t AXIS2_CALL
6445
 
            adb_ncRunInstanceType_set_vlan(
6446
 
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6447
 
                    const axutil_env_t *env,
6448
 
                    const int  arg_vlan)
6449
 
             {
6450
 
 
6451
 
 
6452
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6453
 
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6454
 
 
6455
 
                if(_ncRunInstanceType->is_valid_vlan &&
6456
 
                        arg_vlan == _ncRunInstanceType->property_vlan)
6457
 
                {
6458
 
 
6459
 
                    return AXIS2_SUCCESS;
6460
 
                }
6461
 
 
6462
 
                adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env);
6463
 
 
6464
 
                _ncRunInstanceType->property_vlan = arg_vlan;
6465
 
                        _ncRunInstanceType->is_valid_vlan = AXIS2_TRUE;
6466
 
 
6467
 
                return AXIS2_SUCCESS;
6468
 
             }
6469
 
 
6470
 
 
6471
 
 
6472
 
           /**
6473
 
            * resetter for vlan
6474
 
            */
6475
 
           axis2_status_t AXIS2_CALL
6476
 
           adb_ncRunInstanceType_reset_vlan(
6477
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6478
 
                   const axutil_env_t *env)
6479
 
           {
6480
 
               int i = 0;
6481
 
               int count = 0;
6482
 
               void *element = NULL;
6483
 
 
6484
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6485
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6486
 
 
6487
 
 
6488
 
               _ncRunInstanceType->is_valid_vlan = AXIS2_FALSE;
6489
 
               return AXIS2_SUCCESS;
6490
 
           }
6491
 
 
6492
 
           /**
6493
 
            * Check whether vlan is nill
6494
 
            */
6495
 
           axis2_bool_t AXIS2_CALL
6496
 
           adb_ncRunInstanceType_is_vlan_nil(
6497
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6498
 
                   const axutil_env_t *env)
6499
 
           {
6500
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6501
 
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6502
 
 
6503
 
               return !_ncRunInstanceType->is_valid_vlan;
6504
 
           }
6505
 
 
6506
 
           /**
6507
 
            * Set vlan to nill (currently the same as reset)
6508
 
            */
6509
 
           axis2_status_t AXIS2_CALL
6510
 
           adb_ncRunInstanceType_set_vlan_nil(
6511
 
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
6512
 
                   const axutil_env_t *env)
6513
 
           {
6514
 
               return adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env);
6515
 
           }
6516
 
 
6517
 
 
 
5892
           
 
5893
 
 
5894
            /**
 
5895
             * getter for netParams.
 
5896
             */
 
5897
            adb_netConfigType_t* AXIS2_CALL
 
5898
            adb_ncRunInstanceType_get_netParams(
 
5899
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5900
                    const axutil_env_t *env)
 
5901
             {
 
5902
                
 
5903
                    AXIS2_ENV_CHECK(env, NULL);
 
5904
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
 
5905
                  
 
5906
 
 
5907
                return _ncRunInstanceType->property_netParams;
 
5908
             }
 
5909
 
 
5910
            /**
 
5911
             * setter for netParams
 
5912
             */
 
5913
            axis2_status_t AXIS2_CALL
 
5914
            adb_ncRunInstanceType_set_netParams(
 
5915
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5916
                    const axutil_env_t *env,
 
5917
                    adb_netConfigType_t*  arg_netParams)
 
5918
             {
 
5919
                
 
5920
 
 
5921
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
5922
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
 
5923
                
 
5924
                if(_ncRunInstanceType->is_valid_netParams &&
 
5925
                        arg_netParams == _ncRunInstanceType->property_netParams)
 
5926
                {
 
5927
                    
 
5928
                    return AXIS2_SUCCESS; 
 
5929
                }
 
5930
 
 
5931
                
 
5932
                  if(NULL == arg_netParams)
 
5933
                  {
 
5934
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netParams is being set to NULL, but it is not a nullable element");
 
5935
                      return AXIS2_FAILURE;
 
5936
                  }
 
5937
                adb_ncRunInstanceType_reset_netParams(_ncRunInstanceType, env);
 
5938
 
 
5939
                
 
5940
                if(NULL == arg_netParams)
 
5941
                {
 
5942
                    /* We are already done */
 
5943
                    return AXIS2_SUCCESS;
 
5944
                }
 
5945
                _ncRunInstanceType->property_netParams = arg_netParams;
 
5946
                        _ncRunInstanceType->is_valid_netParams = AXIS2_TRUE;
 
5947
                    
 
5948
                return AXIS2_SUCCESS;
 
5949
             }
 
5950
 
 
5951
             
 
5952
 
 
5953
           /**
 
5954
            * resetter for netParams
 
5955
            */
 
5956
           axis2_status_t AXIS2_CALL
 
5957
           adb_ncRunInstanceType_reset_netParams(
 
5958
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5959
                   const axutil_env_t *env)
 
5960
           {
 
5961
               int i = 0;
 
5962
               int count = 0;
 
5963
               void *element = NULL;
 
5964
 
 
5965
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
5966
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
 
5967
               
 
5968
 
 
5969
               
 
5970
            
 
5971
                
 
5972
                if(_ncRunInstanceType->property_netParams != NULL)
 
5973
                {
 
5974
                   
 
5975
                   
 
5976
                        adb_netConfigType_free(_ncRunInstanceType->property_netParams, env);
 
5977
                     _ncRunInstanceType->property_netParams = NULL;
 
5978
                }
 
5979
            
 
5980
                
 
5981
                
 
5982
                _ncRunInstanceType->is_valid_netParams = AXIS2_FALSE; 
 
5983
               return AXIS2_SUCCESS;
 
5984
           }
 
5985
 
 
5986
           /**
 
5987
            * Check whether netParams is nill
 
5988
            */
 
5989
           axis2_bool_t AXIS2_CALL
 
5990
           adb_ncRunInstanceType_is_netParams_nil(
 
5991
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
5992
                   const axutil_env_t *env)
 
5993
           {
 
5994
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
5995
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
 
5996
               
 
5997
               return !_ncRunInstanceType->is_valid_netParams;
 
5998
           }
 
5999
 
 
6000
           /**
 
6001
            * Set netParams to nill (currently the same as reset)
 
6002
            */
 
6003
           axis2_status_t AXIS2_CALL
 
6004
           adb_ncRunInstanceType_set_netParams_nil(
 
6005
                   adb_ncRunInstanceType_t* _ncRunInstanceType,
 
6006
                   const axutil_env_t *env)
 
6007
           {
 
6008
               return adb_ncRunInstanceType_reset_netParams(_ncRunInstanceType, env);
 
6009
           }
 
6010
 
 
6011
           
6518
6012
 
6519
6013
            /**
6520
6014
             * getter for userData.
6524
6018
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6525
6019
                    const axutil_env_t *env)
6526
6020
             {
6527
 
 
 
6021
                
6528
6022
                    AXIS2_ENV_CHECK(env, NULL);
6529
6023
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6530
 
 
 
6024
                  
6531
6025
 
6532
6026
                return _ncRunInstanceType->property_userData;
6533
6027
             }
6541
6035
                    const axutil_env_t *env,
6542
6036
                    const axis2_char_t*  arg_userData)
6543
6037
             {
6544
 
 
 
6038
                
6545
6039
 
6546
6040
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6547
6041
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6548
 
 
 
6042
                
6549
6043
                if(_ncRunInstanceType->is_valid_userData &&
6550
6044
                        arg_userData == _ncRunInstanceType->property_userData)
6551
6045
                {
6552
 
 
6553
 
                    return AXIS2_SUCCESS;
 
6046
                    
 
6047
                    return AXIS2_SUCCESS; 
6554
6048
                }
6555
6049
 
6556
6050
                adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env);
6557
6051
 
6558
 
 
 
6052
                
6559
6053
                if(NULL == arg_userData)
6560
6054
                {
6561
6055
                    /* We are already done */
6568
6062
                            return AXIS2_FAILURE;
6569
6063
                        }
6570
6064
                        _ncRunInstanceType->is_valid_userData = AXIS2_TRUE;
6571
 
 
 
6065
                    
6572
6066
                return AXIS2_SUCCESS;
6573
6067
             }
6574
6068
 
6575
 
 
 
6069
             
6576
6070
 
6577
6071
           /**
6578
6072
            * resetter for userData
6588
6082
 
6589
6083
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6590
6084
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6591
 
 
6592
 
 
6593
 
 
6594
 
 
6595
 
 
 
6085
               
 
6086
 
 
6087
               
 
6088
            
 
6089
                
6596
6090
                if(_ncRunInstanceType->property_userData != NULL)
6597
6091
                {
6598
 
 
6599
 
 
 
6092
                   
 
6093
                   
6600
6094
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_userData);
6601
6095
                     _ncRunInstanceType->property_userData = NULL;
6602
6096
                }
6603
 
 
6604
 
 
6605
 
 
6606
 
                _ncRunInstanceType->is_valid_userData = AXIS2_FALSE;
 
6097
            
 
6098
                
 
6099
                
 
6100
                _ncRunInstanceType->is_valid_userData = AXIS2_FALSE; 
6607
6101
               return AXIS2_SUCCESS;
6608
6102
           }
6609
6103
 
6617
6111
           {
6618
6112
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6619
6113
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6620
 
 
 
6114
               
6621
6115
               return !_ncRunInstanceType->is_valid_userData;
6622
6116
           }
6623
6117
 
6632
6126
               return adb_ncRunInstanceType_reset_userData(_ncRunInstanceType, env);
6633
6127
           }
6634
6128
 
6635
 
 
 
6129
           
6636
6130
 
6637
6131
            /**
6638
6132
             * getter for launchIndex.
6642
6136
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6643
6137
                    const axutil_env_t *env)
6644
6138
             {
6645
 
 
 
6139
                
6646
6140
                    AXIS2_ENV_CHECK(env, NULL);
6647
6141
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6648
 
 
 
6142
                  
6649
6143
 
6650
6144
                return _ncRunInstanceType->property_launchIndex;
6651
6145
             }
6659
6153
                    const axutil_env_t *env,
6660
6154
                    const axis2_char_t*  arg_launchIndex)
6661
6155
             {
6662
 
 
 
6156
                
6663
6157
 
6664
6158
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6665
6159
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6666
 
 
 
6160
                
6667
6161
                if(_ncRunInstanceType->is_valid_launchIndex &&
6668
6162
                        arg_launchIndex == _ncRunInstanceType->property_launchIndex)
6669
6163
                {
6670
 
 
6671
 
                    return AXIS2_SUCCESS;
 
6164
                    
 
6165
                    return AXIS2_SUCCESS; 
6672
6166
                }
6673
6167
 
6674
6168
                adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env);
6675
6169
 
6676
 
 
 
6170
                
6677
6171
                if(NULL == arg_launchIndex)
6678
6172
                {
6679
6173
                    /* We are already done */
6686
6180
                            return AXIS2_FAILURE;
6687
6181
                        }
6688
6182
                        _ncRunInstanceType->is_valid_launchIndex = AXIS2_TRUE;
6689
 
 
 
6183
                    
6690
6184
                return AXIS2_SUCCESS;
6691
6185
             }
6692
6186
 
6693
 
 
 
6187
             
6694
6188
 
6695
6189
           /**
6696
6190
            * resetter for launchIndex
6706
6200
 
6707
6201
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6708
6202
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6709
 
 
6710
 
 
6711
 
 
6712
 
 
6713
 
 
 
6203
               
 
6204
 
 
6205
               
 
6206
            
 
6207
                
6714
6208
                if(_ncRunInstanceType->property_launchIndex != NULL)
6715
6209
                {
6716
 
 
6717
 
 
 
6210
                   
 
6211
                   
6718
6212
                        AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_launchIndex);
6719
6213
                     _ncRunInstanceType->property_launchIndex = NULL;
6720
6214
                }
6721
 
 
6722
 
 
6723
 
 
6724
 
                _ncRunInstanceType->is_valid_launchIndex = AXIS2_FALSE;
 
6215
            
 
6216
                
 
6217
                
 
6218
                _ncRunInstanceType->is_valid_launchIndex = AXIS2_FALSE; 
6725
6219
               return AXIS2_SUCCESS;
6726
6220
           }
6727
6221
 
6735
6229
           {
6736
6230
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6737
6231
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6738
 
 
 
6232
               
6739
6233
               return !_ncRunInstanceType->is_valid_launchIndex;
6740
6234
           }
6741
6235
 
6750
6244
               return adb_ncRunInstanceType_reset_launchIndex(_ncRunInstanceType, env);
6751
6245
           }
6752
6246
 
6753
 
 
 
6247
           
6754
6248
 
6755
6249
            /**
6756
6250
             * getter for groupNames.
6760
6254
                    adb_ncRunInstanceType_t* _ncRunInstanceType,
6761
6255
                    const axutil_env_t *env)
6762
6256
             {
6763
 
 
 
6257
                
6764
6258
                    AXIS2_ENV_CHECK(env, NULL);
6765
6259
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6766
 
 
 
6260
                  
6767
6261
 
6768
6262
                return _ncRunInstanceType->property_groupNames;
6769
6263
             }
6777
6271
                    const axutil_env_t *env,
6778
6272
                    axutil_array_list_t*  arg_groupNames)
6779
6273
             {
6780
 
 
 
6274
                
6781
6275
                 int size = 0;
6782
6276
                 int i = 0;
6783
6277
                 axis2_bool_t non_nil_exists = AXIS2_FALSE;
6784
 
 
 
6278
                
6785
6279
 
6786
6280
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6787
6281
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6788
 
 
 
6282
                
6789
6283
                if(_ncRunInstanceType->is_valid_groupNames &&
6790
6284
                        arg_groupNames == _ncRunInstanceType->property_groupNames)
6791
6285
                {
6792
 
 
6793
 
                    return AXIS2_SUCCESS;
 
6286
                    
 
6287
                    return AXIS2_SUCCESS; 
6794
6288
                }
6795
6289
 
6796
 
 
 
6290
                
6797
6291
                 size = axutil_array_list_size(arg_groupNames, env);
6798
 
 
 
6292
                 
6799
6293
                     if (size > 64)
6800
6294
                     {
6801
6295
                         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)");
6802
6296
                         return AXIS2_FAILURE;
6803
6297
                     }
6804
 
 
 
6298
                 
6805
6299
                 if (size < 0)
6806
6300
                 {
6807
6301
                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)");
6818
6312
 
6819
6313
                 adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env);
6820
6314
 
6821
 
 
 
6315
                
6822
6316
                if(NULL == arg_groupNames)
6823
6317
                {
6824
6318
                    /* We are already done */
6829
6323
                        {
6830
6324
                            _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE;
6831
6325
                        }
6832
 
 
6833
 
 
 
6326
                        
 
6327
                    
6834
6328
                return AXIS2_SUCCESS;
6835
6329
             }
6836
6330
 
6837
 
 
 
6331
            
6838
6332
            /**
6839
6333
             * Get ith element of groupNames.
6840
6334
             */
6845
6339
            {
6846
6340
                axis2_char_t* ret_val;
6847
6341
 
6848
 
 
 
6342
                
6849
6343
                    AXIS2_ENV_CHECK(env, NULL);
6850
6344
                    AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6851
 
 
 
6345
                  
6852
6346
 
6853
6347
                if(_ncRunInstanceType->property_groupNames == NULL)
6854
6348
                {
6855
6349
                    return (axis2_char_t*)0;
6856
6350
                }
6857
6351
                ret_val = (axis2_char_t*)axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i);
6858
 
 
 
6352
                
6859
6353
                    return ret_val;
6860
 
 
 
6354
                  
6861
6355
            }
6862
6356
 
6863
6357
            /**
6875
6369
                int k;
6876
6370
                axis2_bool_t non_nil_exists = AXIS2_FALSE;
6877
6371
 
6878
 
 
 
6372
                
6879
6373
 
6880
6374
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6881
6375
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6882
 
 
 
6376
                
6883
6377
                if( _ncRunInstanceType->is_valid_groupNames &&
6884
6378
                    _ncRunInstanceType->property_groupNames &&
6885
 
 
 
6379
                
6886
6380
                    arg_groupNames == (axis2_char_t*)axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i))
6887
 
 
 
6381
                  
6888
6382
                {
6889
 
 
6890
 
                    return AXIS2_SUCCESS;
 
6383
                    
 
6384
                    return AXIS2_SUCCESS; 
6891
6385
                }
6892
6386
 
6893
 
 
 
6387
                
6894
6388
                    if(NULL == arg_groupNames)
6895
6389
                    {
6896
6390
                        if(_ncRunInstanceType->property_groupNames != NULL)
6898
6392
                            size = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env);
6899
6393
                            for(j = 0, k = 0; j < size; j ++ )
6900
6394
                            {
6901
 
                                if(i == j) continue;
 
6395
                                if(i == j) continue; 
6902
6396
                                if(NULL != axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i))
6903
6397
                                {
6904
6398
                                    k ++;
6915
6409
                    {
6916
6410
                        non_nil_exists = AXIS2_TRUE;
6917
6411
                    }
6918
 
 
 
6412
                  
6919
6413
                if( k < 0)
6920
6414
                {
6921
6415
                       AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)");
6926
6420
                {
6927
6421
                    _ncRunInstanceType->property_groupNames = axutil_array_list_create(env, 10);
6928
6422
                }
6929
 
 
 
6423
                
6930
6424
                /* check whether there already exist an element */
6931
6425
                element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i);
6932
6426
                if(NULL != element)
6933
6427
                {
6934
 
 
6935
 
 
6936
 
 
 
6428
                  
 
6429
                  
 
6430
                  
6937
6431
                       /* This is an unknown type or a primitive. Please free this manually*/
6938
 
 
 
6432
                     
6939
6433
                }
6940
6434
 
6941
 
 
 
6435
                
6942
6436
                    if(!non_nil_exists)
6943
6437
                    {
6944
 
 
 
6438
                        
6945
6439
                        _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE;
6946
6440
                        axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL);
6947
 
 
 
6441
                        
6948
6442
                        return AXIS2_SUCCESS;
6949
6443
                    }
6950
 
 
 
6444
                
6951
6445
                   axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames));
6952
6446
                  _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE;
6953
 
 
 
6447
                
6954
6448
                return AXIS2_SUCCESS;
6955
6449
            }
6956
6450
 
6963
6457
                    const axutil_env_t *env,
6964
6458
                    const axis2_char_t* arg_groupNames)
6965
6459
             {
6966
 
 
 
6460
                
6967
6461
 
6968
6462
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6969
6463
                AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6970
6464
 
6971
 
 
 
6465
                
6972
6466
                    if(NULL == arg_groupNames)
6973
6467
                    {
6974
 
 
6975
 
                           return AXIS2_SUCCESS;
6976
 
 
 
6468
                      
 
6469
                           return AXIS2_SUCCESS; 
 
6470
                        
6977
6471
                    }
6978
 
 
 
6472
                  
6979
6473
 
6980
6474
                if(_ncRunInstanceType->property_groupNames == NULL)
6981
6475
                {
6985
6479
                {
6986
6480
                    AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames");
6987
6481
                    return AXIS2_FAILURE;
6988
 
 
 
6482
                    
6989
6483
                }
6990
 
 
 
6484
                
6991
6485
                   axutil_array_list_add(_ncRunInstanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames));
6992
6486
                  _ncRunInstanceType->is_valid_groupNames = AXIS2_TRUE;
6993
6487
                return AXIS2_SUCCESS;
7021
6515
                return adb_ncRunInstanceType_set_groupNames_nil_at(_ncRunInstanceType, env, i);
7022
6516
            }
7023
6517
 
7024
 
 
 
6518
            
7025
6519
 
7026
6520
           /**
7027
6521
            * resetter for groupNames
7037
6531
 
7038
6532
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
7039
6533
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
7040
 
 
7041
 
 
7042
 
 
 
6534
               
 
6535
 
 
6536
               
7043
6537
                  if (_ncRunInstanceType->property_groupNames != NULL)
7044
6538
                  {
7045
6539
                      count = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env);
7046
6540
                      for(i = 0; i < count; i ++)
7047
6541
                      {
7048
6542
                         element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i);
7049
 
 
7050
 
 
7051
 
 
 
6543
                
 
6544
            
 
6545
                
7052
6546
                if(element != NULL)
7053
6547
                {
7054
 
 
7055
 
 
 
6548
                   
 
6549
                   
7056
6550
                        AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
7057
6551
                     element = NULL;
7058
6552
                }
7059
 
 
7060
 
 
7061
 
 
7062
 
 
 
6553
            
 
6554
                
 
6555
                
 
6556
                
7063
6557
                      }
7064
6558
                      axutil_array_list_free(_ncRunInstanceType->property_groupNames, env);
7065
6559
                  }
7066
 
                _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE;
 
6560
                _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE; 
7067
6561
               return AXIS2_SUCCESS;
7068
6562
           }
7069
6563
 
7077
6571
           {
7078
6572
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
7079
6573
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
7080
 
 
 
6574
               
7081
6575
               return !_ncRunInstanceType->is_valid_groupNames;
7082
6576
           }
7083
6577
 
7092
6586
               return adb_ncRunInstanceType_reset_groupNames(_ncRunInstanceType, env);
7093
6587
           }
7094
6588
 
7095
 
 
 
6589
           
7096
6590
           /**
7097
6591
            * Check whether groupNames is nill at i
7098
6592
            */
7103
6597
           {
7104
6598
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
7105
6599
               AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
7106
 
 
 
6600
               
7107
6601
               return (_ncRunInstanceType->is_valid_groupNames == AXIS2_FALSE ||
7108
 
                        NULL == _ncRunInstanceType->property_groupNames ||
 
6602
                        NULL == _ncRunInstanceType->property_groupNames || 
7109
6603
                        NULL == axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i));
7110
6604
           }
7111
6605
 
7130
6624
                if(_ncRunInstanceType->property_groupNames == NULL ||
7131
6625
                            _ncRunInstanceType->is_valid_groupNames == AXIS2_FALSE)
7132
6626
                {
7133
 
 
 
6627
                    
7134
6628
                    non_nil_exists = AXIS2_FALSE;
7135
6629
                }
7136
6630
                else
7138
6632
                    size = axutil_array_list_size(_ncRunInstanceType->property_groupNames, env);
7139
6633
                    for(j = 0, k = 0; j < size; j ++ )
7140
6634
                    {
7141
 
                        if(i == j) continue;
 
6635
                        if(i == j) continue; 
7142
6636
                        if(NULL != axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i))
7143
6637
                        {
7144
6638
                            k ++;
7150
6644
                        }
7151
6645
                    }
7152
6646
                }
7153
 
 
 
6647
                
7154
6648
 
7155
6649
                if( k < 0)
7156
6650
                {
7157
6651
                       AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)");
7158
6652
                       return AXIS2_FAILURE;
7159
6653
                }
7160
 
 
 
6654
 
7161
6655
                if(_ncRunInstanceType->property_groupNames == NULL)
7162
6656
                {
7163
6657
                    _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE;
7164
 
 
 
6658
                    
7165
6659
                    return AXIS2_SUCCESS;
7166
6660
                }
7167
6661
 
7169
6663
                element = axutil_array_list_get(_ncRunInstanceType->property_groupNames, env, i);
7170
6664
                if(NULL != element)
7171
6665
                {
7172
 
 
7173
 
 
7174
 
 
 
6666
                  
 
6667
                  
 
6668
                  
7175
6669
                       /* This is an unknown type or a primitive. Please free this manually*/
7176
 
 
 
6670
                     
7177
6671
                }
7178
6672
 
7179
 
 
 
6673
                
7180
6674
                    if(!non_nil_exists)
7181
6675
                    {
7182
 
 
 
6676
                        
7183
6677
                        _ncRunInstanceType->is_valid_groupNames = AXIS2_FALSE;
7184
6678
                        axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL);
7185
6679
                        return AXIS2_SUCCESS;
7186
6680
                    }
7187
 
 
7188
 
 
7189
 
 
 
6681
                
 
6682
 
 
6683
                
7190
6684
                axutil_array_list_set(_ncRunInstanceType->property_groupNames , env, i, NULL);
7191
 
 
 
6685
                
7192
6686
                return AXIS2_SUCCESS;
7193
6687
 
7194
6688
           }
7195
6689
 
7196
 
 
 
6690
           
7197
6691