4
* adb_ncGetConsoleOutputType.c
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)
10
#include "adb_ncGetConsoleOutputType.h"
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
21
struct adb_ncGetConsoleOutputType
23
axis2_char_t* property_correlationId;
26
axis2_bool_t is_valid_correlationId;
29
axis2_char_t* property_userId;
32
axis2_bool_t is_valid_userId;
35
axis2_bool_t property_return;
38
axis2_bool_t is_valid_return;
41
int property_statusMessage;
44
axis2_bool_t is_valid_statusMessage;
47
axis2_char_t* property_instanceId;
50
axis2_bool_t is_valid_instanceId;
57
/************************* Private Function prototypes ********************************/
60
axis2_status_t AXIS2_CALL
61
adb_ncGetConsoleOutputType_set_correlationId_nil(
62
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
63
const axutil_env_t *env);
66
axis2_status_t AXIS2_CALL
67
adb_ncGetConsoleOutputType_set_userId_nil(
68
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
69
const axutil_env_t *env);
72
axis2_status_t AXIS2_CALL
73
adb_ncGetConsoleOutputType_set_return_nil(
74
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
75
const axutil_env_t *env);
78
axis2_status_t AXIS2_CALL
79
adb_ncGetConsoleOutputType_set_instanceId_nil(
80
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
81
const axutil_env_t *env);
85
/************************* Function Implmentations ********************************/
86
adb_ncGetConsoleOutputType_t* AXIS2_CALL
87
adb_ncGetConsoleOutputType_create(
88
const axutil_env_t *env)
90
adb_ncGetConsoleOutputType_t *_ncGetConsoleOutputType = NULL;
92
AXIS2_ENV_CHECK(env, NULL);
94
_ncGetConsoleOutputType = (adb_ncGetConsoleOutputType_t *) AXIS2_MALLOC(env->
95
allocator, sizeof(adb_ncGetConsoleOutputType_t));
97
if(NULL == _ncGetConsoleOutputType)
99
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
103
memset(_ncGetConsoleOutputType, 0, sizeof(adb_ncGetConsoleOutputType_t));
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;
115
return _ncGetConsoleOutputType;
118
axis2_status_t AXIS2_CALL
119
adb_ncGetConsoleOutputType_free (
120
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
121
const axutil_env_t *env)
125
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
126
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
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);
135
if(_ncGetConsoleOutputType)
137
AXIS2_FREE(env->allocator, _ncGetConsoleOutputType);
138
_ncGetConsoleOutputType = NULL;
140
return AXIS2_SUCCESS;
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)
154
axiom_node_t *parent = *dp_parent;
156
axis2_status_t status = AXIS2_SUCCESS;
158
axis2_char_t* text_value = NULL;
159
axutil_qname_t *qname = NULL;
161
axutil_qname_t *element_qname = NULL;
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;
168
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
169
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
173
while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
175
parent = axiom_node_get_next_sibling(parent, env);
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;
187
first_node = axiom_node_get_first_child(parent, env);
193
* building correlationId element
198
current_node = first_node;
199
is_early_node_valid = AXIS2_FALSE;
202
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
204
current_node = axiom_node_get_next_sibling(current_node, env);
206
if(current_node != NULL)
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);
212
element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
216
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
218
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
220
is_early_node_valid = AXIS2_TRUE;
224
text_value = axiom_element_get_text(current_element, env, current_node);
225
if(text_value != NULL)
227
status = adb_ncGetConsoleOutputType_set_correlationId(_ncGetConsoleOutputType, env,
234
* axis2_qname_t *qname = NULL;
235
* axiom_attribute_t *the_attri = NULL;
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);
240
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
242
axiom_attribute_t *the_attri = NULL;
243
axis2_char_t *attrib_text = NULL;
244
axutil_hash_t *attribute_hash = NULL;
246
attribute_hash = axiom_element_get_all_attributes(current_element, env);
251
axutil_hash_index_t *hi;
255
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
257
axutil_hash_this(hi, &key, NULL, &val);
259
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
261
the_attri = (axiom_attribute_t*)val;
269
attrib_text = axiom_attribute_get_value(the_attri, env);
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");
277
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
279
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
280
status = AXIS2_FAILURE;
284
/* after all, we found this is a empty string */
285
status = adb_ncGetConsoleOutputType_set_correlationId(_ncGetConsoleOutputType, env,
290
if(AXIS2_FAILURE == status)
292
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
295
axutil_qname_free(element_qname, env);
297
return AXIS2_FAILURE;
303
axutil_qname_free(element_qname, env);
304
element_qname = NULL;
310
* building userId element
316
* because elements are ordered this works fine
320
if(current_node != NULL && is_early_node_valid)
322
current_node = axiom_node_get_next_sibling(current_node, env);
325
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
327
current_node = axiom_node_get_next_sibling(current_node, env);
329
if(current_node != NULL)
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);
336
is_early_node_valid = AXIS2_FALSE;
338
element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
342
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
344
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
346
is_early_node_valid = AXIS2_TRUE;
350
text_value = axiom_element_get_text(current_element, env, current_node);
351
if(text_value != NULL)
353
status = adb_ncGetConsoleOutputType_set_userId(_ncGetConsoleOutputType, env,
360
* axis2_qname_t *qname = NULL;
361
* axiom_attribute_t *the_attri = NULL;
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);
366
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
368
axiom_attribute_t *the_attri = NULL;
369
axis2_char_t *attrib_text = NULL;
370
axutil_hash_t *attribute_hash = NULL;
372
attribute_hash = axiom_element_get_all_attributes(current_element, env);
377
axutil_hash_index_t *hi;
381
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
383
axutil_hash_this(hi, &key, NULL, &val);
385
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
387
the_attri = (axiom_attribute_t*)val;
395
attrib_text = axiom_attribute_get_value(the_attri, env);
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");
403
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
405
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
406
status = AXIS2_FAILURE;
410
/* after all, we found this is a empty string */
411
status = adb_ncGetConsoleOutputType_set_userId(_ncGetConsoleOutputType, env,
416
if(AXIS2_FAILURE == status)
418
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
421
axutil_qname_free(element_qname, env);
423
return AXIS2_FAILURE;
429
axutil_qname_free(element_qname, env);
430
element_qname = NULL;
436
* building return element
442
* because elements are ordered this works fine
446
if(current_node != NULL && is_early_node_valid)
448
current_node = axiom_node_get_next_sibling(current_node, env);
451
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
453
current_node = axiom_node_get_next_sibling(current_node, env);
455
if(current_node != NULL)
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);
462
is_early_node_valid = AXIS2_FALSE;
464
element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
468
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
470
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
472
is_early_node_valid = AXIS2_TRUE;
476
text_value = axiom_element_get_text(current_element, env, current_node);
477
if(text_value != NULL)
479
if (!axutil_strcasecmp(text_value , "true"))
481
status = adb_ncGetConsoleOutputType_set_return(_ncGetConsoleOutputType, env,
486
status = adb_ncGetConsoleOutputType_set_return(_ncGetConsoleOutputType, env,
493
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
494
status = AXIS2_FAILURE;
497
if(AXIS2_FAILURE == status)
499
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
502
axutil_qname_free(element_qname, env);
504
return AXIS2_FAILURE;
510
axutil_qname_free(element_qname, env);
511
element_qname = NULL;
517
* building statusMessage element
523
* because elements are ordered this works fine
527
if(current_node != NULL && is_early_node_valid)
529
current_node = axiom_node_get_next_sibling(current_node, env);
532
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
534
current_node = axiom_node_get_next_sibling(current_node, env);
536
if(current_node != NULL)
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);
543
is_early_node_valid = AXIS2_FALSE;
545
element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
549
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
551
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
553
is_early_node_valid = AXIS2_TRUE;
557
text_value = axiom_element_get_text(current_element, env, current_node);
558
if(text_value != NULL)
560
status = adb_ncGetConsoleOutputType_set_statusMessage(_ncGetConsoleOutputType, env,
564
if(AXIS2_FAILURE == status)
566
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
569
axutil_qname_free(element_qname, env);
571
return AXIS2_FAILURE;
577
axutil_qname_free(element_qname, env);
578
element_qname = NULL;
584
* building instanceId element
590
* because elements are ordered this works fine
594
if(current_node != NULL && is_early_node_valid)
596
current_node = axiom_node_get_next_sibling(current_node, env);
599
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
601
current_node = axiom_node_get_next_sibling(current_node, env);
603
if(current_node != NULL)
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);
610
is_early_node_valid = AXIS2_FALSE;
612
element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
616
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
618
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
620
is_early_node_valid = AXIS2_TRUE;
624
text_value = axiom_element_get_text(current_element, env, current_node);
625
if(text_value != NULL)
627
status = adb_ncGetConsoleOutputType_set_instanceId(_ncGetConsoleOutputType, env,
634
* axis2_qname_t *qname = NULL;
635
* axiom_attribute_t *the_attri = NULL;
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);
640
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
642
axiom_attribute_t *the_attri = NULL;
643
axis2_char_t *attrib_text = NULL;
644
axutil_hash_t *attribute_hash = NULL;
646
attribute_hash = axiom_element_get_all_attributes(current_element, env);
651
axutil_hash_index_t *hi;
655
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
657
axutil_hash_this(hi, &key, NULL, &val);
659
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
661
the_attri = (axiom_attribute_t*)val;
669
attrib_text = axiom_attribute_get_value(the_attri, env);
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");
677
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
679
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
680
status = AXIS2_FAILURE;
684
/* after all, we found this is a empty string */
685
status = adb_ncGetConsoleOutputType_set_instanceId(_ncGetConsoleOutputType, env,
690
if(AXIS2_FAILURE == status)
692
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
695
axutil_qname_free(element_qname, env);
697
return AXIS2_FAILURE;
701
else if(!dont_care_minoccurs)
705
axutil_qname_free(element_qname, env);
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;
714
axutil_qname_free(element_qname, env);
715
element_qname = NULL;
721
axis2_bool_t AXIS2_CALL
722
adb_ncGetConsoleOutputType_is_particle()
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)
737
/* Here this is an empty function, Nothing to declare */
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)
750
axis2_char_t *string_to_stream;
753
axiom_node_t *current_node = NULL;
758
axiom_namespace_t *ns1 = NULL;
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;
765
axis2_char_t *text_value_1;
766
axis2_char_t *text_value_1_temp;
768
axis2_char_t *text_value_2;
769
axis2_char_t *text_value_2_temp;
771
axis2_char_t text_value_3[64];
773
axis2_char_t text_value_4[64];
775
axis2_char_t *text_value_5;
776
axis2_char_t *text_value_5_temp;
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;
784
axiom_data_source_t *data_source = NULL;
785
axutil_stream_t *stream = NULL;
789
AXIS2_ENV_CHECK(env, NULL);
790
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL);
793
current_node = parent;
794
data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
797
stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
801
if(!parent_tag_closed)
804
string_to_stream = ">";
805
axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
810
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
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);
816
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
817
"http://eucalyptus.ucsb.edu/",
822
if (!_ncGetConsoleOutputType->is_valid_correlationId)
825
/* no need to complain for minoccurs=0 element */
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")));
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 */
846
* parsing correlationId element
851
sprintf(start_input_str, "<%s%scorrelationId>",
852
p_prefix?p_prefix:"",
853
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
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);
861
text_value_1 = _ncGetConsoleOutputType->property_correlationId;
863
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
866
text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
867
if (text_value_1_temp)
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);
874
axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
877
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
880
AXIS2_FREE(env->allocator,start_input_str);
881
AXIS2_FREE(env->allocator,end_input_str);
885
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
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);
891
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
892
"http://eucalyptus.ucsb.edu/",
897
if (!_ncGetConsoleOutputType->is_valid_userId)
900
/* no need to complain for minoccurs=0 element */
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")));
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 */
921
* parsing userId element
926
sprintf(start_input_str, "<%s%suserId>",
927
p_prefix?p_prefix:"",
928
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
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);
936
text_value_2 = _ncGetConsoleOutputType->property_userId;
938
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
941
text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
942
if (text_value_2_temp)
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);
949
axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
952
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
955
AXIS2_FREE(env->allocator,start_input_str);
956
AXIS2_FREE(env->allocator,end_input_str);
960
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
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);
966
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
967
"http://eucalyptus.ucsb.edu/",
972
if (!_ncGetConsoleOutputType->is_valid_return)
975
/* no need to complain for minoccurs=0 element */
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")));
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 */
996
* parsing return element
1001
sprintf(start_input_str, "<%s%sreturn>",
1002
p_prefix?p_prefix:"",
1003
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
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);
1011
strcpy(text_value_3, (_ncGetConsoleOutputType->property_return)?"true":"false");
1013
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1015
axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1017
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1020
AXIS2_FREE(env->allocator,start_input_str);
1021
AXIS2_FREE(env->allocator,end_input_str);
1025
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
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);
1031
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1032
"http://eucalyptus.ucsb.edu/",
1037
if (!_ncGetConsoleOutputType->is_valid_statusMessage)
1040
/* no need to complain for minoccurs=0 element */
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")));
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 */
1061
* parsing statusMessage element
1066
sprintf(start_input_str, "<%s%sstatusMessage>",
1067
p_prefix?p_prefix:"",
1068
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
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);
1076
sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncGetConsoleOutputType->property_statusMessage);
1078
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1080
axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1082
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1085
AXIS2_FREE(env->allocator,start_input_str);
1086
AXIS2_FREE(env->allocator,end_input_str);
1090
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
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);
1096
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1097
"http://eucalyptus.ucsb.edu/",
1102
if (!_ncGetConsoleOutputType->is_valid_instanceId)
1106
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId");
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")));
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 */
1127
* parsing instanceId element
1132
sprintf(start_input_str, "<%s%sinstanceId>",
1133
p_prefix?p_prefix:"",
1134
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
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);
1142
text_value_5 = _ncGetConsoleOutputType->property_instanceId;
1144
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1147
text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
1148
if (text_value_5_temp)
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);
1155
axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1158
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1161
AXIS2_FREE(env->allocator,start_input_str);
1162
AXIS2_FREE(env->allocator,end_input_str);
1174
* getter for correlationId.
1176
axis2_char_t* AXIS2_CALL
1177
adb_ncGetConsoleOutputType_get_correlationId(
1178
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1179
const axutil_env_t *env)
1182
AXIS2_ENV_CHECK(env, NULL);
1183
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL);
1186
return _ncGetConsoleOutputType->property_correlationId;
1190
* setter for correlationId
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)
1200
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1201
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1203
if(_ncGetConsoleOutputType->is_valid_correlationId &&
1204
arg_correlationId == _ncGetConsoleOutputType->property_correlationId)
1207
return AXIS2_SUCCESS;
1210
adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env);
1213
if(NULL == arg_correlationId)
1215
/* We are already done */
1216
return AXIS2_SUCCESS;
1218
_ncGetConsoleOutputType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
1219
if(NULL == _ncGetConsoleOutputType->property_correlationId)
1221
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
1222
return AXIS2_FAILURE;
1224
_ncGetConsoleOutputType->is_valid_correlationId = AXIS2_TRUE;
1226
return AXIS2_SUCCESS;
1232
* resetter for correlationId
1234
axis2_status_t AXIS2_CALL
1235
adb_ncGetConsoleOutputType_reset_correlationId(
1236
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1237
const axutil_env_t *env)
1241
void *element = NULL;
1243
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1244
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1250
if(_ncGetConsoleOutputType->property_correlationId != NULL)
1254
AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_correlationId);
1255
_ncGetConsoleOutputType->property_correlationId = NULL;
1260
_ncGetConsoleOutputType->is_valid_correlationId = AXIS2_FALSE;
1261
return AXIS2_SUCCESS;
1265
* Check whether correlationId is nill
1267
axis2_bool_t AXIS2_CALL
1268
adb_ncGetConsoleOutputType_is_correlationId_nil(
1269
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1270
const axutil_env_t *env)
1272
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1273
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE);
1275
return !_ncGetConsoleOutputType->is_valid_correlationId;
1279
* Set correlationId to nill (currently the same as reset)
1281
axis2_status_t AXIS2_CALL
1282
adb_ncGetConsoleOutputType_set_correlationId_nil(
1283
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1284
const axutil_env_t *env)
1286
return adb_ncGetConsoleOutputType_reset_correlationId(_ncGetConsoleOutputType, env);
1292
* getter for userId.
1294
axis2_char_t* AXIS2_CALL
1295
adb_ncGetConsoleOutputType_get_userId(
1296
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1297
const axutil_env_t *env)
1300
AXIS2_ENV_CHECK(env, NULL);
1301
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL);
1304
return _ncGetConsoleOutputType->property_userId;
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)
1318
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1319
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1321
if(_ncGetConsoleOutputType->is_valid_userId &&
1322
arg_userId == _ncGetConsoleOutputType->property_userId)
1325
return AXIS2_SUCCESS;
1328
adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env);
1331
if(NULL == arg_userId)
1333
/* We are already done */
1334
return AXIS2_SUCCESS;
1336
_ncGetConsoleOutputType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
1337
if(NULL == _ncGetConsoleOutputType->property_userId)
1339
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
1340
return AXIS2_FAILURE;
1342
_ncGetConsoleOutputType->is_valid_userId = AXIS2_TRUE;
1344
return AXIS2_SUCCESS;
1350
* resetter for userId
1352
axis2_status_t AXIS2_CALL
1353
adb_ncGetConsoleOutputType_reset_userId(
1354
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1355
const axutil_env_t *env)
1359
void *element = NULL;
1361
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1362
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1368
if(_ncGetConsoleOutputType->property_userId != NULL)
1372
AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_userId);
1373
_ncGetConsoleOutputType->property_userId = NULL;
1378
_ncGetConsoleOutputType->is_valid_userId = AXIS2_FALSE;
1379
return AXIS2_SUCCESS;
1383
* Check whether userId is nill
1385
axis2_bool_t AXIS2_CALL
1386
adb_ncGetConsoleOutputType_is_userId_nil(
1387
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1388
const axutil_env_t *env)
1390
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1391
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE);
1393
return !_ncGetConsoleOutputType->is_valid_userId;
1397
* Set userId to nill (currently the same as reset)
1399
axis2_status_t AXIS2_CALL
1400
adb_ncGetConsoleOutputType_set_userId_nil(
1401
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1402
const axutil_env_t *env)
1404
return adb_ncGetConsoleOutputType_reset_userId(_ncGetConsoleOutputType, env);
1410
* getter for return.
1412
axis2_bool_t AXIS2_CALL
1413
adb_ncGetConsoleOutputType_get_return(
1414
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1415
const axutil_env_t *env)
1418
AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
1419
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, (axis2_bool_t)0);
1422
return _ncGetConsoleOutputType->property_return;
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)
1436
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1437
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1439
if(_ncGetConsoleOutputType->is_valid_return &&
1440
arg_return == _ncGetConsoleOutputType->property_return)
1443
return AXIS2_SUCCESS;
1446
adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env);
1448
_ncGetConsoleOutputType->property_return = arg_return;
1449
_ncGetConsoleOutputType->is_valid_return = AXIS2_TRUE;
1451
return AXIS2_SUCCESS;
1457
* resetter for return
1459
axis2_status_t AXIS2_CALL
1460
adb_ncGetConsoleOutputType_reset_return(
1461
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1462
const axutil_env_t *env)
1466
void *element = NULL;
1468
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1469
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1472
_ncGetConsoleOutputType->is_valid_return = AXIS2_FALSE;
1473
return AXIS2_SUCCESS;
1477
* Check whether return is nill
1479
axis2_bool_t AXIS2_CALL
1480
adb_ncGetConsoleOutputType_is_return_nil(
1481
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1482
const axutil_env_t *env)
1484
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1485
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE);
1487
return !_ncGetConsoleOutputType->is_valid_return;
1491
* Set return to nill (currently the same as reset)
1493
axis2_status_t AXIS2_CALL
1494
adb_ncGetConsoleOutputType_set_return_nil(
1495
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1496
const axutil_env_t *env)
1498
return adb_ncGetConsoleOutputType_reset_return(_ncGetConsoleOutputType, env);
1504
* getter for statusMessage.
1507
adb_ncGetConsoleOutputType_get_statusMessage(
1508
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1509
const axutil_env_t *env)
1512
AXIS2_ENV_CHECK(env, (int)0);
1513
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, (int)0);
1516
return _ncGetConsoleOutputType->property_statusMessage;
1520
* setter for statusMessage
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)
1530
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1531
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1533
if(_ncGetConsoleOutputType->is_valid_statusMessage &&
1534
arg_statusMessage == _ncGetConsoleOutputType->property_statusMessage)
1537
return AXIS2_SUCCESS;
1540
adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env);
1542
_ncGetConsoleOutputType->property_statusMessage = arg_statusMessage;
1543
_ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_TRUE;
1545
return AXIS2_SUCCESS;
1551
* resetter for statusMessage
1553
axis2_status_t AXIS2_CALL
1554
adb_ncGetConsoleOutputType_reset_statusMessage(
1555
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1556
const axutil_env_t *env)
1560
void *element = NULL;
1562
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1563
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1566
_ncGetConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE;
1567
return AXIS2_SUCCESS;
1571
* Check whether statusMessage is nill
1573
axis2_bool_t AXIS2_CALL
1574
adb_ncGetConsoleOutputType_is_statusMessage_nil(
1575
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1576
const axutil_env_t *env)
1578
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1579
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE);
1581
return !_ncGetConsoleOutputType->is_valid_statusMessage;
1585
* Set statusMessage to nill (currently the same as reset)
1587
axis2_status_t AXIS2_CALL
1588
adb_ncGetConsoleOutputType_set_statusMessage_nil(
1589
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1590
const axutil_env_t *env)
1592
return adb_ncGetConsoleOutputType_reset_statusMessage(_ncGetConsoleOutputType, env);
1598
* getter for instanceId.
1600
axis2_char_t* AXIS2_CALL
1601
adb_ncGetConsoleOutputType_get_instanceId(
1602
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1603
const axutil_env_t *env)
1606
AXIS2_ENV_CHECK(env, NULL);
1607
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, NULL);
1610
return _ncGetConsoleOutputType->property_instanceId;
1614
* setter for instanceId
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)
1624
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1625
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1627
if(_ncGetConsoleOutputType->is_valid_instanceId &&
1628
arg_instanceId == _ncGetConsoleOutputType->property_instanceId)
1631
return AXIS2_SUCCESS;
1635
if(NULL == arg_instanceId)
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;
1640
adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env);
1643
if(NULL == arg_instanceId)
1645
/* We are already done */
1646
return AXIS2_SUCCESS;
1648
_ncGetConsoleOutputType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
1649
if(NULL == _ncGetConsoleOutputType->property_instanceId)
1651
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
1652
return AXIS2_FAILURE;
1654
_ncGetConsoleOutputType->is_valid_instanceId = AXIS2_TRUE;
1656
return AXIS2_SUCCESS;
1662
* resetter for instanceId
1664
axis2_status_t AXIS2_CALL
1665
adb_ncGetConsoleOutputType_reset_instanceId(
1666
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1667
const axutil_env_t *env)
1671
void *element = NULL;
1673
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1674
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_FAILURE);
1680
if(_ncGetConsoleOutputType->property_instanceId != NULL)
1684
AXIS2_FREE(env-> allocator, _ncGetConsoleOutputType->property_instanceId);
1685
_ncGetConsoleOutputType->property_instanceId = NULL;
1690
_ncGetConsoleOutputType->is_valid_instanceId = AXIS2_FALSE;
1691
return AXIS2_SUCCESS;
1695
* Check whether instanceId is nill
1697
axis2_bool_t AXIS2_CALL
1698
adb_ncGetConsoleOutputType_is_instanceId_nil(
1699
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1700
const axutil_env_t *env)
1702
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1703
AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputType, AXIS2_TRUE);
1705
return !_ncGetConsoleOutputType->is_valid_instanceId;
1709
* Set instanceId to nill (currently the same as reset)
1711
axis2_status_t AXIS2_CALL
1712
adb_ncGetConsoleOutputType_set_instanceId_nil(
1713
adb_ncGetConsoleOutputType_t* _ncGetConsoleOutputType,
1714
const axutil_env_t *env)
1716
return adb_ncGetConsoleOutputType_reset_instanceId(_ncGetConsoleOutputType, env);