3
#ifndef ADB_NETWORKTYPE_H
4
#define ADB_NETWORKTYPE_H
9
* This file was auto-generated from WSDL
10
* by the Apache Axis2/Java version: 1.4 Built on : Apr 26, 2008 (06:25:17 EDT)
14
* adb_networkType class
16
typedef struct adb_networkType adb_networkType_t;
22
#include <axis2_util.h>
23
#include <axiom_soap.h>
24
#include <axis2_client.h>
31
#define ADB_DEFAULT_DIGIT_LIMIT 64
32
#define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
35
/******************************* Create and Free functions *********************************/
38
* Constructor for creating adb_networkType_t
39
* @param env pointer to environment struct
40
* @return newly created adb_networkType_t object
42
adb_networkType_t* AXIS2_CALL
43
adb_networkType_create(
44
const axutil_env_t *env );
47
* Free adb_networkType_t object
48
* @param _networkType adb_networkType_t object to free
49
* @param env pointer to environment struct
50
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
52
axis2_status_t AXIS2_CALL
53
adb_networkType_free (
54
adb_networkType_t* _networkType,
55
const axutil_env_t *env);
59
/********************************** Getters and Setters **************************************/
60
/******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
65
* @param _networkType adb_networkType_t object
66
* @param env pointer to environment struct
70
adb_networkType_get_vlan(
71
adb_networkType_t* _networkType,
72
const axutil_env_t *env);
76
* @param _networkType adb_networkType_t object
77
* @param env pointer to environment struct
79
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
81
axis2_status_t AXIS2_CALL
82
adb_networkType_set_vlan(
83
adb_networkType_t* _networkType,
84
const axutil_env_t *env,
89
* @param _networkType adb_networkType_t object
90
* @param env pointer to environment struct
91
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
93
axis2_status_t AXIS2_CALL
94
adb_networkType_reset_vlan(
95
adb_networkType_t* _networkType,
96
const axutil_env_t *env);
102
* Getter for netName.
103
* @param _networkType adb_networkType_t object
104
* @param env pointer to environment struct
105
* @return axis2_char_t*
107
axis2_char_t* AXIS2_CALL
108
adb_networkType_get_netName(
109
adb_networkType_t* _networkType,
110
const axutil_env_t *env);
113
* Setter for netName.
114
* @param _networkType adb_networkType_t object
115
* @param env pointer to environment struct
116
* @param arg_netName axis2_char_t*
117
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
119
axis2_status_t AXIS2_CALL
120
adb_networkType_set_netName(
121
adb_networkType_t* _networkType,
122
const axutil_env_t *env,
123
const axis2_char_t* arg_netName);
126
* Resetter for netName
127
* @param _networkType adb_networkType_t object
128
* @param env pointer to environment struct
129
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
131
axis2_status_t AXIS2_CALL
132
adb_networkType_reset_netName(
133
adb_networkType_t* _networkType,
134
const axutil_env_t *env);
140
* Getter for userName.
141
* @param _networkType adb_networkType_t object
142
* @param env pointer to environment struct
143
* @return axis2_char_t*
145
axis2_char_t* AXIS2_CALL
146
adb_networkType_get_userName(
147
adb_networkType_t* _networkType,
148
const axutil_env_t *env);
151
* Setter for userName.
152
* @param _networkType adb_networkType_t object
153
* @param env pointer to environment struct
154
* @param arg_userName axis2_char_t*
155
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
157
axis2_status_t AXIS2_CALL
158
adb_networkType_set_userName(
159
adb_networkType_t* _networkType,
160
const axutil_env_t *env,
161
const axis2_char_t* arg_userName);
164
* Resetter for userName
165
* @param _networkType adb_networkType_t object
166
* @param env pointer to environment struct
167
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
169
axis2_status_t AXIS2_CALL
170
adb_networkType_reset_userName(
171
adb_networkType_t* _networkType,
172
const axutil_env_t *env);
178
* Getter for activeAddrs. Deprecated for array types, Use adb_networkType_get_activeAddrs_at instead
179
* @param _networkType adb_networkType_t object
180
* @param env pointer to environment struct
181
* @return Array of int*s.
183
axutil_array_list_t* AXIS2_CALL
184
adb_networkType_get_activeAddrs(
185
adb_networkType_t* _networkType,
186
const axutil_env_t *env);
189
* Setter for activeAddrs.Deprecated for array types, Use adb_networkType_set_activeAddrs_at
190
* or adb_networkType_add_activeAddrs instead.
191
* @param _networkType adb_networkType_t object
192
* @param env pointer to environment struct
193
* @param arg_activeAddrs Array of int*s.
194
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
196
axis2_status_t AXIS2_CALL
197
adb_networkType_set_activeAddrs(
198
adb_networkType_t* _networkType,
199
const axutil_env_t *env,
200
axutil_array_list_t* arg_activeAddrs);
203
* Resetter for activeAddrs
204
* @param _networkType adb_networkType_t object
205
* @param env pointer to environment struct
206
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
208
axis2_status_t AXIS2_CALL
209
adb_networkType_reset_activeAddrs(
210
adb_networkType_t* _networkType,
211
const axutil_env_t *env);
214
/****************************** Getters and Setters For Arrays **********************************/
215
/************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
218
* E.g. use of get_at, set_at, add and sizeof
220
* for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
222
* // Getting ith value to property_object variable
223
* property_object = adb_element_get_property_at(adb_object, env, i);
225
* // Setting ith value from property_object variable
226
* adb_element_set_property_at(adb_object, env, i, property_object);
228
* // Appending the value to the end of the array from property_object variable
229
* adb_element_add_property(adb_object, env, property_object);
231
* // Removing the ith value from an array
232
* adb_element_remove_property_at(adb_object, env, i);
241
* Get the ith element of activeAddrs.
242
* @param _networkType adb_networkType_t object
243
* @param env pointer to environment struct
244
* @param i index of the item to return
245
* @return ith int of the array
248
adb_networkType_get_activeAddrs_at(
249
adb_networkType_t* _networkType,
250
const axutil_env_t *env, int i);
253
* Set the ith element of activeAddrs. (If the ith already exist, it will be replaced)
254
* @param _networkType adb_networkType_t object
255
* @param env pointer to environment struct
256
* @param i index of the item to return
257
* @param arg_activeAddrs element to set int to the array
258
* @return ith int of the array
260
axis2_status_t AXIS2_CALL
261
adb_networkType_set_activeAddrs_at(
262
adb_networkType_t* _networkType,
263
const axutil_env_t *env, int i,
264
const int arg_activeAddrs);
268
* Add to activeAddrs.
269
* @param _networkType adb_networkType_t object
270
* @param env pointer to environment struct
271
* @param arg_activeAddrs element to add int to the array
272
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
274
axis2_status_t AXIS2_CALL
275
adb_networkType_add_activeAddrs(
276
adb_networkType_t* _networkType,
277
const axutil_env_t *env,
278
const int arg_activeAddrs);
281
* Get the size of the activeAddrs array.
282
* @param _networkType adb_networkType_t object
283
* @param env pointer to environment struct.
284
* @return the size of the activeAddrs array.
287
adb_networkType_sizeof_activeAddrs(
288
adb_networkType_t* _networkType,
289
const axutil_env_t *env);
292
* Remove the ith element of activeAddrs.
293
* @param _networkType adb_networkType_t object
294
* @param env pointer to environment struct
295
* @param i index of the item to remove
296
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
298
axis2_status_t AXIS2_CALL
299
adb_networkType_remove_activeAddrs_at(
300
adb_networkType_t* _networkType,
301
const axutil_env_t *env, int i);
306
/******************************* Checking and Setting NIL values *********************************/
307
/* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
310
* NOTE: set_nil is only available for nillable properties
316
* Check whether vlan is nill
317
* @param _networkType adb_networkType_t object
318
* @param env pointer to environment struct
319
* @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
321
axis2_bool_t AXIS2_CALL
322
adb_networkType_is_vlan_nil(
323
adb_networkType_t* _networkType,
324
const axutil_env_t *env);
330
* Check whether netName is nill
331
* @param _networkType adb_networkType_t object
332
* @param env pointer to environment struct
333
* @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
335
axis2_bool_t AXIS2_CALL
336
adb_networkType_is_netName_nil(
337
adb_networkType_t* _networkType,
338
const axutil_env_t *env);
344
* Check whether userName is nill
345
* @param _networkType adb_networkType_t object
346
* @param env pointer to environment struct
347
* @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
349
axis2_bool_t AXIS2_CALL
350
adb_networkType_is_userName_nil(
351
adb_networkType_t* _networkType,
352
const axutil_env_t *env);
358
* Check whether activeAddrs is nill
359
* @param _networkType adb_networkType_t object
360
* @param env pointer to environment struct
361
* @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
363
axis2_bool_t AXIS2_CALL
364
adb_networkType_is_activeAddrs_nil(
365
adb_networkType_t* _networkType,
366
const axutil_env_t *env);
370
/*************************** Checking and Setting 'NIL' values in Arrays *****************************/
373
* NOTE: You may set this to remove specific elements in the array
374
* But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
378
* Check whether activeAddrs is nill at i
379
* @param _networkType adb_networkType_t object
380
* @param env pointer to environment struct.
381
* @param i index of the item to return.
382
* @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
384
axis2_bool_t AXIS2_CALL
385
adb_networkType_is_activeAddrs_nil_at(
386
adb_networkType_t* _networkType,
387
const axutil_env_t *env, int i);
391
* Set activeAddrs to nill at i
392
* @param _networkType _ adb_networkType_t object
393
* @param env pointer to environment struct.
394
* @param i index of the item to set.
395
* @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
397
axis2_status_t AXIS2_CALL
398
adb_networkType_set_activeAddrs_nil_at(
399
adb_networkType_t* _networkType,
400
const axutil_env_t *env, int i);
404
/**************************** Serialize and Deserialize functions ***************************/
405
/*********** These functions are for use only inside the generated code *********************/
409
* Deserialize an XML to adb objects
410
* @param _networkType adb_networkType_t object
411
* @param env pointer to environment struct
412
* @param dp_parent double pointer to the parent node to deserialize
413
* @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
414
* @param dont_care_minoccurs Dont set errors on validating minoccurs,
415
* (Parent will order this in a case of choice)
416
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
418
axis2_status_t AXIS2_CALL
419
adb_networkType_deserialize(
420
adb_networkType_t* _networkType,
421
const axutil_env_t *env,
422
axiom_node_t** dp_parent,
423
axis2_bool_t *dp_is_early_node_valid,
424
axis2_bool_t dont_care_minoccurs);
429
* Declare namespace in the most parent node
430
* @param _networkType adb_networkType_t object
431
* @param env pointer to environment struct
432
* @param parent_element parent element
433
* @param namespaces hash of namespace uri to prefix
434
* @param next_ns_index pointer to an int which contain the next namespace index
437
adb_networkType_declare_parent_namespaces(
438
adb_networkType_t* _networkType,
439
const axutil_env_t *env, axiom_element_t *parent_element,
440
axutil_hash_t *namespaces, int *next_ns_index);
445
* Serialize to an XML from the adb objects
446
* @param _networkType adb_networkType_t object
447
* @param env pointer to environment struct
448
* @param networkType_om_node node to serialize from
449
* @param networkType_om_element parent element to serialize from
450
* @param tag_closed whether the parent tag is closed or not
451
* @param namespaces hash of namespace uri to prefix
452
* @param next_ns_index an int which contain the next namespace index
453
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
455
axiom_node_t* AXIS2_CALL
456
adb_networkType_serialize(
457
adb_networkType_t* _networkType,
458
const axutil_env_t *env,
459
axiom_node_t* networkType_om_node, axiom_element_t *networkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
462
* Check whether the adb_networkType is a particle class (E.g. group, inner sequence)
463
* @return whether this is a particle class.
465
axis2_bool_t AXIS2_CALL
466
adb_networkType_is_particle();
473
#endif /* ADB_NETWORKTYPE_H */