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

« back to all changes in this revision

Viewing changes to node/generated/adb_ncTerminateInstanceResponseType.c

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

Dustin Kirkland <kirkland@canonical.com>

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

Show diffs side-by-side

added added

removed removed

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