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

« back to all changes in this revision

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