1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef AXUTIL_PARAM_CONTAINER_H
#define AXUTIL_PARAM_CONTAINER_H
/** @defgroup axutil_param_container Parameter Container
* @ingroup axis2_descript
* @{
*/
/**
* @file axutil_param_container.h
* @brief Axis2 Param container interface
*/
#include <axutil_utils.h>
#include <axutil_error.h>
#include <axutil_utils_defines.h>
#include <axutil_env.h>
#include <axutil_allocator.h>
#include <axutil_string.h>
#include <axutil_array_list.h>
#include <axutil_hash.h>
/*#include <axiom_element.h>*/
#include <axutil_qname.h>
#include <axutil_param.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct axutil_param_container axutil_param_container_t;
/**
* Creates param container struct
* @return pointer to newly created param container
*/
AXIS2_EXTERN axutil_param_container_t *AXIS2_CALL
axutil_param_container_create(
const axutil_env_t * env);
/**
* Free param_container passed as void pointer. This will be
* cast into appropriate type and then pass the cast object
* into the param_container structure's free method
*/
AXIS2_EXTERN void AXIS2_CALL
axutil_param_container_free_void_arg(
void *param_container,
const axutil_env_t * env);
/** De-allocate memory
* @return status code
*/
AXIS2_EXTERN void AXIS2_CALL
axutil_param_container_free(
axutil_param_container_t * param_container,
const axutil_env_t * env);
/** Add a param
* @param param param to be added
* @return status code
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
axutil_param_container_add_param(
axutil_param_container_t * param_container,
const axutil_env_t * env,
axutil_param_t * param);
/** To get a param in a given description
* @param name param name
* @return param
*/
AXIS2_EXTERN axutil_param_t *AXIS2_CALL
axutil_param_container_get_param(
axutil_param_container_t * param_container,
const axutil_env_t * env,
const axis2_char_t * name);
/** To get all the params in a given description
* @return all the params contained
*/
AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
axutil_param_container_get_params(
axutil_param_container_t * param_container,
const axutil_env_t * env);
/** To check whether the paramter is locked at any level
* @param param_name name of the param
* @return whether param is locked
*/
AXIS2_EXTERN axis2_bool_t AXIS2_CALL
axutil_param_container_is_param_locked(
axutil_param_container_t * param_container,
const axutil_env_t * env,
const axis2_char_t * param_name);
/** Remove parameter from the param container
* @param parameter name of the param to be removed
* @return status of AXIS2_SUCCESS or AXIS2_FAILURE
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
axutil_param_container_delete_param(
axutil_param_container_t *param_container,
const axutil_env_t *env,
const axis2_char_t *param_name);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* AXIS2_PARAM_CONTAINER_H */
|