1 /* c/zx-xa-data.h - WARNING: This header was auto generated by xsd2sg.pl. DO NOT EDIT! 2 * $Id$ */ 3 /* Datastructure design, topography, and layout 4 * Copyright (c) 2006,2010 Sampo Kellomaki (sampo@iki.fi), 5 * All Rights Reserved. NO WARRANTY. See file COPYING for 6 * terms and conditions of use. Element and attributes names as well 7 * as some topography are derived from schema descriptions that were used as 8 * input and may be subject to their own copright. */ 9 10 #ifndef _c_zx_xa_data_h 11 #define _c_zx_xa_data_h 12 13 #include "zx.h" 14 #include "c/zx-const.h" 15 #include "c/zx-data.h" 16 17 #ifndef ZX_ELEM_EXT 18 #define ZX_ELEM_EXT /* This extension point should be defined by who includes this file. */ 19 #endif 20 21 /* -------------------------- xa_Action -------------------------- */ 22 /* refby( zx_xa_Actions_s ) */ 23 #ifndef zx_xa_Action_EXT 24 #define zx_xa_Action_EXT 25 #endif 26 struct zx_xa_Action_s { 27 ZX_ELEM_EXT 28 zx_xa_Action_EXT 29 struct zx_xa_ActionMatch_s* ActionMatch; /* {1,-1} nada */ 30 }; 31 32 #define zx_NEW_xa_Action(c, father) (struct zx_xa_Action_s*)zx_new_elem((c),(father),zx_xa_Action_ELEM) 33 int zx_DEC_ATTR_xa_Action(struct zx_ctx* c, struct zx_xa_Action_s* x); 34 int zx_DEC_ELEM_xa_Action(struct zx_ctx* c, struct zx_xa_Action_s* x); 35 36 #ifdef ZX_ENA_AUX 37 struct zx_xa_Action_s* zx_DEEP_CLONE_xa_Action(struct zx_ctx* c, struct zx_xa_Action_s* x, int dup_strs); 38 void zx_DUP_STRS_xa_Action(struct zx_ctx* c, struct zx_xa_Action_s* x); 39 int zx_WALK_SO_xa_Action(struct zx_ctx* c, struct zx_xa_Action_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 40 int zx_WALK_WO_xa_Action(struct zx_ctx* c, struct zx_xa_Action_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 41 #endif 42 43 #ifdef ZX_ENA_GETPUT 44 45 struct zx_xa_ActionMatch_s* zx_xa_Action_GET_ActionMatch(struct zx_xa_Action_s* x, int n); 46 47 int zx_xa_Action_NUM_ActionMatch(struct zx_xa_Action_s* x); 48 49 struct zx_xa_ActionMatch_s* zx_xa_Action_POP_ActionMatch(struct zx_xa_Action_s* x); 50 51 void zx_xa_Action_PUSH_ActionMatch(struct zx_xa_Action_s* x, struct zx_xa_ActionMatch_s* y); 52 53 54 void zx_xa_Action_PUT_ActionMatch(struct zx_xa_Action_s* x, int n, struct zx_xa_ActionMatch_s* y); 55 56 void zx_xa_Action_ADD_ActionMatch(struct zx_xa_Action_s* x, int n, struct zx_xa_ActionMatch_s* z); 57 58 void zx_xa_Action_DEL_ActionMatch(struct zx_xa_Action_s* x, int n); 59 60 void zx_xa_Action_REV_ActionMatch(struct zx_xa_Action_s* x); 61 62 #endif 63 /* -------------------------- xa_ActionAttributeDesignator -------------------------- */ 64 /* refby( zx_xa_ActionMatch_s ) */ 65 #ifndef zx_xa_ActionAttributeDesignator_EXT 66 #define zx_xa_ActionAttributeDesignator_EXT 67 #endif 68 struct zx_xa_ActionAttributeDesignator_s { 69 ZX_ELEM_EXT 70 zx_xa_ActionAttributeDesignator_EXT 71 struct zx_attr_s* AttributeId; /* {1,1} attribute xs:anyURI */ 72 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 73 struct zx_attr_s* Issuer; /* {0,1} attribute xs:string */ 74 struct zx_attr_s* MustBePresent; /* {0,1} attribute xs:boolean */ 75 }; 76 77 #define zx_NEW_xa_ActionAttributeDesignator(c, father) (struct zx_xa_ActionAttributeDesignator_s*)zx_new_elem((c),(father),zx_xa_ActionAttributeDesignator_ELEM) 78 int zx_DEC_ATTR_xa_ActionAttributeDesignator(struct zx_ctx* c, struct zx_xa_ActionAttributeDesignator_s* x); 79 int zx_DEC_ELEM_xa_ActionAttributeDesignator(struct zx_ctx* c, struct zx_xa_ActionAttributeDesignator_s* x); 80 81 #ifdef ZX_ENA_AUX 82 struct zx_xa_ActionAttributeDesignator_s* zx_DEEP_CLONE_xa_ActionAttributeDesignator(struct zx_ctx* c, struct zx_xa_ActionAttributeDesignator_s* x, int dup_strs); 83 void zx_DUP_STRS_xa_ActionAttributeDesignator(struct zx_ctx* c, struct zx_xa_ActionAttributeDesignator_s* x); 84 int zx_WALK_SO_xa_ActionAttributeDesignator(struct zx_ctx* c, struct zx_xa_ActionAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 85 int zx_WALK_WO_xa_ActionAttributeDesignator(struct zx_ctx* c, struct zx_xa_ActionAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 86 #endif 87 88 #ifdef ZX_ENA_GETPUT 89 struct zx_attr_s* zx_xa_ActionAttributeDesignator_GET_AttributeId(struct zx_xa_ActionAttributeDesignator_s* x); 90 struct zx_attr_s* zx_xa_ActionAttributeDesignator_GET_DataType(struct zx_xa_ActionAttributeDesignator_s* x); 91 struct zx_attr_s* zx_xa_ActionAttributeDesignator_GET_Issuer(struct zx_xa_ActionAttributeDesignator_s* x); 92 struct zx_attr_s* zx_xa_ActionAttributeDesignator_GET_MustBePresent(struct zx_xa_ActionAttributeDesignator_s* x); 93 94 95 96 97 98 void zx_xa_ActionAttributeDesignator_PUT_AttributeId(struct zx_xa_ActionAttributeDesignator_s* x, struct zx_attr_s* y); 99 void zx_xa_ActionAttributeDesignator_PUT_DataType(struct zx_xa_ActionAttributeDesignator_s* x, struct zx_attr_s* y); 100 void zx_xa_ActionAttributeDesignator_PUT_Issuer(struct zx_xa_ActionAttributeDesignator_s* x, struct zx_attr_s* y); 101 void zx_xa_ActionAttributeDesignator_PUT_MustBePresent(struct zx_xa_ActionAttributeDesignator_s* x, struct zx_attr_s* y); 102 103 104 105 106 107 #endif 108 /* -------------------------- xa_ActionMatch -------------------------- */ 109 /* refby( zx_xa_Action_s ) */ 110 #ifndef zx_xa_ActionMatch_EXT 111 #define zx_xa_ActionMatch_EXT 112 #endif 113 struct zx_xa_ActionMatch_s { 114 ZX_ELEM_EXT 115 zx_xa_ActionMatch_EXT 116 struct zx_xa_AttributeValue_s* AttributeValue; /* {1,1} nada */ 117 struct zx_xa_ActionAttributeDesignator_s* ActionAttributeDesignator; /* {0,1} nada */ 118 struct zx_xa_AttributeSelector_s* AttributeSelector; /* {0,1} nada */ 119 struct zx_attr_s* MatchId; /* {1,1} attribute xs:anyURI */ 120 }; 121 122 #define zx_NEW_xa_ActionMatch(c, father) (struct zx_xa_ActionMatch_s*)zx_new_elem((c),(father),zx_xa_ActionMatch_ELEM) 123 int zx_DEC_ATTR_xa_ActionMatch(struct zx_ctx* c, struct zx_xa_ActionMatch_s* x); 124 int zx_DEC_ELEM_xa_ActionMatch(struct zx_ctx* c, struct zx_xa_ActionMatch_s* x); 125 126 #ifdef ZX_ENA_AUX 127 struct zx_xa_ActionMatch_s* zx_DEEP_CLONE_xa_ActionMatch(struct zx_ctx* c, struct zx_xa_ActionMatch_s* x, int dup_strs); 128 void zx_DUP_STRS_xa_ActionMatch(struct zx_ctx* c, struct zx_xa_ActionMatch_s* x); 129 int zx_WALK_SO_xa_ActionMatch(struct zx_ctx* c, struct zx_xa_ActionMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 130 int zx_WALK_WO_xa_ActionMatch(struct zx_ctx* c, struct zx_xa_ActionMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 131 #endif 132 133 #ifdef ZX_ENA_GETPUT 134 struct zx_attr_s* zx_xa_ActionMatch_GET_MatchId(struct zx_xa_ActionMatch_s* x); 135 136 struct zx_xa_AttributeValue_s* zx_xa_ActionMatch_GET_AttributeValue(struct zx_xa_ActionMatch_s* x, int n); 137 struct zx_xa_ActionAttributeDesignator_s* zx_xa_ActionMatch_GET_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x, int n); 138 struct zx_xa_AttributeSelector_s* zx_xa_ActionMatch_GET_AttributeSelector(struct zx_xa_ActionMatch_s* x, int n); 139 140 int zx_xa_ActionMatch_NUM_AttributeValue(struct zx_xa_ActionMatch_s* x); 141 int zx_xa_ActionMatch_NUM_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x); 142 int zx_xa_ActionMatch_NUM_AttributeSelector(struct zx_xa_ActionMatch_s* x); 143 144 struct zx_xa_AttributeValue_s* zx_xa_ActionMatch_POP_AttributeValue(struct zx_xa_ActionMatch_s* x); 145 struct zx_xa_ActionAttributeDesignator_s* zx_xa_ActionMatch_POP_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x); 146 struct zx_xa_AttributeSelector_s* zx_xa_ActionMatch_POP_AttributeSelector(struct zx_xa_ActionMatch_s* x); 147 148 void zx_xa_ActionMatch_PUSH_AttributeValue(struct zx_xa_ActionMatch_s* x, struct zx_xa_AttributeValue_s* y); 149 void zx_xa_ActionMatch_PUSH_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x, struct zx_xa_ActionAttributeDesignator_s* y); 150 void zx_xa_ActionMatch_PUSH_AttributeSelector(struct zx_xa_ActionMatch_s* x, struct zx_xa_AttributeSelector_s* y); 151 152 void zx_xa_ActionMatch_PUT_MatchId(struct zx_xa_ActionMatch_s* x, struct zx_attr_s* y); 153 154 void zx_xa_ActionMatch_PUT_AttributeValue(struct zx_xa_ActionMatch_s* x, int n, struct zx_xa_AttributeValue_s* y); 155 void zx_xa_ActionMatch_PUT_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x, int n, struct zx_xa_ActionAttributeDesignator_s* y); 156 void zx_xa_ActionMatch_PUT_AttributeSelector(struct zx_xa_ActionMatch_s* x, int n, struct zx_xa_AttributeSelector_s* y); 157 158 void zx_xa_ActionMatch_ADD_AttributeValue(struct zx_xa_ActionMatch_s* x, int n, struct zx_xa_AttributeValue_s* z); 159 void zx_xa_ActionMatch_ADD_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x, int n, struct zx_xa_ActionAttributeDesignator_s* z); 160 void zx_xa_ActionMatch_ADD_AttributeSelector(struct zx_xa_ActionMatch_s* x, int n, struct zx_xa_AttributeSelector_s* z); 161 162 void zx_xa_ActionMatch_DEL_AttributeValue(struct zx_xa_ActionMatch_s* x, int n); 163 void zx_xa_ActionMatch_DEL_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x, int n); 164 void zx_xa_ActionMatch_DEL_AttributeSelector(struct zx_xa_ActionMatch_s* x, int n); 165 166 void zx_xa_ActionMatch_REV_AttributeValue(struct zx_xa_ActionMatch_s* x); 167 void zx_xa_ActionMatch_REV_ActionAttributeDesignator(struct zx_xa_ActionMatch_s* x); 168 void zx_xa_ActionMatch_REV_AttributeSelector(struct zx_xa_ActionMatch_s* x); 169 170 #endif 171 /* -------------------------- xa_Actions -------------------------- */ 172 /* refby( zx_xa_Target_s ) */ 173 #ifndef zx_xa_Actions_EXT 174 #define zx_xa_Actions_EXT 175 #endif 176 struct zx_xa_Actions_s { 177 ZX_ELEM_EXT 178 zx_xa_Actions_EXT 179 struct zx_xa_Action_s* Action; /* {1,-1} */ 180 }; 181 182 #define zx_NEW_xa_Actions(c, father) (struct zx_xa_Actions_s*)zx_new_elem((c),(father),zx_xa_Actions_ELEM) 183 int zx_DEC_ATTR_xa_Actions(struct zx_ctx* c, struct zx_xa_Actions_s* x); 184 int zx_DEC_ELEM_xa_Actions(struct zx_ctx* c, struct zx_xa_Actions_s* x); 185 186 #ifdef ZX_ENA_AUX 187 struct zx_xa_Actions_s* zx_DEEP_CLONE_xa_Actions(struct zx_ctx* c, struct zx_xa_Actions_s* x, int dup_strs); 188 void zx_DUP_STRS_xa_Actions(struct zx_ctx* c, struct zx_xa_Actions_s* x); 189 int zx_WALK_SO_xa_Actions(struct zx_ctx* c, struct zx_xa_Actions_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 190 int zx_WALK_WO_xa_Actions(struct zx_ctx* c, struct zx_xa_Actions_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 191 #endif 192 193 #ifdef ZX_ENA_GETPUT 194 195 struct zx_xa_Action_s* zx_xa_Actions_GET_Action(struct zx_xa_Actions_s* x, int n); 196 197 int zx_xa_Actions_NUM_Action(struct zx_xa_Actions_s* x); 198 199 struct zx_xa_Action_s* zx_xa_Actions_POP_Action(struct zx_xa_Actions_s* x); 200 201 void zx_xa_Actions_PUSH_Action(struct zx_xa_Actions_s* x, struct zx_xa_Action_s* y); 202 203 204 void zx_xa_Actions_PUT_Action(struct zx_xa_Actions_s* x, int n, struct zx_xa_Action_s* y); 205 206 void zx_xa_Actions_ADD_Action(struct zx_xa_Actions_s* x, int n, struct zx_xa_Action_s* z); 207 208 void zx_xa_Actions_DEL_Action(struct zx_xa_Actions_s* x, int n); 209 210 void zx_xa_Actions_REV_Action(struct zx_xa_Actions_s* x); 211 212 #endif 213 /* -------------------------- xa_Apply -------------------------- */ 214 /* refby( ) */ 215 #ifndef zx_xa_Apply_EXT 216 #define zx_xa_Apply_EXT 217 #endif 218 struct zx_xa_Apply_s { 219 ZX_ELEM_EXT 220 zx_xa_Apply_EXT 221 struct zx_elem_s* Expression; /* {0,-1} xa:ExpressionType */ 222 struct zx_attr_s* FunctionId; /* {1,1} attribute xs:anyURI */ 223 }; 224 225 #define zx_NEW_xa_Apply(c, father) (struct zx_xa_Apply_s*)zx_new_elem((c),(father),zx_xa_Apply_ELEM) 226 int zx_DEC_ATTR_xa_Apply(struct zx_ctx* c, struct zx_xa_Apply_s* x); 227 int zx_DEC_ELEM_xa_Apply(struct zx_ctx* c, struct zx_xa_Apply_s* x); 228 229 #ifdef ZX_ENA_AUX 230 struct zx_xa_Apply_s* zx_DEEP_CLONE_xa_Apply(struct zx_ctx* c, struct zx_xa_Apply_s* x, int dup_strs); 231 void zx_DUP_STRS_xa_Apply(struct zx_ctx* c, struct zx_xa_Apply_s* x); 232 int zx_WALK_SO_xa_Apply(struct zx_ctx* c, struct zx_xa_Apply_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 233 int zx_WALK_WO_xa_Apply(struct zx_ctx* c, struct zx_xa_Apply_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 234 #endif 235 236 #ifdef ZX_ENA_GETPUT 237 struct zx_attr_s* zx_xa_Apply_GET_FunctionId(struct zx_xa_Apply_s* x); 238 239 struct zx_elem_s* zx_xa_Apply_GET_Expression(struct zx_xa_Apply_s* x, int n); 240 241 int zx_xa_Apply_NUM_Expression(struct zx_xa_Apply_s* x); 242 243 struct zx_elem_s* zx_xa_Apply_POP_Expression(struct zx_xa_Apply_s* x); 244 245 void zx_xa_Apply_PUSH_Expression(struct zx_xa_Apply_s* x, struct zx_elem_s* y); 246 247 void zx_xa_Apply_PUT_FunctionId(struct zx_xa_Apply_s* x, struct zx_attr_s* y); 248 249 void zx_xa_Apply_PUT_Expression(struct zx_xa_Apply_s* x, int n, struct zx_elem_s* y); 250 251 void zx_xa_Apply_ADD_Expression(struct zx_xa_Apply_s* x, int n, struct zx_elem_s* z); 252 253 void zx_xa_Apply_DEL_Expression(struct zx_xa_Apply_s* x,int n); 254 255 void zx_xa_Apply_REV_Expression(struct zx_xa_Apply_s* x); 256 257 #endif 258 /* -------------------------- xa_AttributeAssignment -------------------------- */ 259 /* refby( zx_xa_Obligation_s ) */ 260 #ifndef zx_xa_AttributeAssignment_EXT 261 #define zx_xa_AttributeAssignment_EXT 262 #endif 263 struct zx_xa_AttributeAssignment_s { 264 ZX_ELEM_EXT 265 zx_xa_AttributeAssignment_EXT 266 struct zx_attr_s* AttributeId; /* {1,1} attribute xs:anyURI */ 267 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 268 }; 269 270 #define zx_NEW_xa_AttributeAssignment(c, father) (struct zx_xa_AttributeAssignment_s*)zx_new_elem((c),(father),zx_xa_AttributeAssignment_ELEM) 271 int zx_DEC_ATTR_xa_AttributeAssignment(struct zx_ctx* c, struct zx_xa_AttributeAssignment_s* x); 272 int zx_DEC_ELEM_xa_AttributeAssignment(struct zx_ctx* c, struct zx_xa_AttributeAssignment_s* x); 273 274 #ifdef ZX_ENA_AUX 275 struct zx_xa_AttributeAssignment_s* zx_DEEP_CLONE_xa_AttributeAssignment(struct zx_ctx* c, struct zx_xa_AttributeAssignment_s* x, int dup_strs); 276 void zx_DUP_STRS_xa_AttributeAssignment(struct zx_ctx* c, struct zx_xa_AttributeAssignment_s* x); 277 int zx_WALK_SO_xa_AttributeAssignment(struct zx_ctx* c, struct zx_xa_AttributeAssignment_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 278 int zx_WALK_WO_xa_AttributeAssignment(struct zx_ctx* c, struct zx_xa_AttributeAssignment_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 279 #endif 280 281 #ifdef ZX_ENA_GETPUT 282 struct zx_attr_s* zx_xa_AttributeAssignment_GET_AttributeId(struct zx_xa_AttributeAssignment_s* x); 283 struct zx_attr_s* zx_xa_AttributeAssignment_GET_DataType(struct zx_xa_AttributeAssignment_s* x); 284 285 286 287 288 289 void zx_xa_AttributeAssignment_PUT_AttributeId(struct zx_xa_AttributeAssignment_s* x, struct zx_attr_s* y); 290 void zx_xa_AttributeAssignment_PUT_DataType(struct zx_xa_AttributeAssignment_s* x, struct zx_attr_s* y); 291 292 293 294 295 296 #endif 297 /* -------------------------- xa_AttributeSelector -------------------------- */ 298 /* refby( zx_xa_ActionMatch_s zx_xa_SubjectMatch_s zx_xa_EnvironmentMatch_s zx_xa_ResourceMatch_s ) */ 299 #ifndef zx_xa_AttributeSelector_EXT 300 #define zx_xa_AttributeSelector_EXT 301 #endif 302 struct zx_xa_AttributeSelector_s { 303 ZX_ELEM_EXT 304 zx_xa_AttributeSelector_EXT 305 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 306 struct zx_attr_s* MustBePresent; /* {0,1} attribute xs:boolean */ 307 struct zx_attr_s* RequestContextPath; /* {1,1} attribute xs:string */ 308 }; 309 310 #define zx_NEW_xa_AttributeSelector(c, father) (struct zx_xa_AttributeSelector_s*)zx_new_elem((c),(father),zx_xa_AttributeSelector_ELEM) 311 int zx_DEC_ATTR_xa_AttributeSelector(struct zx_ctx* c, struct zx_xa_AttributeSelector_s* x); 312 int zx_DEC_ELEM_xa_AttributeSelector(struct zx_ctx* c, struct zx_xa_AttributeSelector_s* x); 313 314 #ifdef ZX_ENA_AUX 315 struct zx_xa_AttributeSelector_s* zx_DEEP_CLONE_xa_AttributeSelector(struct zx_ctx* c, struct zx_xa_AttributeSelector_s* x, int dup_strs); 316 void zx_DUP_STRS_xa_AttributeSelector(struct zx_ctx* c, struct zx_xa_AttributeSelector_s* x); 317 int zx_WALK_SO_xa_AttributeSelector(struct zx_ctx* c, struct zx_xa_AttributeSelector_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 318 int zx_WALK_WO_xa_AttributeSelector(struct zx_ctx* c, struct zx_xa_AttributeSelector_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 319 #endif 320 321 #ifdef ZX_ENA_GETPUT 322 struct zx_attr_s* zx_xa_AttributeSelector_GET_DataType(struct zx_xa_AttributeSelector_s* x); 323 struct zx_attr_s* zx_xa_AttributeSelector_GET_MustBePresent(struct zx_xa_AttributeSelector_s* x); 324 struct zx_attr_s* zx_xa_AttributeSelector_GET_RequestContextPath(struct zx_xa_AttributeSelector_s* x); 325 326 327 328 329 330 void zx_xa_AttributeSelector_PUT_DataType(struct zx_xa_AttributeSelector_s* x, struct zx_attr_s* y); 331 void zx_xa_AttributeSelector_PUT_MustBePresent(struct zx_xa_AttributeSelector_s* x, struct zx_attr_s* y); 332 void zx_xa_AttributeSelector_PUT_RequestContextPath(struct zx_xa_AttributeSelector_s* x, struct zx_attr_s* y); 333 334 335 336 337 338 #endif 339 /* -------------------------- xa_AttributeValue -------------------------- */ 340 /* refby( zx_xa_ActionMatch_s zx_xa_CombinerParameter_s zx_xa_SubjectMatch_s zx_xa_EnvironmentMatch_s zx_xa_ResourceMatch_s ) */ 341 #ifndef zx_xa_AttributeValue_EXT 342 #define zx_xa_AttributeValue_EXT 343 #endif 344 struct zx_xa_AttributeValue_s { 345 ZX_ELEM_EXT 346 zx_xa_AttributeValue_EXT 347 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 348 }; 349 350 #define zx_NEW_xa_AttributeValue(c, father) (struct zx_xa_AttributeValue_s*)zx_new_elem((c),(father),zx_xa_AttributeValue_ELEM) 351 int zx_DEC_ATTR_xa_AttributeValue(struct zx_ctx* c, struct zx_xa_AttributeValue_s* x); 352 int zx_DEC_ELEM_xa_AttributeValue(struct zx_ctx* c, struct zx_xa_AttributeValue_s* x); 353 354 #ifdef ZX_ENA_AUX 355 struct zx_xa_AttributeValue_s* zx_DEEP_CLONE_xa_AttributeValue(struct zx_ctx* c, struct zx_xa_AttributeValue_s* x, int dup_strs); 356 void zx_DUP_STRS_xa_AttributeValue(struct zx_ctx* c, struct zx_xa_AttributeValue_s* x); 357 int zx_WALK_SO_xa_AttributeValue(struct zx_ctx* c, struct zx_xa_AttributeValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 358 int zx_WALK_WO_xa_AttributeValue(struct zx_ctx* c, struct zx_xa_AttributeValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 359 #endif 360 361 #ifdef ZX_ENA_GETPUT 362 struct zx_attr_s* zx_xa_AttributeValue_GET_DataType(struct zx_xa_AttributeValue_s* x); 363 364 365 366 367 368 void zx_xa_AttributeValue_PUT_DataType(struct zx_xa_AttributeValue_s* x, struct zx_attr_s* y); 369 370 371 372 373 374 #endif 375 /* -------------------------- xa_CombinerParameter -------------------------- */ 376 /* refby( zx_xa_PolicyCombinerParameters_s zx_xa_PolicySetCombinerParameters_s zx_xa_RuleCombinerParameters_s zx_xa_CombinerParameters_s ) */ 377 #ifndef zx_xa_CombinerParameter_EXT 378 #define zx_xa_CombinerParameter_EXT 379 #endif 380 struct zx_xa_CombinerParameter_s { 381 ZX_ELEM_EXT 382 zx_xa_CombinerParameter_EXT 383 struct zx_xa_AttributeValue_s* AttributeValue; /* {1,1} nada */ 384 struct zx_attr_s* ParameterName; /* {1,1} attribute xs:string */ 385 }; 386 387 #define zx_NEW_xa_CombinerParameter(c, father) (struct zx_xa_CombinerParameter_s*)zx_new_elem((c),(father),zx_xa_CombinerParameter_ELEM) 388 int zx_DEC_ATTR_xa_CombinerParameter(struct zx_ctx* c, struct zx_xa_CombinerParameter_s* x); 389 int zx_DEC_ELEM_xa_CombinerParameter(struct zx_ctx* c, struct zx_xa_CombinerParameter_s* x); 390 391 #ifdef ZX_ENA_AUX 392 struct zx_xa_CombinerParameter_s* zx_DEEP_CLONE_xa_CombinerParameter(struct zx_ctx* c, struct zx_xa_CombinerParameter_s* x, int dup_strs); 393 void zx_DUP_STRS_xa_CombinerParameter(struct zx_ctx* c, struct zx_xa_CombinerParameter_s* x); 394 int zx_WALK_SO_xa_CombinerParameter(struct zx_ctx* c, struct zx_xa_CombinerParameter_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 395 int zx_WALK_WO_xa_CombinerParameter(struct zx_ctx* c, struct zx_xa_CombinerParameter_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 396 #endif 397 398 #ifdef ZX_ENA_GETPUT 399 struct zx_attr_s* zx_xa_CombinerParameter_GET_ParameterName(struct zx_xa_CombinerParameter_s* x); 400 401 struct zx_xa_AttributeValue_s* zx_xa_CombinerParameter_GET_AttributeValue(struct zx_xa_CombinerParameter_s* x, int n); 402 403 int zx_xa_CombinerParameter_NUM_AttributeValue(struct zx_xa_CombinerParameter_s* x); 404 405 struct zx_xa_AttributeValue_s* zx_xa_CombinerParameter_POP_AttributeValue(struct zx_xa_CombinerParameter_s* x); 406 407 void zx_xa_CombinerParameter_PUSH_AttributeValue(struct zx_xa_CombinerParameter_s* x, struct zx_xa_AttributeValue_s* y); 408 409 void zx_xa_CombinerParameter_PUT_ParameterName(struct zx_xa_CombinerParameter_s* x, struct zx_attr_s* y); 410 411 void zx_xa_CombinerParameter_PUT_AttributeValue(struct zx_xa_CombinerParameter_s* x, int n, struct zx_xa_AttributeValue_s* y); 412 413 void zx_xa_CombinerParameter_ADD_AttributeValue(struct zx_xa_CombinerParameter_s* x, int n, struct zx_xa_AttributeValue_s* z); 414 415 void zx_xa_CombinerParameter_DEL_AttributeValue(struct zx_xa_CombinerParameter_s* x, int n); 416 417 void zx_xa_CombinerParameter_REV_AttributeValue(struct zx_xa_CombinerParameter_s* x); 418 419 #endif 420 /* -------------------------- xa_CombinerParameters -------------------------- */ 421 /* refby( zx_xa_Policy_s zx_xa_PolicySet_s ) */ 422 #ifndef zx_xa_CombinerParameters_EXT 423 #define zx_xa_CombinerParameters_EXT 424 #endif 425 struct zx_xa_CombinerParameters_s { 426 ZX_ELEM_EXT 427 zx_xa_CombinerParameters_EXT 428 struct zx_xa_CombinerParameter_s* CombinerParameter; /* {0,-1} nada */ 429 }; 430 431 #define zx_NEW_xa_CombinerParameters(c, father) (struct zx_xa_CombinerParameters_s*)zx_new_elem((c),(father),zx_xa_CombinerParameters_ELEM) 432 int zx_DEC_ATTR_xa_CombinerParameters(struct zx_ctx* c, struct zx_xa_CombinerParameters_s* x); 433 int zx_DEC_ELEM_xa_CombinerParameters(struct zx_ctx* c, struct zx_xa_CombinerParameters_s* x); 434 435 #ifdef ZX_ENA_AUX 436 struct zx_xa_CombinerParameters_s* zx_DEEP_CLONE_xa_CombinerParameters(struct zx_ctx* c, struct zx_xa_CombinerParameters_s* x, int dup_strs); 437 void zx_DUP_STRS_xa_CombinerParameters(struct zx_ctx* c, struct zx_xa_CombinerParameters_s* x); 438 int zx_WALK_SO_xa_CombinerParameters(struct zx_ctx* c, struct zx_xa_CombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 439 int zx_WALK_WO_xa_CombinerParameters(struct zx_ctx* c, struct zx_xa_CombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 440 #endif 441 442 #ifdef ZX_ENA_GETPUT 443 444 struct zx_xa_CombinerParameter_s* zx_xa_CombinerParameters_GET_CombinerParameter(struct zx_xa_CombinerParameters_s* x, int n); 445 446 int zx_xa_CombinerParameters_NUM_CombinerParameter(struct zx_xa_CombinerParameters_s* x); 447 448 struct zx_xa_CombinerParameter_s* zx_xa_CombinerParameters_POP_CombinerParameter(struct zx_xa_CombinerParameters_s* x); 449 450 void zx_xa_CombinerParameters_PUSH_CombinerParameter(struct zx_xa_CombinerParameters_s* x, struct zx_xa_CombinerParameter_s* y); 451 452 453 void zx_xa_CombinerParameters_PUT_CombinerParameter(struct zx_xa_CombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* y); 454 455 void zx_xa_CombinerParameters_ADD_CombinerParameter(struct zx_xa_CombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* z); 456 457 void zx_xa_CombinerParameters_DEL_CombinerParameter(struct zx_xa_CombinerParameters_s* x, int n); 458 459 void zx_xa_CombinerParameters_REV_CombinerParameter(struct zx_xa_CombinerParameters_s* x); 460 461 #endif 462 /* -------------------------- xa_Condition -------------------------- */ 463 /* refby( zx_xa_Rule_s ) */ 464 #ifndef zx_xa_Condition_EXT 465 #define zx_xa_Condition_EXT 466 #endif 467 struct zx_xa_Condition_s { 468 ZX_ELEM_EXT 469 zx_xa_Condition_EXT 470 struct zx_elem_s* Expression; /* {1,1} xa:ExpressionType */ 471 }; 472 473 #define zx_NEW_xa_Condition(c, father) (struct zx_xa_Condition_s*)zx_new_elem((c),(father),zx_xa_Condition_ELEM) 474 int zx_DEC_ATTR_xa_Condition(struct zx_ctx* c, struct zx_xa_Condition_s* x); 475 int zx_DEC_ELEM_xa_Condition(struct zx_ctx* c, struct zx_xa_Condition_s* x); 476 477 #ifdef ZX_ENA_AUX 478 struct zx_xa_Condition_s* zx_DEEP_CLONE_xa_Condition(struct zx_ctx* c, struct zx_xa_Condition_s* x, int dup_strs); 479 void zx_DUP_STRS_xa_Condition(struct zx_ctx* c, struct zx_xa_Condition_s* x); 480 int zx_WALK_SO_xa_Condition(struct zx_ctx* c, struct zx_xa_Condition_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 481 int zx_WALK_WO_xa_Condition(struct zx_ctx* c, struct zx_xa_Condition_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 482 #endif 483 484 #ifdef ZX_ENA_GETPUT 485 486 struct zx_elem_s* zx_xa_Condition_GET_Expression(struct zx_xa_Condition_s* x, int n); 487 488 int zx_xa_Condition_NUM_Expression(struct zx_xa_Condition_s* x); 489 490 struct zx_elem_s* zx_xa_Condition_POP_Expression(struct zx_xa_Condition_s* x); 491 492 void zx_xa_Condition_PUSH_Expression(struct zx_xa_Condition_s* x, struct zx_elem_s* y); 493 494 495 void zx_xa_Condition_PUT_Expression(struct zx_xa_Condition_s* x, int n, struct zx_elem_s* y); 496 497 void zx_xa_Condition_ADD_Expression(struct zx_xa_Condition_s* x, int n, struct zx_elem_s* z); 498 499 void zx_xa_Condition_DEL_Expression(struct zx_xa_Condition_s* x,int n); 500 501 void zx_xa_Condition_REV_Expression(struct zx_xa_Condition_s* x); 502 503 #endif 504 /* -------------------------- xa_Environment -------------------------- */ 505 /* refby( zx_xa_Environments_s ) */ 506 #ifndef zx_xa_Environment_EXT 507 #define zx_xa_Environment_EXT 508 #endif 509 struct zx_xa_Environment_s { 510 ZX_ELEM_EXT 511 zx_xa_Environment_EXT 512 struct zx_xa_EnvironmentMatch_s* EnvironmentMatch; /* {1,-1} nada */ 513 }; 514 515 #define zx_NEW_xa_Environment(c, father) (struct zx_xa_Environment_s*)zx_new_elem((c),(father),zx_xa_Environment_ELEM) 516 int zx_DEC_ATTR_xa_Environment(struct zx_ctx* c, struct zx_xa_Environment_s* x); 517 int zx_DEC_ELEM_xa_Environment(struct zx_ctx* c, struct zx_xa_Environment_s* x); 518 519 #ifdef ZX_ENA_AUX 520 struct zx_xa_Environment_s* zx_DEEP_CLONE_xa_Environment(struct zx_ctx* c, struct zx_xa_Environment_s* x, int dup_strs); 521 void zx_DUP_STRS_xa_Environment(struct zx_ctx* c, struct zx_xa_Environment_s* x); 522 int zx_WALK_SO_xa_Environment(struct zx_ctx* c, struct zx_xa_Environment_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 523 int zx_WALK_WO_xa_Environment(struct zx_ctx* c, struct zx_xa_Environment_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 524 #endif 525 526 #ifdef ZX_ENA_GETPUT 527 528 struct zx_xa_EnvironmentMatch_s* zx_xa_Environment_GET_EnvironmentMatch(struct zx_xa_Environment_s* x, int n); 529 530 int zx_xa_Environment_NUM_EnvironmentMatch(struct zx_xa_Environment_s* x); 531 532 struct zx_xa_EnvironmentMatch_s* zx_xa_Environment_POP_EnvironmentMatch(struct zx_xa_Environment_s* x); 533 534 void zx_xa_Environment_PUSH_EnvironmentMatch(struct zx_xa_Environment_s* x, struct zx_xa_EnvironmentMatch_s* y); 535 536 537 void zx_xa_Environment_PUT_EnvironmentMatch(struct zx_xa_Environment_s* x, int n, struct zx_xa_EnvironmentMatch_s* y); 538 539 void zx_xa_Environment_ADD_EnvironmentMatch(struct zx_xa_Environment_s* x, int n, struct zx_xa_EnvironmentMatch_s* z); 540 541 void zx_xa_Environment_DEL_EnvironmentMatch(struct zx_xa_Environment_s* x, int n); 542 543 void zx_xa_Environment_REV_EnvironmentMatch(struct zx_xa_Environment_s* x); 544 545 #endif 546 /* -------------------------- xa_EnvironmentAttributeDesignator -------------------------- */ 547 /* refby( zx_xa_EnvironmentMatch_s ) */ 548 #ifndef zx_xa_EnvironmentAttributeDesignator_EXT 549 #define zx_xa_EnvironmentAttributeDesignator_EXT 550 #endif 551 struct zx_xa_EnvironmentAttributeDesignator_s { 552 ZX_ELEM_EXT 553 zx_xa_EnvironmentAttributeDesignator_EXT 554 struct zx_attr_s* AttributeId; /* {1,1} attribute xs:anyURI */ 555 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 556 struct zx_attr_s* Issuer; /* {0,1} attribute xs:string */ 557 struct zx_attr_s* MustBePresent; /* {0,1} attribute xs:boolean */ 558 }; 559 560 #define zx_NEW_xa_EnvironmentAttributeDesignator(c, father) (struct zx_xa_EnvironmentAttributeDesignator_s*)zx_new_elem((c),(father),zx_xa_EnvironmentAttributeDesignator_ELEM) 561 int zx_DEC_ATTR_xa_EnvironmentAttributeDesignator(struct zx_ctx* c, struct zx_xa_EnvironmentAttributeDesignator_s* x); 562 int zx_DEC_ELEM_xa_EnvironmentAttributeDesignator(struct zx_ctx* c, struct zx_xa_EnvironmentAttributeDesignator_s* x); 563 564 #ifdef ZX_ENA_AUX 565 struct zx_xa_EnvironmentAttributeDesignator_s* zx_DEEP_CLONE_xa_EnvironmentAttributeDesignator(struct zx_ctx* c, struct zx_xa_EnvironmentAttributeDesignator_s* x, int dup_strs); 566 void zx_DUP_STRS_xa_EnvironmentAttributeDesignator(struct zx_ctx* c, struct zx_xa_EnvironmentAttributeDesignator_s* x); 567 int zx_WALK_SO_xa_EnvironmentAttributeDesignator(struct zx_ctx* c, struct zx_xa_EnvironmentAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 568 int zx_WALK_WO_xa_EnvironmentAttributeDesignator(struct zx_ctx* c, struct zx_xa_EnvironmentAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 569 #endif 570 571 #ifdef ZX_ENA_GETPUT 572 struct zx_attr_s* zx_xa_EnvironmentAttributeDesignator_GET_AttributeId(struct zx_xa_EnvironmentAttributeDesignator_s* x); 573 struct zx_attr_s* zx_xa_EnvironmentAttributeDesignator_GET_DataType(struct zx_xa_EnvironmentAttributeDesignator_s* x); 574 struct zx_attr_s* zx_xa_EnvironmentAttributeDesignator_GET_Issuer(struct zx_xa_EnvironmentAttributeDesignator_s* x); 575 struct zx_attr_s* zx_xa_EnvironmentAttributeDesignator_GET_MustBePresent(struct zx_xa_EnvironmentAttributeDesignator_s* x); 576 577 578 579 580 581 void zx_xa_EnvironmentAttributeDesignator_PUT_AttributeId(struct zx_xa_EnvironmentAttributeDesignator_s* x, struct zx_attr_s* y); 582 void zx_xa_EnvironmentAttributeDesignator_PUT_DataType(struct zx_xa_EnvironmentAttributeDesignator_s* x, struct zx_attr_s* y); 583 void zx_xa_EnvironmentAttributeDesignator_PUT_Issuer(struct zx_xa_EnvironmentAttributeDesignator_s* x, struct zx_attr_s* y); 584 void zx_xa_EnvironmentAttributeDesignator_PUT_MustBePresent(struct zx_xa_EnvironmentAttributeDesignator_s* x, struct zx_attr_s* y); 585 586 587 588 589 590 #endif 591 /* -------------------------- xa_EnvironmentMatch -------------------------- */ 592 /* refby( zx_xa_Environment_s ) */ 593 #ifndef zx_xa_EnvironmentMatch_EXT 594 #define zx_xa_EnvironmentMatch_EXT 595 #endif 596 struct zx_xa_EnvironmentMatch_s { 597 ZX_ELEM_EXT 598 zx_xa_EnvironmentMatch_EXT 599 struct zx_xa_AttributeValue_s* AttributeValue; /* {1,1} nada */ 600 struct zx_xa_EnvironmentAttributeDesignator_s* EnvironmentAttributeDesignator; /* {0,1} nada */ 601 struct zx_xa_AttributeSelector_s* AttributeSelector; /* {0,1} nada */ 602 struct zx_attr_s* MatchId; /* {1,1} attribute xs:anyURI */ 603 }; 604 605 #define zx_NEW_xa_EnvironmentMatch(c, father) (struct zx_xa_EnvironmentMatch_s*)zx_new_elem((c),(father),zx_xa_EnvironmentMatch_ELEM) 606 int zx_DEC_ATTR_xa_EnvironmentMatch(struct zx_ctx* c, struct zx_xa_EnvironmentMatch_s* x); 607 int zx_DEC_ELEM_xa_EnvironmentMatch(struct zx_ctx* c, struct zx_xa_EnvironmentMatch_s* x); 608 609 #ifdef ZX_ENA_AUX 610 struct zx_xa_EnvironmentMatch_s* zx_DEEP_CLONE_xa_EnvironmentMatch(struct zx_ctx* c, struct zx_xa_EnvironmentMatch_s* x, int dup_strs); 611 void zx_DUP_STRS_xa_EnvironmentMatch(struct zx_ctx* c, struct zx_xa_EnvironmentMatch_s* x); 612 int zx_WALK_SO_xa_EnvironmentMatch(struct zx_ctx* c, struct zx_xa_EnvironmentMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 613 int zx_WALK_WO_xa_EnvironmentMatch(struct zx_ctx* c, struct zx_xa_EnvironmentMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 614 #endif 615 616 #ifdef ZX_ENA_GETPUT 617 struct zx_attr_s* zx_xa_EnvironmentMatch_GET_MatchId(struct zx_xa_EnvironmentMatch_s* x); 618 619 struct zx_xa_AttributeValue_s* zx_xa_EnvironmentMatch_GET_AttributeValue(struct zx_xa_EnvironmentMatch_s* x, int n); 620 struct zx_xa_EnvironmentAttributeDesignator_s* zx_xa_EnvironmentMatch_GET_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x, int n); 621 struct zx_xa_AttributeSelector_s* zx_xa_EnvironmentMatch_GET_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x, int n); 622 623 int zx_xa_EnvironmentMatch_NUM_AttributeValue(struct zx_xa_EnvironmentMatch_s* x); 624 int zx_xa_EnvironmentMatch_NUM_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x); 625 int zx_xa_EnvironmentMatch_NUM_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x); 626 627 struct zx_xa_AttributeValue_s* zx_xa_EnvironmentMatch_POP_AttributeValue(struct zx_xa_EnvironmentMatch_s* x); 628 struct zx_xa_EnvironmentAttributeDesignator_s* zx_xa_EnvironmentMatch_POP_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x); 629 struct zx_xa_AttributeSelector_s* zx_xa_EnvironmentMatch_POP_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x); 630 631 void zx_xa_EnvironmentMatch_PUSH_AttributeValue(struct zx_xa_EnvironmentMatch_s* x, struct zx_xa_AttributeValue_s* y); 632 void zx_xa_EnvironmentMatch_PUSH_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x, struct zx_xa_EnvironmentAttributeDesignator_s* y); 633 void zx_xa_EnvironmentMatch_PUSH_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x, struct zx_xa_AttributeSelector_s* y); 634 635 void zx_xa_EnvironmentMatch_PUT_MatchId(struct zx_xa_EnvironmentMatch_s* x, struct zx_attr_s* y); 636 637 void zx_xa_EnvironmentMatch_PUT_AttributeValue(struct zx_xa_EnvironmentMatch_s* x, int n, struct zx_xa_AttributeValue_s* y); 638 void zx_xa_EnvironmentMatch_PUT_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x, int n, struct zx_xa_EnvironmentAttributeDesignator_s* y); 639 void zx_xa_EnvironmentMatch_PUT_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x, int n, struct zx_xa_AttributeSelector_s* y); 640 641 void zx_xa_EnvironmentMatch_ADD_AttributeValue(struct zx_xa_EnvironmentMatch_s* x, int n, struct zx_xa_AttributeValue_s* z); 642 void zx_xa_EnvironmentMatch_ADD_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x, int n, struct zx_xa_EnvironmentAttributeDesignator_s* z); 643 void zx_xa_EnvironmentMatch_ADD_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x, int n, struct zx_xa_AttributeSelector_s* z); 644 645 void zx_xa_EnvironmentMatch_DEL_AttributeValue(struct zx_xa_EnvironmentMatch_s* x, int n); 646 void zx_xa_EnvironmentMatch_DEL_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x, int n); 647 void zx_xa_EnvironmentMatch_DEL_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x, int n); 648 649 void zx_xa_EnvironmentMatch_REV_AttributeValue(struct zx_xa_EnvironmentMatch_s* x); 650 void zx_xa_EnvironmentMatch_REV_EnvironmentAttributeDesignator(struct zx_xa_EnvironmentMatch_s* x); 651 void zx_xa_EnvironmentMatch_REV_AttributeSelector(struct zx_xa_EnvironmentMatch_s* x); 652 653 #endif 654 /* -------------------------- xa_Environments -------------------------- */ 655 /* refby( zx_xa_Target_s ) */ 656 #ifndef zx_xa_Environments_EXT 657 #define zx_xa_Environments_EXT 658 #endif 659 struct zx_xa_Environments_s { 660 ZX_ELEM_EXT 661 zx_xa_Environments_EXT 662 struct zx_xa_Environment_s* Environment; /* {1,-1} */ 663 }; 664 665 #define zx_NEW_xa_Environments(c, father) (struct zx_xa_Environments_s*)zx_new_elem((c),(father),zx_xa_Environments_ELEM) 666 int zx_DEC_ATTR_xa_Environments(struct zx_ctx* c, struct zx_xa_Environments_s* x); 667 int zx_DEC_ELEM_xa_Environments(struct zx_ctx* c, struct zx_xa_Environments_s* x); 668 669 #ifdef ZX_ENA_AUX 670 struct zx_xa_Environments_s* zx_DEEP_CLONE_xa_Environments(struct zx_ctx* c, struct zx_xa_Environments_s* x, int dup_strs); 671 void zx_DUP_STRS_xa_Environments(struct zx_ctx* c, struct zx_xa_Environments_s* x); 672 int zx_WALK_SO_xa_Environments(struct zx_ctx* c, struct zx_xa_Environments_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 673 int zx_WALK_WO_xa_Environments(struct zx_ctx* c, struct zx_xa_Environments_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 674 #endif 675 676 #ifdef ZX_ENA_GETPUT 677 678 struct zx_xa_Environment_s* zx_xa_Environments_GET_Environment(struct zx_xa_Environments_s* x, int n); 679 680 int zx_xa_Environments_NUM_Environment(struct zx_xa_Environments_s* x); 681 682 struct zx_xa_Environment_s* zx_xa_Environments_POP_Environment(struct zx_xa_Environments_s* x); 683 684 void zx_xa_Environments_PUSH_Environment(struct zx_xa_Environments_s* x, struct zx_xa_Environment_s* y); 685 686 687 void zx_xa_Environments_PUT_Environment(struct zx_xa_Environments_s* x, int n, struct zx_xa_Environment_s* y); 688 689 void zx_xa_Environments_ADD_Environment(struct zx_xa_Environments_s* x, int n, struct zx_xa_Environment_s* z); 690 691 void zx_xa_Environments_DEL_Environment(struct zx_xa_Environments_s* x, int n); 692 693 void zx_xa_Environments_REV_Environment(struct zx_xa_Environments_s* x); 694 695 #endif 696 /* -------------------------- xa_Function -------------------------- */ 697 /* refby( ) */ 698 #ifndef zx_xa_Function_EXT 699 #define zx_xa_Function_EXT 700 #endif 701 struct zx_xa_Function_s { 702 ZX_ELEM_EXT 703 zx_xa_Function_EXT 704 struct zx_attr_s* FunctionId; /* {1,1} attribute xs:anyURI */ 705 }; 706 707 #define zx_NEW_xa_Function(c, father) (struct zx_xa_Function_s*)zx_new_elem((c),(father),zx_xa_Function_ELEM) 708 int zx_DEC_ATTR_xa_Function(struct zx_ctx* c, struct zx_xa_Function_s* x); 709 int zx_DEC_ELEM_xa_Function(struct zx_ctx* c, struct zx_xa_Function_s* x); 710 711 #ifdef ZX_ENA_AUX 712 struct zx_xa_Function_s* zx_DEEP_CLONE_xa_Function(struct zx_ctx* c, struct zx_xa_Function_s* x, int dup_strs); 713 void zx_DUP_STRS_xa_Function(struct zx_ctx* c, struct zx_xa_Function_s* x); 714 int zx_WALK_SO_xa_Function(struct zx_ctx* c, struct zx_xa_Function_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 715 int zx_WALK_WO_xa_Function(struct zx_ctx* c, struct zx_xa_Function_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 716 #endif 717 718 #ifdef ZX_ENA_GETPUT 719 struct zx_attr_s* zx_xa_Function_GET_FunctionId(struct zx_xa_Function_s* x); 720 721 722 723 724 725 void zx_xa_Function_PUT_FunctionId(struct zx_xa_Function_s* x, struct zx_attr_s* y); 726 727 728 729 730 731 #endif 732 /* -------------------------- xa_Obligation -------------------------- */ 733 /* refby( zx_b_UsageDirective_s zx_xa_Obligations_s zx_tas3_ESLApply_s ) */ 734 #ifndef zx_xa_Obligation_EXT 735 #define zx_xa_Obligation_EXT 736 #endif 737 struct zx_xa_Obligation_s { 738 ZX_ELEM_EXT 739 zx_xa_Obligation_EXT 740 struct zx_xa_AttributeAssignment_s* AttributeAssignment; /* {0,-1} nada */ 741 struct zx_attr_s* FulfillOn; /* {1,1} attribute xa:EffectType */ 742 struct zx_attr_s* ObligationId; /* {1,1} attribute xs:anyURI */ 743 }; 744 745 #define zx_NEW_xa_Obligation(c, father) (struct zx_xa_Obligation_s*)zx_new_elem((c),(father),zx_xa_Obligation_ELEM) 746 int zx_DEC_ATTR_xa_Obligation(struct zx_ctx* c, struct zx_xa_Obligation_s* x); 747 int zx_DEC_ELEM_xa_Obligation(struct zx_ctx* c, struct zx_xa_Obligation_s* x); 748 749 #ifdef ZX_ENA_AUX 750 struct zx_xa_Obligation_s* zx_DEEP_CLONE_xa_Obligation(struct zx_ctx* c, struct zx_xa_Obligation_s* x, int dup_strs); 751 void zx_DUP_STRS_xa_Obligation(struct zx_ctx* c, struct zx_xa_Obligation_s* x); 752 int zx_WALK_SO_xa_Obligation(struct zx_ctx* c, struct zx_xa_Obligation_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 753 int zx_WALK_WO_xa_Obligation(struct zx_ctx* c, struct zx_xa_Obligation_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 754 #endif 755 756 #ifdef ZX_ENA_GETPUT 757 struct zx_attr_s* zx_xa_Obligation_GET_FulfillOn(struct zx_xa_Obligation_s* x); 758 struct zx_attr_s* zx_xa_Obligation_GET_ObligationId(struct zx_xa_Obligation_s* x); 759 760 struct zx_xa_AttributeAssignment_s* zx_xa_Obligation_GET_AttributeAssignment(struct zx_xa_Obligation_s* x, int n); 761 762 int zx_xa_Obligation_NUM_AttributeAssignment(struct zx_xa_Obligation_s* x); 763 764 struct zx_xa_AttributeAssignment_s* zx_xa_Obligation_POP_AttributeAssignment(struct zx_xa_Obligation_s* x); 765 766 void zx_xa_Obligation_PUSH_AttributeAssignment(struct zx_xa_Obligation_s* x, struct zx_xa_AttributeAssignment_s* y); 767 768 void zx_xa_Obligation_PUT_FulfillOn(struct zx_xa_Obligation_s* x, struct zx_attr_s* y); 769 void zx_xa_Obligation_PUT_ObligationId(struct zx_xa_Obligation_s* x, struct zx_attr_s* y); 770 771 void zx_xa_Obligation_PUT_AttributeAssignment(struct zx_xa_Obligation_s* x, int n, struct zx_xa_AttributeAssignment_s* y); 772 773 void zx_xa_Obligation_ADD_AttributeAssignment(struct zx_xa_Obligation_s* x, int n, struct zx_xa_AttributeAssignment_s* z); 774 775 void zx_xa_Obligation_DEL_AttributeAssignment(struct zx_xa_Obligation_s* x, int n); 776 777 void zx_xa_Obligation_REV_AttributeAssignment(struct zx_xa_Obligation_s* x); 778 779 #endif 780 /* -------------------------- xa_Obligations -------------------------- */ 781 /* refby( zx_xa_Policy_s zx_xac_Result_s zx_xa_PolicySet_s ) */ 782 #ifndef zx_xa_Obligations_EXT 783 #define zx_xa_Obligations_EXT 784 #endif 785 struct zx_xa_Obligations_s { 786 ZX_ELEM_EXT 787 zx_xa_Obligations_EXT 788 struct zx_xa_Obligation_s* Obligation; /* {1,-1} nada */ 789 }; 790 791 #define zx_NEW_xa_Obligations(c, father) (struct zx_xa_Obligations_s*)zx_new_elem((c),(father),zx_xa_Obligations_ELEM) 792 int zx_DEC_ATTR_xa_Obligations(struct zx_ctx* c, struct zx_xa_Obligations_s* x); 793 int zx_DEC_ELEM_xa_Obligations(struct zx_ctx* c, struct zx_xa_Obligations_s* x); 794 795 #ifdef ZX_ENA_AUX 796 struct zx_xa_Obligations_s* zx_DEEP_CLONE_xa_Obligations(struct zx_ctx* c, struct zx_xa_Obligations_s* x, int dup_strs); 797 void zx_DUP_STRS_xa_Obligations(struct zx_ctx* c, struct zx_xa_Obligations_s* x); 798 int zx_WALK_SO_xa_Obligations(struct zx_ctx* c, struct zx_xa_Obligations_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 799 int zx_WALK_WO_xa_Obligations(struct zx_ctx* c, struct zx_xa_Obligations_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 800 #endif 801 802 #ifdef ZX_ENA_GETPUT 803 804 struct zx_xa_Obligation_s* zx_xa_Obligations_GET_Obligation(struct zx_xa_Obligations_s* x, int n); 805 806 int zx_xa_Obligations_NUM_Obligation(struct zx_xa_Obligations_s* x); 807 808 struct zx_xa_Obligation_s* zx_xa_Obligations_POP_Obligation(struct zx_xa_Obligations_s* x); 809 810 void zx_xa_Obligations_PUSH_Obligation(struct zx_xa_Obligations_s* x, struct zx_xa_Obligation_s* y); 811 812 813 void zx_xa_Obligations_PUT_Obligation(struct zx_xa_Obligations_s* x, int n, struct zx_xa_Obligation_s* y); 814 815 void zx_xa_Obligations_ADD_Obligation(struct zx_xa_Obligations_s* x, int n, struct zx_xa_Obligation_s* z); 816 817 void zx_xa_Obligations_DEL_Obligation(struct zx_xa_Obligations_s* x, int n); 818 819 void zx_xa_Obligations_REV_Obligation(struct zx_xa_Obligations_s* x); 820 821 #endif 822 /* -------------------------- xa_Policy -------------------------- */ 823 /* refby( zx_xasacd1_ReferencedPolicies_s zx_xa_PolicySet_s zx_xasa_XACMLPolicyStatement_s zx_xaspcd1_XACMLAuthzDecisionQuery_s zx_xasacd1_XACMLPolicyStatement_s ) */ 824 #ifndef zx_xa_Policy_EXT 825 #define zx_xa_Policy_EXT 826 #endif 827 struct zx_xa_Policy_s { 828 ZX_ELEM_EXT 829 zx_xa_Policy_EXT 830 struct zx_elem_s* Description; /* {0,1} xs:string */ 831 struct zx_xa_PolicyDefaults_s* PolicyDefaults; /* {0,1} */ 832 struct zx_xa_Target_s* Target; /* {1,1} nada */ 833 struct zx_xa_CombinerParameters_s* CombinerParameters; /* {0,1} */ 834 struct zx_xa_RuleCombinerParameters_s* RuleCombinerParameters; /* {0,1} nada */ 835 struct zx_xa_VariableDefinition_s* VariableDefinition; /* {0,1} nada */ 836 struct zx_xa_Rule_s* Rule; /* {0,1} nada */ 837 struct zx_xa_Obligations_s* Obligations; /* {0,1} */ 838 struct zx_attr_s* PolicyId; /* {1,1} attribute xs:anyURI */ 839 struct zx_attr_s* RuleCombiningAlgId; /* {1,1} attribute xs:anyURI */ 840 struct zx_attr_s* Version; /* {0,1} attribute xa:VersionType */ 841 }; 842 843 #define zx_NEW_xa_Policy(c, father) (struct zx_xa_Policy_s*)zx_new_elem((c),(father),zx_xa_Policy_ELEM) 844 int zx_DEC_ATTR_xa_Policy(struct zx_ctx* c, struct zx_xa_Policy_s* x); 845 int zx_DEC_ELEM_xa_Policy(struct zx_ctx* c, struct zx_xa_Policy_s* x); 846 847 #ifdef ZX_ENA_AUX 848 struct zx_xa_Policy_s* zx_DEEP_CLONE_xa_Policy(struct zx_ctx* c, struct zx_xa_Policy_s* x, int dup_strs); 849 void zx_DUP_STRS_xa_Policy(struct zx_ctx* c, struct zx_xa_Policy_s* x); 850 int zx_WALK_SO_xa_Policy(struct zx_ctx* c, struct zx_xa_Policy_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 851 int zx_WALK_WO_xa_Policy(struct zx_ctx* c, struct zx_xa_Policy_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 852 #endif 853 854 #ifdef ZX_ENA_GETPUT 855 struct zx_attr_s* zx_xa_Policy_GET_PolicyId(struct zx_xa_Policy_s* x); 856 struct zx_attr_s* zx_xa_Policy_GET_RuleCombiningAlgId(struct zx_xa_Policy_s* x); 857 struct zx_attr_s* zx_xa_Policy_GET_Version(struct zx_xa_Policy_s* x); 858 859 struct zx_elem_s* zx_xa_Policy_GET_Description(struct zx_xa_Policy_s* x, int n); 860 struct zx_xa_PolicyDefaults_s* zx_xa_Policy_GET_PolicyDefaults(struct zx_xa_Policy_s* x, int n); 861 struct zx_xa_Target_s* zx_xa_Policy_GET_Target(struct zx_xa_Policy_s* x, int n); 862 struct zx_xa_CombinerParameters_s* zx_xa_Policy_GET_CombinerParameters(struct zx_xa_Policy_s* x, int n); 863 struct zx_xa_RuleCombinerParameters_s* zx_xa_Policy_GET_RuleCombinerParameters(struct zx_xa_Policy_s* x, int n); 864 struct zx_xa_VariableDefinition_s* zx_xa_Policy_GET_VariableDefinition(struct zx_xa_Policy_s* x, int n); 865 struct zx_xa_Rule_s* zx_xa_Policy_GET_Rule(struct zx_xa_Policy_s* x, int n); 866 struct zx_xa_Obligations_s* zx_xa_Policy_GET_Obligations(struct zx_xa_Policy_s* x, int n); 867 868 int zx_xa_Policy_NUM_Description(struct zx_xa_Policy_s* x); 869 int zx_xa_Policy_NUM_PolicyDefaults(struct zx_xa_Policy_s* x); 870 int zx_xa_Policy_NUM_Target(struct zx_xa_Policy_s* x); 871 int zx_xa_Policy_NUM_CombinerParameters(struct zx_xa_Policy_s* x); 872 int zx_xa_Policy_NUM_RuleCombinerParameters(struct zx_xa_Policy_s* x); 873 int zx_xa_Policy_NUM_VariableDefinition(struct zx_xa_Policy_s* x); 874 int zx_xa_Policy_NUM_Rule(struct zx_xa_Policy_s* x); 875 int zx_xa_Policy_NUM_Obligations(struct zx_xa_Policy_s* x); 876 877 struct zx_elem_s* zx_xa_Policy_POP_Description(struct zx_xa_Policy_s* x); 878 struct zx_xa_PolicyDefaults_s* zx_xa_Policy_POP_PolicyDefaults(struct zx_xa_Policy_s* x); 879 struct zx_xa_Target_s* zx_xa_Policy_POP_Target(struct zx_xa_Policy_s* x); 880 struct zx_xa_CombinerParameters_s* zx_xa_Policy_POP_CombinerParameters(struct zx_xa_Policy_s* x); 881 struct zx_xa_RuleCombinerParameters_s* zx_xa_Policy_POP_RuleCombinerParameters(struct zx_xa_Policy_s* x); 882 struct zx_xa_VariableDefinition_s* zx_xa_Policy_POP_VariableDefinition(struct zx_xa_Policy_s* x); 883 struct zx_xa_Rule_s* zx_xa_Policy_POP_Rule(struct zx_xa_Policy_s* x); 884 struct zx_xa_Obligations_s* zx_xa_Policy_POP_Obligations(struct zx_xa_Policy_s* x); 885 886 void zx_xa_Policy_PUSH_Description(struct zx_xa_Policy_s* x, struct zx_elem_s* y); 887 void zx_xa_Policy_PUSH_PolicyDefaults(struct zx_xa_Policy_s* x, struct zx_xa_PolicyDefaults_s* y); 888 void zx_xa_Policy_PUSH_Target(struct zx_xa_Policy_s* x, struct zx_xa_Target_s* y); 889 void zx_xa_Policy_PUSH_CombinerParameters(struct zx_xa_Policy_s* x, struct zx_xa_CombinerParameters_s* y); 890 void zx_xa_Policy_PUSH_RuleCombinerParameters(struct zx_xa_Policy_s* x, struct zx_xa_RuleCombinerParameters_s* y); 891 void zx_xa_Policy_PUSH_VariableDefinition(struct zx_xa_Policy_s* x, struct zx_xa_VariableDefinition_s* y); 892 void zx_xa_Policy_PUSH_Rule(struct zx_xa_Policy_s* x, struct zx_xa_Rule_s* y); 893 void zx_xa_Policy_PUSH_Obligations(struct zx_xa_Policy_s* x, struct zx_xa_Obligations_s* y); 894 895 void zx_xa_Policy_PUT_PolicyId(struct zx_xa_Policy_s* x, struct zx_attr_s* y); 896 void zx_xa_Policy_PUT_RuleCombiningAlgId(struct zx_xa_Policy_s* x, struct zx_attr_s* y); 897 void zx_xa_Policy_PUT_Version(struct zx_xa_Policy_s* x, struct zx_attr_s* y); 898 899 void zx_xa_Policy_PUT_Description(struct zx_xa_Policy_s* x, int n, struct zx_elem_s* y); 900 void zx_xa_Policy_PUT_PolicyDefaults(struct zx_xa_Policy_s* x, int n, struct zx_xa_PolicyDefaults_s* y); 901 void zx_xa_Policy_PUT_Target(struct zx_xa_Policy_s* x, int n, struct zx_xa_Target_s* y); 902 void zx_xa_Policy_PUT_CombinerParameters(struct zx_xa_Policy_s* x, int n, struct zx_xa_CombinerParameters_s* y); 903 void zx_xa_Policy_PUT_RuleCombinerParameters(struct zx_xa_Policy_s* x, int n, struct zx_xa_RuleCombinerParameters_s* y); 904 void zx_xa_Policy_PUT_VariableDefinition(struct zx_xa_Policy_s* x, int n, struct zx_xa_VariableDefinition_s* y); 905 void zx_xa_Policy_PUT_Rule(struct zx_xa_Policy_s* x, int n, struct zx_xa_Rule_s* y); 906 void zx_xa_Policy_PUT_Obligations(struct zx_xa_Policy_s* x, int n, struct zx_xa_Obligations_s* y); 907 908 void zx_xa_Policy_ADD_Description(struct zx_xa_Policy_s* x, int n, struct zx_elem_s* z); 909 void zx_xa_Policy_ADD_PolicyDefaults(struct zx_xa_Policy_s* x, int n, struct zx_xa_PolicyDefaults_s* z); 910 void zx_xa_Policy_ADD_Target(struct zx_xa_Policy_s* x, int n, struct zx_xa_Target_s* z); 911 void zx_xa_Policy_ADD_CombinerParameters(struct zx_xa_Policy_s* x, int n, struct zx_xa_CombinerParameters_s* z); 912 void zx_xa_Policy_ADD_RuleCombinerParameters(struct zx_xa_Policy_s* x, int n, struct zx_xa_RuleCombinerParameters_s* z); 913 void zx_xa_Policy_ADD_VariableDefinition(struct zx_xa_Policy_s* x, int n, struct zx_xa_VariableDefinition_s* z); 914 void zx_xa_Policy_ADD_Rule(struct zx_xa_Policy_s* x, int n, struct zx_xa_Rule_s* z); 915 void zx_xa_Policy_ADD_Obligations(struct zx_xa_Policy_s* x, int n, struct zx_xa_Obligations_s* z); 916 917 void zx_xa_Policy_DEL_Description(struct zx_xa_Policy_s* x,int n); 918 void zx_xa_Policy_DEL_PolicyDefaults(struct zx_xa_Policy_s* x, int n); 919 void zx_xa_Policy_DEL_Target(struct zx_xa_Policy_s* x, int n); 920 void zx_xa_Policy_DEL_CombinerParameters(struct zx_xa_Policy_s* x, int n); 921 void zx_xa_Policy_DEL_RuleCombinerParameters(struct zx_xa_Policy_s* x, int n); 922 void zx_xa_Policy_DEL_VariableDefinition(struct zx_xa_Policy_s* x, int n); 923 void zx_xa_Policy_DEL_Rule(struct zx_xa_Policy_s* x, int n); 924 void zx_xa_Policy_DEL_Obligations(struct zx_xa_Policy_s* x, int n); 925 926 void zx_xa_Policy_REV_Description(struct zx_xa_Policy_s* x); 927 void zx_xa_Policy_REV_PolicyDefaults(struct zx_xa_Policy_s* x); 928 void zx_xa_Policy_REV_Target(struct zx_xa_Policy_s* x); 929 void zx_xa_Policy_REV_CombinerParameters(struct zx_xa_Policy_s* x); 930 void zx_xa_Policy_REV_RuleCombinerParameters(struct zx_xa_Policy_s* x); 931 void zx_xa_Policy_REV_VariableDefinition(struct zx_xa_Policy_s* x); 932 void zx_xa_Policy_REV_Rule(struct zx_xa_Policy_s* x); 933 void zx_xa_Policy_REV_Obligations(struct zx_xa_Policy_s* x); 934 935 #endif 936 /* -------------------------- xa_PolicyCombinerParameters -------------------------- */ 937 /* refby( zx_xa_PolicySet_s ) */ 938 #ifndef zx_xa_PolicyCombinerParameters_EXT 939 #define zx_xa_PolicyCombinerParameters_EXT 940 #endif 941 struct zx_xa_PolicyCombinerParameters_s { 942 ZX_ELEM_EXT 943 zx_xa_PolicyCombinerParameters_EXT 944 struct zx_xa_CombinerParameter_s* CombinerParameter; /* {0,-1} nada */ 945 struct zx_attr_s* PolicyIdRef; /* {1,1} attribute xs:anyURI */ 946 }; 947 948 #define zx_NEW_xa_PolicyCombinerParameters(c, father) (struct zx_xa_PolicyCombinerParameters_s*)zx_new_elem((c),(father),zx_xa_PolicyCombinerParameters_ELEM) 949 int zx_DEC_ATTR_xa_PolicyCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicyCombinerParameters_s* x); 950 int zx_DEC_ELEM_xa_PolicyCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicyCombinerParameters_s* x); 951 952 #ifdef ZX_ENA_AUX 953 struct zx_xa_PolicyCombinerParameters_s* zx_DEEP_CLONE_xa_PolicyCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicyCombinerParameters_s* x, int dup_strs); 954 void zx_DUP_STRS_xa_PolicyCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicyCombinerParameters_s* x); 955 int zx_WALK_SO_xa_PolicyCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicyCombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 956 int zx_WALK_WO_xa_PolicyCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicyCombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 957 #endif 958 959 #ifdef ZX_ENA_GETPUT 960 struct zx_attr_s* zx_xa_PolicyCombinerParameters_GET_PolicyIdRef(struct zx_xa_PolicyCombinerParameters_s* x); 961 962 struct zx_xa_CombinerParameter_s* zx_xa_PolicyCombinerParameters_GET_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x, int n); 963 964 int zx_xa_PolicyCombinerParameters_NUM_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x); 965 966 struct zx_xa_CombinerParameter_s* zx_xa_PolicyCombinerParameters_POP_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x); 967 968 void zx_xa_PolicyCombinerParameters_PUSH_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x, struct zx_xa_CombinerParameter_s* y); 969 970 void zx_xa_PolicyCombinerParameters_PUT_PolicyIdRef(struct zx_xa_PolicyCombinerParameters_s* x, struct zx_attr_s* y); 971 972 void zx_xa_PolicyCombinerParameters_PUT_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* y); 973 974 void zx_xa_PolicyCombinerParameters_ADD_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* z); 975 976 void zx_xa_PolicyCombinerParameters_DEL_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x, int n); 977 978 void zx_xa_PolicyCombinerParameters_REV_CombinerParameter(struct zx_xa_PolicyCombinerParameters_s* x); 979 980 #endif 981 /* -------------------------- xa_PolicyDefaults -------------------------- */ 982 /* refby( zx_xa_Policy_s ) */ 983 #ifndef zx_xa_PolicyDefaults_EXT 984 #define zx_xa_PolicyDefaults_EXT 985 #endif 986 struct zx_xa_PolicyDefaults_s { 987 ZX_ELEM_EXT 988 zx_xa_PolicyDefaults_EXT 989 struct zx_elem_s* XPathVersion; /* {1,1} xs:anyURI */ 990 }; 991 992 #define zx_NEW_xa_PolicyDefaults(c, father) (struct zx_xa_PolicyDefaults_s*)zx_new_elem((c),(father),zx_xa_PolicyDefaults_ELEM) 993 int zx_DEC_ATTR_xa_PolicyDefaults(struct zx_ctx* c, struct zx_xa_PolicyDefaults_s* x); 994 int zx_DEC_ELEM_xa_PolicyDefaults(struct zx_ctx* c, struct zx_xa_PolicyDefaults_s* x); 995 996 #ifdef ZX_ENA_AUX 997 struct zx_xa_PolicyDefaults_s* zx_DEEP_CLONE_xa_PolicyDefaults(struct zx_ctx* c, struct zx_xa_PolicyDefaults_s* x, int dup_strs); 998 void zx_DUP_STRS_xa_PolicyDefaults(struct zx_ctx* c, struct zx_xa_PolicyDefaults_s* x); 999 int zx_WALK_SO_xa_PolicyDefaults(struct zx_ctx* c, struct zx_xa_PolicyDefaults_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1000 int zx_WALK_WO_xa_PolicyDefaults(struct zx_ctx* c, struct zx_xa_PolicyDefaults_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1001 #endif 1002 1003 #ifdef ZX_ENA_GETPUT 1004 1005 struct zx_elem_s* zx_xa_PolicyDefaults_GET_XPathVersion(struct zx_xa_PolicyDefaults_s* x, int n); 1006 1007 int zx_xa_PolicyDefaults_NUM_XPathVersion(struct zx_xa_PolicyDefaults_s* x); 1008 1009 struct zx_elem_s* zx_xa_PolicyDefaults_POP_XPathVersion(struct zx_xa_PolicyDefaults_s* x); 1010 1011 void zx_xa_PolicyDefaults_PUSH_XPathVersion(struct zx_xa_PolicyDefaults_s* x, struct zx_elem_s* y); 1012 1013 1014 void zx_xa_PolicyDefaults_PUT_XPathVersion(struct zx_xa_PolicyDefaults_s* x, int n, struct zx_elem_s* y); 1015 1016 void zx_xa_PolicyDefaults_ADD_XPathVersion(struct zx_xa_PolicyDefaults_s* x, int n, struct zx_elem_s* z); 1017 1018 void zx_xa_PolicyDefaults_DEL_XPathVersion(struct zx_xa_PolicyDefaults_s* x,int n); 1019 1020 void zx_xa_PolicyDefaults_REV_XPathVersion(struct zx_xa_PolicyDefaults_s* x); 1021 1022 #endif 1023 /* -------------------------- xa_PolicyIdReference -------------------------- */ 1024 /* refby( zx_xa_PolicySet_s zx_xasp_XACMLPolicyQuery_s zx_xaspcd1_XACMLPolicyQuery_s ) */ 1025 #ifndef zx_xa_PolicyIdReference_EXT 1026 #define zx_xa_PolicyIdReference_EXT 1027 #endif 1028 struct zx_xa_PolicyIdReference_s { 1029 ZX_ELEM_EXT 1030 zx_xa_PolicyIdReference_EXT 1031 struct zx_attr_s* EarliestVersion; /* {0,1} attribute xa:VersionMatchType */ 1032 struct zx_attr_s* LatestVersion; /* {0,1} attribute xa:VersionMatchType */ 1033 struct zx_attr_s* Version; /* {0,1} attribute xa:VersionType */ 1034 }; 1035 1036 #define zx_NEW_xa_PolicyIdReference(c, father) (struct zx_xa_PolicyIdReference_s*)zx_new_elem((c),(father),zx_xa_PolicyIdReference_ELEM) 1037 int zx_DEC_ATTR_xa_PolicyIdReference(struct zx_ctx* c, struct zx_xa_PolicyIdReference_s* x); 1038 int zx_DEC_ELEM_xa_PolicyIdReference(struct zx_ctx* c, struct zx_xa_PolicyIdReference_s* x); 1039 1040 #ifdef ZX_ENA_AUX 1041 struct zx_xa_PolicyIdReference_s* zx_DEEP_CLONE_xa_PolicyIdReference(struct zx_ctx* c, struct zx_xa_PolicyIdReference_s* x, int dup_strs); 1042 void zx_DUP_STRS_xa_PolicyIdReference(struct zx_ctx* c, struct zx_xa_PolicyIdReference_s* x); 1043 int zx_WALK_SO_xa_PolicyIdReference(struct zx_ctx* c, struct zx_xa_PolicyIdReference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1044 int zx_WALK_WO_xa_PolicyIdReference(struct zx_ctx* c, struct zx_xa_PolicyIdReference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1045 #endif 1046 1047 #ifdef ZX_ENA_GETPUT 1048 struct zx_attr_s* zx_xa_PolicyIdReference_GET_EarliestVersion(struct zx_xa_PolicyIdReference_s* x); 1049 struct zx_attr_s* zx_xa_PolicyIdReference_GET_LatestVersion(struct zx_xa_PolicyIdReference_s* x); 1050 struct zx_attr_s* zx_xa_PolicyIdReference_GET_Version(struct zx_xa_PolicyIdReference_s* x); 1051 1052 1053 1054 1055 1056 void zx_xa_PolicyIdReference_PUT_EarliestVersion(struct zx_xa_PolicyIdReference_s* x, struct zx_attr_s* y); 1057 void zx_xa_PolicyIdReference_PUT_LatestVersion(struct zx_xa_PolicyIdReference_s* x, struct zx_attr_s* y); 1058 void zx_xa_PolicyIdReference_PUT_Version(struct zx_xa_PolicyIdReference_s* x, struct zx_attr_s* y); 1059 1060 1061 1062 1063 1064 #endif 1065 /* -------------------------- xa_PolicySet -------------------------- */ 1066 /* refby( zx_xasacd1_ReferencedPolicies_s zx_xa_PolicySet_s zx_xasa_XACMLPolicyStatement_s zx_xaspcd1_XACMLAuthzDecisionQuery_s zx_xasacd1_XACMLPolicyStatement_s ) */ 1067 #ifndef zx_xa_PolicySet_EXT 1068 #define zx_xa_PolicySet_EXT 1069 #endif 1070 struct zx_xa_PolicySet_s { 1071 ZX_ELEM_EXT 1072 zx_xa_PolicySet_EXT 1073 struct zx_elem_s* Description; /* {0,1} xs:string */ 1074 struct zx_xa_PolicySetDefaults_s* PolicySetDefaults; /* {0,1} */ 1075 struct zx_xa_Target_s* Target; /* {1,1} nada */ 1076 struct zx_xa_PolicySet_s* PolicySet; /* {0,1} nada */ 1077 struct zx_xa_Policy_s* Policy; /* {0,1} nada */ 1078 struct zx_xa_PolicySetIdReference_s* PolicySetIdReference; /* {0,1} nada */ 1079 struct zx_xa_PolicyIdReference_s* PolicyIdReference; /* {0,1} nada */ 1080 struct zx_xa_CombinerParameters_s* CombinerParameters; /* {0,1} */ 1081 struct zx_xa_PolicyCombinerParameters_s* PolicyCombinerParameters; /* {0,1} nada */ 1082 struct zx_xa_PolicySetCombinerParameters_s* PolicySetCombinerParameters; /* {0,1} nada */ 1083 struct zx_xa_Obligations_s* Obligations; /* {0,1} */ 1084 struct zx_attr_s* PolicyCombiningAlgId; /* {1,1} attribute xs:anyURI */ 1085 struct zx_attr_s* PolicySetId; /* {1,1} attribute xs:anyURI */ 1086 struct zx_attr_s* Version; /* {0,1} attribute xa:VersionType */ 1087 }; 1088 1089 #define zx_NEW_xa_PolicySet(c, father) (struct zx_xa_PolicySet_s*)zx_new_elem((c),(father),zx_xa_PolicySet_ELEM) 1090 int zx_DEC_ATTR_xa_PolicySet(struct zx_ctx* c, struct zx_xa_PolicySet_s* x); 1091 int zx_DEC_ELEM_xa_PolicySet(struct zx_ctx* c, struct zx_xa_PolicySet_s* x); 1092 1093 #ifdef ZX_ENA_AUX 1094 struct zx_xa_PolicySet_s* zx_DEEP_CLONE_xa_PolicySet(struct zx_ctx* c, struct zx_xa_PolicySet_s* x, int dup_strs); 1095 void zx_DUP_STRS_xa_PolicySet(struct zx_ctx* c, struct zx_xa_PolicySet_s* x); 1096 int zx_WALK_SO_xa_PolicySet(struct zx_ctx* c, struct zx_xa_PolicySet_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1097 int zx_WALK_WO_xa_PolicySet(struct zx_ctx* c, struct zx_xa_PolicySet_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1098 #endif 1099 1100 #ifdef ZX_ENA_GETPUT 1101 struct zx_attr_s* zx_xa_PolicySet_GET_PolicyCombiningAlgId(struct zx_xa_PolicySet_s* x); 1102 struct zx_attr_s* zx_xa_PolicySet_GET_PolicySetId(struct zx_xa_PolicySet_s* x); 1103 struct zx_attr_s* zx_xa_PolicySet_GET_Version(struct zx_xa_PolicySet_s* x); 1104 1105 struct zx_elem_s* zx_xa_PolicySet_GET_Description(struct zx_xa_PolicySet_s* x, int n); 1106 struct zx_xa_PolicySetDefaults_s* zx_xa_PolicySet_GET_PolicySetDefaults(struct zx_xa_PolicySet_s* x, int n); 1107 struct zx_xa_Target_s* zx_xa_PolicySet_GET_Target(struct zx_xa_PolicySet_s* x, int n); 1108 struct zx_xa_PolicySet_s* zx_xa_PolicySet_GET_PolicySet(struct zx_xa_PolicySet_s* x, int n); 1109 struct zx_xa_Policy_s* zx_xa_PolicySet_GET_Policy(struct zx_xa_PolicySet_s* x, int n); 1110 struct zx_xa_PolicySetIdReference_s* zx_xa_PolicySet_GET_PolicySetIdReference(struct zx_xa_PolicySet_s* x, int n); 1111 struct zx_xa_PolicyIdReference_s* zx_xa_PolicySet_GET_PolicyIdReference(struct zx_xa_PolicySet_s* x, int n); 1112 struct zx_xa_CombinerParameters_s* zx_xa_PolicySet_GET_CombinerParameters(struct zx_xa_PolicySet_s* x, int n); 1113 struct zx_xa_PolicyCombinerParameters_s* zx_xa_PolicySet_GET_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x, int n); 1114 struct zx_xa_PolicySetCombinerParameters_s* zx_xa_PolicySet_GET_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x, int n); 1115 struct zx_xa_Obligations_s* zx_xa_PolicySet_GET_Obligations(struct zx_xa_PolicySet_s* x, int n); 1116 1117 int zx_xa_PolicySet_NUM_Description(struct zx_xa_PolicySet_s* x); 1118 int zx_xa_PolicySet_NUM_PolicySetDefaults(struct zx_xa_PolicySet_s* x); 1119 int zx_xa_PolicySet_NUM_Target(struct zx_xa_PolicySet_s* x); 1120 int zx_xa_PolicySet_NUM_PolicySet(struct zx_xa_PolicySet_s* x); 1121 int zx_xa_PolicySet_NUM_Policy(struct zx_xa_PolicySet_s* x); 1122 int zx_xa_PolicySet_NUM_PolicySetIdReference(struct zx_xa_PolicySet_s* x); 1123 int zx_xa_PolicySet_NUM_PolicyIdReference(struct zx_xa_PolicySet_s* x); 1124 int zx_xa_PolicySet_NUM_CombinerParameters(struct zx_xa_PolicySet_s* x); 1125 int zx_xa_PolicySet_NUM_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x); 1126 int zx_xa_PolicySet_NUM_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x); 1127 int zx_xa_PolicySet_NUM_Obligations(struct zx_xa_PolicySet_s* x); 1128 1129 struct zx_elem_s* zx_xa_PolicySet_POP_Description(struct zx_xa_PolicySet_s* x); 1130 struct zx_xa_PolicySetDefaults_s* zx_xa_PolicySet_POP_PolicySetDefaults(struct zx_xa_PolicySet_s* x); 1131 struct zx_xa_Target_s* zx_xa_PolicySet_POP_Target(struct zx_xa_PolicySet_s* x); 1132 struct zx_xa_PolicySet_s* zx_xa_PolicySet_POP_PolicySet(struct zx_xa_PolicySet_s* x); 1133 struct zx_xa_Policy_s* zx_xa_PolicySet_POP_Policy(struct zx_xa_PolicySet_s* x); 1134 struct zx_xa_PolicySetIdReference_s* zx_xa_PolicySet_POP_PolicySetIdReference(struct zx_xa_PolicySet_s* x); 1135 struct zx_xa_PolicyIdReference_s* zx_xa_PolicySet_POP_PolicyIdReference(struct zx_xa_PolicySet_s* x); 1136 struct zx_xa_CombinerParameters_s* zx_xa_PolicySet_POP_CombinerParameters(struct zx_xa_PolicySet_s* x); 1137 struct zx_xa_PolicyCombinerParameters_s* zx_xa_PolicySet_POP_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x); 1138 struct zx_xa_PolicySetCombinerParameters_s* zx_xa_PolicySet_POP_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x); 1139 struct zx_xa_Obligations_s* zx_xa_PolicySet_POP_Obligations(struct zx_xa_PolicySet_s* x); 1140 1141 void zx_xa_PolicySet_PUSH_Description(struct zx_xa_PolicySet_s* x, struct zx_elem_s* y); 1142 void zx_xa_PolicySet_PUSH_PolicySetDefaults(struct zx_xa_PolicySet_s* x, struct zx_xa_PolicySetDefaults_s* y); 1143 void zx_xa_PolicySet_PUSH_Target(struct zx_xa_PolicySet_s* x, struct zx_xa_Target_s* y); 1144 void zx_xa_PolicySet_PUSH_PolicySet(struct zx_xa_PolicySet_s* x, struct zx_xa_PolicySet_s* y); 1145 void zx_xa_PolicySet_PUSH_Policy(struct zx_xa_PolicySet_s* x, struct zx_xa_Policy_s* y); 1146 void zx_xa_PolicySet_PUSH_PolicySetIdReference(struct zx_xa_PolicySet_s* x, struct zx_xa_PolicySetIdReference_s* y); 1147 void zx_xa_PolicySet_PUSH_PolicyIdReference(struct zx_xa_PolicySet_s* x, struct zx_xa_PolicyIdReference_s* y); 1148 void zx_xa_PolicySet_PUSH_CombinerParameters(struct zx_xa_PolicySet_s* x, struct zx_xa_CombinerParameters_s* y); 1149 void zx_xa_PolicySet_PUSH_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x, struct zx_xa_PolicyCombinerParameters_s* y); 1150 void zx_xa_PolicySet_PUSH_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x, struct zx_xa_PolicySetCombinerParameters_s* y); 1151 void zx_xa_PolicySet_PUSH_Obligations(struct zx_xa_PolicySet_s* x, struct zx_xa_Obligations_s* y); 1152 1153 void zx_xa_PolicySet_PUT_PolicyCombiningAlgId(struct zx_xa_PolicySet_s* x, struct zx_attr_s* y); 1154 void zx_xa_PolicySet_PUT_PolicySetId(struct zx_xa_PolicySet_s* x, struct zx_attr_s* y); 1155 void zx_xa_PolicySet_PUT_Version(struct zx_xa_PolicySet_s* x, struct zx_attr_s* y); 1156 1157 void zx_xa_PolicySet_PUT_Description(struct zx_xa_PolicySet_s* x, int n, struct zx_elem_s* y); 1158 void zx_xa_PolicySet_PUT_PolicySetDefaults(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySetDefaults_s* y); 1159 void zx_xa_PolicySet_PUT_Target(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_Target_s* y); 1160 void zx_xa_PolicySet_PUT_PolicySet(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySet_s* y); 1161 void zx_xa_PolicySet_PUT_Policy(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_Policy_s* y); 1162 void zx_xa_PolicySet_PUT_PolicySetIdReference(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySetIdReference_s* y); 1163 void zx_xa_PolicySet_PUT_PolicyIdReference(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicyIdReference_s* y); 1164 void zx_xa_PolicySet_PUT_CombinerParameters(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_CombinerParameters_s* y); 1165 void zx_xa_PolicySet_PUT_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicyCombinerParameters_s* y); 1166 void zx_xa_PolicySet_PUT_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySetCombinerParameters_s* y); 1167 void zx_xa_PolicySet_PUT_Obligations(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_Obligations_s* y); 1168 1169 void zx_xa_PolicySet_ADD_Description(struct zx_xa_PolicySet_s* x, int n, struct zx_elem_s* z); 1170 void zx_xa_PolicySet_ADD_PolicySetDefaults(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySetDefaults_s* z); 1171 void zx_xa_PolicySet_ADD_Target(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_Target_s* z); 1172 void zx_xa_PolicySet_ADD_PolicySet(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySet_s* z); 1173 void zx_xa_PolicySet_ADD_Policy(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_Policy_s* z); 1174 void zx_xa_PolicySet_ADD_PolicySetIdReference(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySetIdReference_s* z); 1175 void zx_xa_PolicySet_ADD_PolicyIdReference(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicyIdReference_s* z); 1176 void zx_xa_PolicySet_ADD_CombinerParameters(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_CombinerParameters_s* z); 1177 void zx_xa_PolicySet_ADD_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicyCombinerParameters_s* z); 1178 void zx_xa_PolicySet_ADD_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_PolicySetCombinerParameters_s* z); 1179 void zx_xa_PolicySet_ADD_Obligations(struct zx_xa_PolicySet_s* x, int n, struct zx_xa_Obligations_s* z); 1180 1181 void zx_xa_PolicySet_DEL_Description(struct zx_xa_PolicySet_s* x,int n); 1182 void zx_xa_PolicySet_DEL_PolicySetDefaults(struct zx_xa_PolicySet_s* x, int n); 1183 void zx_xa_PolicySet_DEL_Target(struct zx_xa_PolicySet_s* x, int n); 1184 void zx_xa_PolicySet_DEL_PolicySet(struct zx_xa_PolicySet_s* x, int n); 1185 void zx_xa_PolicySet_DEL_Policy(struct zx_xa_PolicySet_s* x, int n); 1186 void zx_xa_PolicySet_DEL_PolicySetIdReference(struct zx_xa_PolicySet_s* x, int n); 1187 void zx_xa_PolicySet_DEL_PolicyIdReference(struct zx_xa_PolicySet_s* x, int n); 1188 void zx_xa_PolicySet_DEL_CombinerParameters(struct zx_xa_PolicySet_s* x, int n); 1189 void zx_xa_PolicySet_DEL_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x, int n); 1190 void zx_xa_PolicySet_DEL_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x, int n); 1191 void zx_xa_PolicySet_DEL_Obligations(struct zx_xa_PolicySet_s* x, int n); 1192 1193 void zx_xa_PolicySet_REV_Description(struct zx_xa_PolicySet_s* x); 1194 void zx_xa_PolicySet_REV_PolicySetDefaults(struct zx_xa_PolicySet_s* x); 1195 void zx_xa_PolicySet_REV_Target(struct zx_xa_PolicySet_s* x); 1196 void zx_xa_PolicySet_REV_PolicySet(struct zx_xa_PolicySet_s* x); 1197 void zx_xa_PolicySet_REV_Policy(struct zx_xa_PolicySet_s* x); 1198 void zx_xa_PolicySet_REV_PolicySetIdReference(struct zx_xa_PolicySet_s* x); 1199 void zx_xa_PolicySet_REV_PolicyIdReference(struct zx_xa_PolicySet_s* x); 1200 void zx_xa_PolicySet_REV_CombinerParameters(struct zx_xa_PolicySet_s* x); 1201 void zx_xa_PolicySet_REV_PolicyCombinerParameters(struct zx_xa_PolicySet_s* x); 1202 void zx_xa_PolicySet_REV_PolicySetCombinerParameters(struct zx_xa_PolicySet_s* x); 1203 void zx_xa_PolicySet_REV_Obligations(struct zx_xa_PolicySet_s* x); 1204 1205 #endif 1206 /* -------------------------- xa_PolicySetCombinerParameters -------------------------- */ 1207 /* refby( zx_xa_PolicySet_s ) */ 1208 #ifndef zx_xa_PolicySetCombinerParameters_EXT 1209 #define zx_xa_PolicySetCombinerParameters_EXT 1210 #endif 1211 struct zx_xa_PolicySetCombinerParameters_s { 1212 ZX_ELEM_EXT 1213 zx_xa_PolicySetCombinerParameters_EXT 1214 struct zx_xa_CombinerParameter_s* CombinerParameter; /* {0,-1} nada */ 1215 struct zx_attr_s* PolicySetIdRef; /* {1,1} attribute xs:anyURI */ 1216 }; 1217 1218 #define zx_NEW_xa_PolicySetCombinerParameters(c, father) (struct zx_xa_PolicySetCombinerParameters_s*)zx_new_elem((c),(father),zx_xa_PolicySetCombinerParameters_ELEM) 1219 int zx_DEC_ATTR_xa_PolicySetCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicySetCombinerParameters_s* x); 1220 int zx_DEC_ELEM_xa_PolicySetCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicySetCombinerParameters_s* x); 1221 1222 #ifdef ZX_ENA_AUX 1223 struct zx_xa_PolicySetCombinerParameters_s* zx_DEEP_CLONE_xa_PolicySetCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicySetCombinerParameters_s* x, int dup_strs); 1224 void zx_DUP_STRS_xa_PolicySetCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicySetCombinerParameters_s* x); 1225 int zx_WALK_SO_xa_PolicySetCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicySetCombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1226 int zx_WALK_WO_xa_PolicySetCombinerParameters(struct zx_ctx* c, struct zx_xa_PolicySetCombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1227 #endif 1228 1229 #ifdef ZX_ENA_GETPUT 1230 struct zx_attr_s* zx_xa_PolicySetCombinerParameters_GET_PolicySetIdRef(struct zx_xa_PolicySetCombinerParameters_s* x); 1231 1232 struct zx_xa_CombinerParameter_s* zx_xa_PolicySetCombinerParameters_GET_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x, int n); 1233 1234 int zx_xa_PolicySetCombinerParameters_NUM_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x); 1235 1236 struct zx_xa_CombinerParameter_s* zx_xa_PolicySetCombinerParameters_POP_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x); 1237 1238 void zx_xa_PolicySetCombinerParameters_PUSH_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x, struct zx_xa_CombinerParameter_s* y); 1239 1240 void zx_xa_PolicySetCombinerParameters_PUT_PolicySetIdRef(struct zx_xa_PolicySetCombinerParameters_s* x, struct zx_attr_s* y); 1241 1242 void zx_xa_PolicySetCombinerParameters_PUT_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* y); 1243 1244 void zx_xa_PolicySetCombinerParameters_ADD_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* z); 1245 1246 void zx_xa_PolicySetCombinerParameters_DEL_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x, int n); 1247 1248 void zx_xa_PolicySetCombinerParameters_REV_CombinerParameter(struct zx_xa_PolicySetCombinerParameters_s* x); 1249 1250 #endif 1251 /* -------------------------- xa_PolicySetDefaults -------------------------- */ 1252 /* refby( zx_xa_PolicySet_s ) */ 1253 #ifndef zx_xa_PolicySetDefaults_EXT 1254 #define zx_xa_PolicySetDefaults_EXT 1255 #endif 1256 struct zx_xa_PolicySetDefaults_s { 1257 ZX_ELEM_EXT 1258 zx_xa_PolicySetDefaults_EXT 1259 struct zx_elem_s* XPathVersion; /* {1,1} xs:anyURI */ 1260 }; 1261 1262 #define zx_NEW_xa_PolicySetDefaults(c, father) (struct zx_xa_PolicySetDefaults_s*)zx_new_elem((c),(father),zx_xa_PolicySetDefaults_ELEM) 1263 int zx_DEC_ATTR_xa_PolicySetDefaults(struct zx_ctx* c, struct zx_xa_PolicySetDefaults_s* x); 1264 int zx_DEC_ELEM_xa_PolicySetDefaults(struct zx_ctx* c, struct zx_xa_PolicySetDefaults_s* x); 1265 1266 #ifdef ZX_ENA_AUX 1267 struct zx_xa_PolicySetDefaults_s* zx_DEEP_CLONE_xa_PolicySetDefaults(struct zx_ctx* c, struct zx_xa_PolicySetDefaults_s* x, int dup_strs); 1268 void zx_DUP_STRS_xa_PolicySetDefaults(struct zx_ctx* c, struct zx_xa_PolicySetDefaults_s* x); 1269 int zx_WALK_SO_xa_PolicySetDefaults(struct zx_ctx* c, struct zx_xa_PolicySetDefaults_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1270 int zx_WALK_WO_xa_PolicySetDefaults(struct zx_ctx* c, struct zx_xa_PolicySetDefaults_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1271 #endif 1272 1273 #ifdef ZX_ENA_GETPUT 1274 1275 struct zx_elem_s* zx_xa_PolicySetDefaults_GET_XPathVersion(struct zx_xa_PolicySetDefaults_s* x, int n); 1276 1277 int zx_xa_PolicySetDefaults_NUM_XPathVersion(struct zx_xa_PolicySetDefaults_s* x); 1278 1279 struct zx_elem_s* zx_xa_PolicySetDefaults_POP_XPathVersion(struct zx_xa_PolicySetDefaults_s* x); 1280 1281 void zx_xa_PolicySetDefaults_PUSH_XPathVersion(struct zx_xa_PolicySetDefaults_s* x, struct zx_elem_s* y); 1282 1283 1284 void zx_xa_PolicySetDefaults_PUT_XPathVersion(struct zx_xa_PolicySetDefaults_s* x, int n, struct zx_elem_s* y); 1285 1286 void zx_xa_PolicySetDefaults_ADD_XPathVersion(struct zx_xa_PolicySetDefaults_s* x, int n, struct zx_elem_s* z); 1287 1288 void zx_xa_PolicySetDefaults_DEL_XPathVersion(struct zx_xa_PolicySetDefaults_s* x,int n); 1289 1290 void zx_xa_PolicySetDefaults_REV_XPathVersion(struct zx_xa_PolicySetDefaults_s* x); 1291 1292 #endif 1293 /* -------------------------- xa_PolicySetIdReference -------------------------- */ 1294 /* refby( zx_xa_PolicySet_s zx_xasp_XACMLPolicyQuery_s zx_xaspcd1_XACMLPolicyQuery_s ) */ 1295 #ifndef zx_xa_PolicySetIdReference_EXT 1296 #define zx_xa_PolicySetIdReference_EXT 1297 #endif 1298 struct zx_xa_PolicySetIdReference_s { 1299 ZX_ELEM_EXT 1300 zx_xa_PolicySetIdReference_EXT 1301 struct zx_attr_s* EarliestVersion; /* {0,1} attribute xa:VersionMatchType */ 1302 struct zx_attr_s* LatestVersion; /* {0,1} attribute xa:VersionMatchType */ 1303 struct zx_attr_s* Version; /* {0,1} attribute xa:VersionType */ 1304 }; 1305 1306 #define zx_NEW_xa_PolicySetIdReference(c, father) (struct zx_xa_PolicySetIdReference_s*)zx_new_elem((c),(father),zx_xa_PolicySetIdReference_ELEM) 1307 int zx_DEC_ATTR_xa_PolicySetIdReference(struct zx_ctx* c, struct zx_xa_PolicySetIdReference_s* x); 1308 int zx_DEC_ELEM_xa_PolicySetIdReference(struct zx_ctx* c, struct zx_xa_PolicySetIdReference_s* x); 1309 1310 #ifdef ZX_ENA_AUX 1311 struct zx_xa_PolicySetIdReference_s* zx_DEEP_CLONE_xa_PolicySetIdReference(struct zx_ctx* c, struct zx_xa_PolicySetIdReference_s* x, int dup_strs); 1312 void zx_DUP_STRS_xa_PolicySetIdReference(struct zx_ctx* c, struct zx_xa_PolicySetIdReference_s* x); 1313 int zx_WALK_SO_xa_PolicySetIdReference(struct zx_ctx* c, struct zx_xa_PolicySetIdReference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1314 int zx_WALK_WO_xa_PolicySetIdReference(struct zx_ctx* c, struct zx_xa_PolicySetIdReference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1315 #endif 1316 1317 #ifdef ZX_ENA_GETPUT 1318 struct zx_attr_s* zx_xa_PolicySetIdReference_GET_EarliestVersion(struct zx_xa_PolicySetIdReference_s* x); 1319 struct zx_attr_s* zx_xa_PolicySetIdReference_GET_LatestVersion(struct zx_xa_PolicySetIdReference_s* x); 1320 struct zx_attr_s* zx_xa_PolicySetIdReference_GET_Version(struct zx_xa_PolicySetIdReference_s* x); 1321 1322 1323 1324 1325 1326 void zx_xa_PolicySetIdReference_PUT_EarliestVersion(struct zx_xa_PolicySetIdReference_s* x, struct zx_attr_s* y); 1327 void zx_xa_PolicySetIdReference_PUT_LatestVersion(struct zx_xa_PolicySetIdReference_s* x, struct zx_attr_s* y); 1328 void zx_xa_PolicySetIdReference_PUT_Version(struct zx_xa_PolicySetIdReference_s* x, struct zx_attr_s* y); 1329 1330 1331 1332 1333 1334 #endif 1335 /* -------------------------- xa_Resource -------------------------- */ 1336 /* refby( zx_xa_Resources_s ) */ 1337 #ifndef zx_xa_Resource_EXT 1338 #define zx_xa_Resource_EXT 1339 #endif 1340 struct zx_xa_Resource_s { 1341 ZX_ELEM_EXT 1342 zx_xa_Resource_EXT 1343 struct zx_xa_ResourceMatch_s* ResourceMatch; /* {1,-1} nada */ 1344 }; 1345 1346 #define zx_NEW_xa_Resource(c, father) (struct zx_xa_Resource_s*)zx_new_elem((c),(father),zx_xa_Resource_ELEM) 1347 int zx_DEC_ATTR_xa_Resource(struct zx_ctx* c, struct zx_xa_Resource_s* x); 1348 int zx_DEC_ELEM_xa_Resource(struct zx_ctx* c, struct zx_xa_Resource_s* x); 1349 1350 #ifdef ZX_ENA_AUX 1351 struct zx_xa_Resource_s* zx_DEEP_CLONE_xa_Resource(struct zx_ctx* c, struct zx_xa_Resource_s* x, int dup_strs); 1352 void zx_DUP_STRS_xa_Resource(struct zx_ctx* c, struct zx_xa_Resource_s* x); 1353 int zx_WALK_SO_xa_Resource(struct zx_ctx* c, struct zx_xa_Resource_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1354 int zx_WALK_WO_xa_Resource(struct zx_ctx* c, struct zx_xa_Resource_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1355 #endif 1356 1357 #ifdef ZX_ENA_GETPUT 1358 1359 struct zx_xa_ResourceMatch_s* zx_xa_Resource_GET_ResourceMatch(struct zx_xa_Resource_s* x, int n); 1360 1361 int zx_xa_Resource_NUM_ResourceMatch(struct zx_xa_Resource_s* x); 1362 1363 struct zx_xa_ResourceMatch_s* zx_xa_Resource_POP_ResourceMatch(struct zx_xa_Resource_s* x); 1364 1365 void zx_xa_Resource_PUSH_ResourceMatch(struct zx_xa_Resource_s* x, struct zx_xa_ResourceMatch_s* y); 1366 1367 1368 void zx_xa_Resource_PUT_ResourceMatch(struct zx_xa_Resource_s* x, int n, struct zx_xa_ResourceMatch_s* y); 1369 1370 void zx_xa_Resource_ADD_ResourceMatch(struct zx_xa_Resource_s* x, int n, struct zx_xa_ResourceMatch_s* z); 1371 1372 void zx_xa_Resource_DEL_ResourceMatch(struct zx_xa_Resource_s* x, int n); 1373 1374 void zx_xa_Resource_REV_ResourceMatch(struct zx_xa_Resource_s* x); 1375 1376 #endif 1377 /* -------------------------- xa_ResourceAttributeDesignator -------------------------- */ 1378 /* refby( zx_xa_ResourceMatch_s ) */ 1379 #ifndef zx_xa_ResourceAttributeDesignator_EXT 1380 #define zx_xa_ResourceAttributeDesignator_EXT 1381 #endif 1382 struct zx_xa_ResourceAttributeDesignator_s { 1383 ZX_ELEM_EXT 1384 zx_xa_ResourceAttributeDesignator_EXT 1385 struct zx_attr_s* AttributeId; /* {1,1} attribute xs:anyURI */ 1386 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 1387 struct zx_attr_s* Issuer; /* {0,1} attribute xs:string */ 1388 struct zx_attr_s* MustBePresent; /* {0,1} attribute xs:boolean */ 1389 }; 1390 1391 #define zx_NEW_xa_ResourceAttributeDesignator(c, father) (struct zx_xa_ResourceAttributeDesignator_s*)zx_new_elem((c),(father),zx_xa_ResourceAttributeDesignator_ELEM) 1392 int zx_DEC_ATTR_xa_ResourceAttributeDesignator(struct zx_ctx* c, struct zx_xa_ResourceAttributeDesignator_s* x); 1393 int zx_DEC_ELEM_xa_ResourceAttributeDesignator(struct zx_ctx* c, struct zx_xa_ResourceAttributeDesignator_s* x); 1394 1395 #ifdef ZX_ENA_AUX 1396 struct zx_xa_ResourceAttributeDesignator_s* zx_DEEP_CLONE_xa_ResourceAttributeDesignator(struct zx_ctx* c, struct zx_xa_ResourceAttributeDesignator_s* x, int dup_strs); 1397 void zx_DUP_STRS_xa_ResourceAttributeDesignator(struct zx_ctx* c, struct zx_xa_ResourceAttributeDesignator_s* x); 1398 int zx_WALK_SO_xa_ResourceAttributeDesignator(struct zx_ctx* c, struct zx_xa_ResourceAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1399 int zx_WALK_WO_xa_ResourceAttributeDesignator(struct zx_ctx* c, struct zx_xa_ResourceAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1400 #endif 1401 1402 #ifdef ZX_ENA_GETPUT 1403 struct zx_attr_s* zx_xa_ResourceAttributeDesignator_GET_AttributeId(struct zx_xa_ResourceAttributeDesignator_s* x); 1404 struct zx_attr_s* zx_xa_ResourceAttributeDesignator_GET_DataType(struct zx_xa_ResourceAttributeDesignator_s* x); 1405 struct zx_attr_s* zx_xa_ResourceAttributeDesignator_GET_Issuer(struct zx_xa_ResourceAttributeDesignator_s* x); 1406 struct zx_attr_s* zx_xa_ResourceAttributeDesignator_GET_MustBePresent(struct zx_xa_ResourceAttributeDesignator_s* x); 1407 1408 1409 1410 1411 1412 void zx_xa_ResourceAttributeDesignator_PUT_AttributeId(struct zx_xa_ResourceAttributeDesignator_s* x, struct zx_attr_s* y); 1413 void zx_xa_ResourceAttributeDesignator_PUT_DataType(struct zx_xa_ResourceAttributeDesignator_s* x, struct zx_attr_s* y); 1414 void zx_xa_ResourceAttributeDesignator_PUT_Issuer(struct zx_xa_ResourceAttributeDesignator_s* x, struct zx_attr_s* y); 1415 void zx_xa_ResourceAttributeDesignator_PUT_MustBePresent(struct zx_xa_ResourceAttributeDesignator_s* x, struct zx_attr_s* y); 1416 1417 1418 1419 1420 1421 #endif 1422 /* -------------------------- xa_ResourceMatch -------------------------- */ 1423 /* refby( zx_xa_Resource_s ) */ 1424 #ifndef zx_xa_ResourceMatch_EXT 1425 #define zx_xa_ResourceMatch_EXT 1426 #endif 1427 struct zx_xa_ResourceMatch_s { 1428 ZX_ELEM_EXT 1429 zx_xa_ResourceMatch_EXT 1430 struct zx_xa_AttributeValue_s* AttributeValue; /* {1,1} nada */ 1431 struct zx_xa_ResourceAttributeDesignator_s* ResourceAttributeDesignator; /* {0,1} nada */ 1432 struct zx_xa_AttributeSelector_s* AttributeSelector; /* {0,1} nada */ 1433 struct zx_attr_s* MatchId; /* {1,1} attribute xs:anyURI */ 1434 }; 1435 1436 #define zx_NEW_xa_ResourceMatch(c, father) (struct zx_xa_ResourceMatch_s*)zx_new_elem((c),(father),zx_xa_ResourceMatch_ELEM) 1437 int zx_DEC_ATTR_xa_ResourceMatch(struct zx_ctx* c, struct zx_xa_ResourceMatch_s* x); 1438 int zx_DEC_ELEM_xa_ResourceMatch(struct zx_ctx* c, struct zx_xa_ResourceMatch_s* x); 1439 1440 #ifdef ZX_ENA_AUX 1441 struct zx_xa_ResourceMatch_s* zx_DEEP_CLONE_xa_ResourceMatch(struct zx_ctx* c, struct zx_xa_ResourceMatch_s* x, int dup_strs); 1442 void zx_DUP_STRS_xa_ResourceMatch(struct zx_ctx* c, struct zx_xa_ResourceMatch_s* x); 1443 int zx_WALK_SO_xa_ResourceMatch(struct zx_ctx* c, struct zx_xa_ResourceMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1444 int zx_WALK_WO_xa_ResourceMatch(struct zx_ctx* c, struct zx_xa_ResourceMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1445 #endif 1446 1447 #ifdef ZX_ENA_GETPUT 1448 struct zx_attr_s* zx_xa_ResourceMatch_GET_MatchId(struct zx_xa_ResourceMatch_s* x); 1449 1450 struct zx_xa_AttributeValue_s* zx_xa_ResourceMatch_GET_AttributeValue(struct zx_xa_ResourceMatch_s* x, int n); 1451 struct zx_xa_ResourceAttributeDesignator_s* zx_xa_ResourceMatch_GET_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x, int n); 1452 struct zx_xa_AttributeSelector_s* zx_xa_ResourceMatch_GET_AttributeSelector(struct zx_xa_ResourceMatch_s* x, int n); 1453 1454 int zx_xa_ResourceMatch_NUM_AttributeValue(struct zx_xa_ResourceMatch_s* x); 1455 int zx_xa_ResourceMatch_NUM_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x); 1456 int zx_xa_ResourceMatch_NUM_AttributeSelector(struct zx_xa_ResourceMatch_s* x); 1457 1458 struct zx_xa_AttributeValue_s* zx_xa_ResourceMatch_POP_AttributeValue(struct zx_xa_ResourceMatch_s* x); 1459 struct zx_xa_ResourceAttributeDesignator_s* zx_xa_ResourceMatch_POP_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x); 1460 struct zx_xa_AttributeSelector_s* zx_xa_ResourceMatch_POP_AttributeSelector(struct zx_xa_ResourceMatch_s* x); 1461 1462 void zx_xa_ResourceMatch_PUSH_AttributeValue(struct zx_xa_ResourceMatch_s* x, struct zx_xa_AttributeValue_s* y); 1463 void zx_xa_ResourceMatch_PUSH_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x, struct zx_xa_ResourceAttributeDesignator_s* y); 1464 void zx_xa_ResourceMatch_PUSH_AttributeSelector(struct zx_xa_ResourceMatch_s* x, struct zx_xa_AttributeSelector_s* y); 1465 1466 void zx_xa_ResourceMatch_PUT_MatchId(struct zx_xa_ResourceMatch_s* x, struct zx_attr_s* y); 1467 1468 void zx_xa_ResourceMatch_PUT_AttributeValue(struct zx_xa_ResourceMatch_s* x, int n, struct zx_xa_AttributeValue_s* y); 1469 void zx_xa_ResourceMatch_PUT_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x, int n, struct zx_xa_ResourceAttributeDesignator_s* y); 1470 void zx_xa_ResourceMatch_PUT_AttributeSelector(struct zx_xa_ResourceMatch_s* x, int n, struct zx_xa_AttributeSelector_s* y); 1471 1472 void zx_xa_ResourceMatch_ADD_AttributeValue(struct zx_xa_ResourceMatch_s* x, int n, struct zx_xa_AttributeValue_s* z); 1473 void zx_xa_ResourceMatch_ADD_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x, int n, struct zx_xa_ResourceAttributeDesignator_s* z); 1474 void zx_xa_ResourceMatch_ADD_AttributeSelector(struct zx_xa_ResourceMatch_s* x, int n, struct zx_xa_AttributeSelector_s* z); 1475 1476 void zx_xa_ResourceMatch_DEL_AttributeValue(struct zx_xa_ResourceMatch_s* x, int n); 1477 void zx_xa_ResourceMatch_DEL_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x, int n); 1478 void zx_xa_ResourceMatch_DEL_AttributeSelector(struct zx_xa_ResourceMatch_s* x, int n); 1479 1480 void zx_xa_ResourceMatch_REV_AttributeValue(struct zx_xa_ResourceMatch_s* x); 1481 void zx_xa_ResourceMatch_REV_ResourceAttributeDesignator(struct zx_xa_ResourceMatch_s* x); 1482 void zx_xa_ResourceMatch_REV_AttributeSelector(struct zx_xa_ResourceMatch_s* x); 1483 1484 #endif 1485 /* -------------------------- xa_Resources -------------------------- */ 1486 /* refby( zx_xa_Target_s ) */ 1487 #ifndef zx_xa_Resources_EXT 1488 #define zx_xa_Resources_EXT 1489 #endif 1490 struct zx_xa_Resources_s { 1491 ZX_ELEM_EXT 1492 zx_xa_Resources_EXT 1493 struct zx_xa_Resource_s* Resource; /* {1,-1} */ 1494 }; 1495 1496 #define zx_NEW_xa_Resources(c, father) (struct zx_xa_Resources_s*)zx_new_elem((c),(father),zx_xa_Resources_ELEM) 1497 int zx_DEC_ATTR_xa_Resources(struct zx_ctx* c, struct zx_xa_Resources_s* x); 1498 int zx_DEC_ELEM_xa_Resources(struct zx_ctx* c, struct zx_xa_Resources_s* x); 1499 1500 #ifdef ZX_ENA_AUX 1501 struct zx_xa_Resources_s* zx_DEEP_CLONE_xa_Resources(struct zx_ctx* c, struct zx_xa_Resources_s* x, int dup_strs); 1502 void zx_DUP_STRS_xa_Resources(struct zx_ctx* c, struct zx_xa_Resources_s* x); 1503 int zx_WALK_SO_xa_Resources(struct zx_ctx* c, struct zx_xa_Resources_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1504 int zx_WALK_WO_xa_Resources(struct zx_ctx* c, struct zx_xa_Resources_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1505 #endif 1506 1507 #ifdef ZX_ENA_GETPUT 1508 1509 struct zx_xa_Resource_s* zx_xa_Resources_GET_Resource(struct zx_xa_Resources_s* x, int n); 1510 1511 int zx_xa_Resources_NUM_Resource(struct zx_xa_Resources_s* x); 1512 1513 struct zx_xa_Resource_s* zx_xa_Resources_POP_Resource(struct zx_xa_Resources_s* x); 1514 1515 void zx_xa_Resources_PUSH_Resource(struct zx_xa_Resources_s* x, struct zx_xa_Resource_s* y); 1516 1517 1518 void zx_xa_Resources_PUT_Resource(struct zx_xa_Resources_s* x, int n, struct zx_xa_Resource_s* y); 1519 1520 void zx_xa_Resources_ADD_Resource(struct zx_xa_Resources_s* x, int n, struct zx_xa_Resource_s* z); 1521 1522 void zx_xa_Resources_DEL_Resource(struct zx_xa_Resources_s* x, int n); 1523 1524 void zx_xa_Resources_REV_Resource(struct zx_xa_Resources_s* x); 1525 1526 #endif 1527 /* -------------------------- xa_Rule -------------------------- */ 1528 /* refby( zx_xa_Policy_s ) */ 1529 #ifndef zx_xa_Rule_EXT 1530 #define zx_xa_Rule_EXT 1531 #endif 1532 struct zx_xa_Rule_s { 1533 ZX_ELEM_EXT 1534 zx_xa_Rule_EXT 1535 struct zx_elem_s* Description; /* {0,1} xs:string */ 1536 struct zx_xa_Target_s* Target; /* {0,1} nada */ 1537 struct zx_xa_Condition_s* Condition; /* {0,1} */ 1538 struct zx_attr_s* Effect; /* {1,1} attribute xa:EffectType */ 1539 struct zx_attr_s* RuleId; /* {1,1} attribute xs:string */ 1540 }; 1541 1542 #define zx_NEW_xa_Rule(c, father) (struct zx_xa_Rule_s*)zx_new_elem((c),(father),zx_xa_Rule_ELEM) 1543 int zx_DEC_ATTR_xa_Rule(struct zx_ctx* c, struct zx_xa_Rule_s* x); 1544 int zx_DEC_ELEM_xa_Rule(struct zx_ctx* c, struct zx_xa_Rule_s* x); 1545 1546 #ifdef ZX_ENA_AUX 1547 struct zx_xa_Rule_s* zx_DEEP_CLONE_xa_Rule(struct zx_ctx* c, struct zx_xa_Rule_s* x, int dup_strs); 1548 void zx_DUP_STRS_xa_Rule(struct zx_ctx* c, struct zx_xa_Rule_s* x); 1549 int zx_WALK_SO_xa_Rule(struct zx_ctx* c, struct zx_xa_Rule_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1550 int zx_WALK_WO_xa_Rule(struct zx_ctx* c, struct zx_xa_Rule_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1551 #endif 1552 1553 #ifdef ZX_ENA_GETPUT 1554 struct zx_attr_s* zx_xa_Rule_GET_Effect(struct zx_xa_Rule_s* x); 1555 struct zx_attr_s* zx_xa_Rule_GET_RuleId(struct zx_xa_Rule_s* x); 1556 1557 struct zx_elem_s* zx_xa_Rule_GET_Description(struct zx_xa_Rule_s* x, int n); 1558 struct zx_xa_Target_s* zx_xa_Rule_GET_Target(struct zx_xa_Rule_s* x, int n); 1559 struct zx_xa_Condition_s* zx_xa_Rule_GET_Condition(struct zx_xa_Rule_s* x, int n); 1560 1561 int zx_xa_Rule_NUM_Description(struct zx_xa_Rule_s* x); 1562 int zx_xa_Rule_NUM_Target(struct zx_xa_Rule_s* x); 1563 int zx_xa_Rule_NUM_Condition(struct zx_xa_Rule_s* x); 1564 1565 struct zx_elem_s* zx_xa_Rule_POP_Description(struct zx_xa_Rule_s* x); 1566 struct zx_xa_Target_s* zx_xa_Rule_POP_Target(struct zx_xa_Rule_s* x); 1567 struct zx_xa_Condition_s* zx_xa_Rule_POP_Condition(struct zx_xa_Rule_s* x); 1568 1569 void zx_xa_Rule_PUSH_Description(struct zx_xa_Rule_s* x, struct zx_elem_s* y); 1570 void zx_xa_Rule_PUSH_Target(struct zx_xa_Rule_s* x, struct zx_xa_Target_s* y); 1571 void zx_xa_Rule_PUSH_Condition(struct zx_xa_Rule_s* x, struct zx_xa_Condition_s* y); 1572 1573 void zx_xa_Rule_PUT_Effect(struct zx_xa_Rule_s* x, struct zx_attr_s* y); 1574 void zx_xa_Rule_PUT_RuleId(struct zx_xa_Rule_s* x, struct zx_attr_s* y); 1575 1576 void zx_xa_Rule_PUT_Description(struct zx_xa_Rule_s* x, int n, struct zx_elem_s* y); 1577 void zx_xa_Rule_PUT_Target(struct zx_xa_Rule_s* x, int n, struct zx_xa_Target_s* y); 1578 void zx_xa_Rule_PUT_Condition(struct zx_xa_Rule_s* x, int n, struct zx_xa_Condition_s* y); 1579 1580 void zx_xa_Rule_ADD_Description(struct zx_xa_Rule_s* x, int n, struct zx_elem_s* z); 1581 void zx_xa_Rule_ADD_Target(struct zx_xa_Rule_s* x, int n, struct zx_xa_Target_s* z); 1582 void zx_xa_Rule_ADD_Condition(struct zx_xa_Rule_s* x, int n, struct zx_xa_Condition_s* z); 1583 1584 void zx_xa_Rule_DEL_Description(struct zx_xa_Rule_s* x,int n); 1585 void zx_xa_Rule_DEL_Target(struct zx_xa_Rule_s* x, int n); 1586 void zx_xa_Rule_DEL_Condition(struct zx_xa_Rule_s* x, int n); 1587 1588 void zx_xa_Rule_REV_Description(struct zx_xa_Rule_s* x); 1589 void zx_xa_Rule_REV_Target(struct zx_xa_Rule_s* x); 1590 void zx_xa_Rule_REV_Condition(struct zx_xa_Rule_s* x); 1591 1592 #endif 1593 /* -------------------------- xa_RuleCombinerParameters -------------------------- */ 1594 /* refby( zx_xa_Policy_s ) */ 1595 #ifndef zx_xa_RuleCombinerParameters_EXT 1596 #define zx_xa_RuleCombinerParameters_EXT 1597 #endif 1598 struct zx_xa_RuleCombinerParameters_s { 1599 ZX_ELEM_EXT 1600 zx_xa_RuleCombinerParameters_EXT 1601 struct zx_xa_CombinerParameter_s* CombinerParameter; /* {0,-1} nada */ 1602 struct zx_attr_s* RuleIdRef; /* {1,1} attribute xs:string */ 1603 }; 1604 1605 #define zx_NEW_xa_RuleCombinerParameters(c, father) (struct zx_xa_RuleCombinerParameters_s*)zx_new_elem((c),(father),zx_xa_RuleCombinerParameters_ELEM) 1606 int zx_DEC_ATTR_xa_RuleCombinerParameters(struct zx_ctx* c, struct zx_xa_RuleCombinerParameters_s* x); 1607 int zx_DEC_ELEM_xa_RuleCombinerParameters(struct zx_ctx* c, struct zx_xa_RuleCombinerParameters_s* x); 1608 1609 #ifdef ZX_ENA_AUX 1610 struct zx_xa_RuleCombinerParameters_s* zx_DEEP_CLONE_xa_RuleCombinerParameters(struct zx_ctx* c, struct zx_xa_RuleCombinerParameters_s* x, int dup_strs); 1611 void zx_DUP_STRS_xa_RuleCombinerParameters(struct zx_ctx* c, struct zx_xa_RuleCombinerParameters_s* x); 1612 int zx_WALK_SO_xa_RuleCombinerParameters(struct zx_ctx* c, struct zx_xa_RuleCombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1613 int zx_WALK_WO_xa_RuleCombinerParameters(struct zx_ctx* c, struct zx_xa_RuleCombinerParameters_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1614 #endif 1615 1616 #ifdef ZX_ENA_GETPUT 1617 struct zx_attr_s* zx_xa_RuleCombinerParameters_GET_RuleIdRef(struct zx_xa_RuleCombinerParameters_s* x); 1618 1619 struct zx_xa_CombinerParameter_s* zx_xa_RuleCombinerParameters_GET_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x, int n); 1620 1621 int zx_xa_RuleCombinerParameters_NUM_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x); 1622 1623 struct zx_xa_CombinerParameter_s* zx_xa_RuleCombinerParameters_POP_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x); 1624 1625 void zx_xa_RuleCombinerParameters_PUSH_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x, struct zx_xa_CombinerParameter_s* y); 1626 1627 void zx_xa_RuleCombinerParameters_PUT_RuleIdRef(struct zx_xa_RuleCombinerParameters_s* x, struct zx_attr_s* y); 1628 1629 void zx_xa_RuleCombinerParameters_PUT_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* y); 1630 1631 void zx_xa_RuleCombinerParameters_ADD_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x, int n, struct zx_xa_CombinerParameter_s* z); 1632 1633 void zx_xa_RuleCombinerParameters_DEL_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x, int n); 1634 1635 void zx_xa_RuleCombinerParameters_REV_CombinerParameter(struct zx_xa_RuleCombinerParameters_s* x); 1636 1637 #endif 1638 /* -------------------------- xa_Subject -------------------------- */ 1639 /* refby( zx_xa_Subjects_s ) */ 1640 #ifndef zx_xa_Subject_EXT 1641 #define zx_xa_Subject_EXT 1642 #endif 1643 struct zx_xa_Subject_s { 1644 ZX_ELEM_EXT 1645 zx_xa_Subject_EXT 1646 struct zx_xa_SubjectMatch_s* SubjectMatch; /* {1,-1} nada */ 1647 }; 1648 1649 #define zx_NEW_xa_Subject(c, father) (struct zx_xa_Subject_s*)zx_new_elem((c),(father),zx_xa_Subject_ELEM) 1650 int zx_DEC_ATTR_xa_Subject(struct zx_ctx* c, struct zx_xa_Subject_s* x); 1651 int zx_DEC_ELEM_xa_Subject(struct zx_ctx* c, struct zx_xa_Subject_s* x); 1652 1653 #ifdef ZX_ENA_AUX 1654 struct zx_xa_Subject_s* zx_DEEP_CLONE_xa_Subject(struct zx_ctx* c, struct zx_xa_Subject_s* x, int dup_strs); 1655 void zx_DUP_STRS_xa_Subject(struct zx_ctx* c, struct zx_xa_Subject_s* x); 1656 int zx_WALK_SO_xa_Subject(struct zx_ctx* c, struct zx_xa_Subject_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1657 int zx_WALK_WO_xa_Subject(struct zx_ctx* c, struct zx_xa_Subject_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1658 #endif 1659 1660 #ifdef ZX_ENA_GETPUT 1661 1662 struct zx_xa_SubjectMatch_s* zx_xa_Subject_GET_SubjectMatch(struct zx_xa_Subject_s* x, int n); 1663 1664 int zx_xa_Subject_NUM_SubjectMatch(struct zx_xa_Subject_s* x); 1665 1666 struct zx_xa_SubjectMatch_s* zx_xa_Subject_POP_SubjectMatch(struct zx_xa_Subject_s* x); 1667 1668 void zx_xa_Subject_PUSH_SubjectMatch(struct zx_xa_Subject_s* x, struct zx_xa_SubjectMatch_s* y); 1669 1670 1671 void zx_xa_Subject_PUT_SubjectMatch(struct zx_xa_Subject_s* x, int n, struct zx_xa_SubjectMatch_s* y); 1672 1673 void zx_xa_Subject_ADD_SubjectMatch(struct zx_xa_Subject_s* x, int n, struct zx_xa_SubjectMatch_s* z); 1674 1675 void zx_xa_Subject_DEL_SubjectMatch(struct zx_xa_Subject_s* x, int n); 1676 1677 void zx_xa_Subject_REV_SubjectMatch(struct zx_xa_Subject_s* x); 1678 1679 #endif 1680 /* -------------------------- xa_SubjectAttributeDesignator -------------------------- */ 1681 /* refby( zx_xa_SubjectMatch_s ) */ 1682 #ifndef zx_xa_SubjectAttributeDesignator_EXT 1683 #define zx_xa_SubjectAttributeDesignator_EXT 1684 #endif 1685 struct zx_xa_SubjectAttributeDesignator_s { 1686 ZX_ELEM_EXT 1687 zx_xa_SubjectAttributeDesignator_EXT 1688 struct zx_attr_s* AttributeId; /* {1,1} attribute xs:anyURI */ 1689 struct zx_attr_s* DataType; /* {1,1} attribute xs:anyURI */ 1690 struct zx_attr_s* Issuer; /* {0,1} attribute xs:string */ 1691 struct zx_attr_s* MustBePresent; /* {0,1} attribute xs:boolean */ 1692 struct zx_attr_s* SubjectCategory; /* {0,1} attribute xs:anyURI */ 1693 }; 1694 1695 #define zx_NEW_xa_SubjectAttributeDesignator(c, father) (struct zx_xa_SubjectAttributeDesignator_s*)zx_new_elem((c),(father),zx_xa_SubjectAttributeDesignator_ELEM) 1696 int zx_DEC_ATTR_xa_SubjectAttributeDesignator(struct zx_ctx* c, struct zx_xa_SubjectAttributeDesignator_s* x); 1697 int zx_DEC_ELEM_xa_SubjectAttributeDesignator(struct zx_ctx* c, struct zx_xa_SubjectAttributeDesignator_s* x); 1698 1699 #ifdef ZX_ENA_AUX 1700 struct zx_xa_SubjectAttributeDesignator_s* zx_DEEP_CLONE_xa_SubjectAttributeDesignator(struct zx_ctx* c, struct zx_xa_SubjectAttributeDesignator_s* x, int dup_strs); 1701 void zx_DUP_STRS_xa_SubjectAttributeDesignator(struct zx_ctx* c, struct zx_xa_SubjectAttributeDesignator_s* x); 1702 int zx_WALK_SO_xa_SubjectAttributeDesignator(struct zx_ctx* c, struct zx_xa_SubjectAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1703 int zx_WALK_WO_xa_SubjectAttributeDesignator(struct zx_ctx* c, struct zx_xa_SubjectAttributeDesignator_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1704 #endif 1705 1706 #ifdef ZX_ENA_GETPUT 1707 struct zx_attr_s* zx_xa_SubjectAttributeDesignator_GET_AttributeId(struct zx_xa_SubjectAttributeDesignator_s* x); 1708 struct zx_attr_s* zx_xa_SubjectAttributeDesignator_GET_DataType(struct zx_xa_SubjectAttributeDesignator_s* x); 1709 struct zx_attr_s* zx_xa_SubjectAttributeDesignator_GET_Issuer(struct zx_xa_SubjectAttributeDesignator_s* x); 1710 struct zx_attr_s* zx_xa_SubjectAttributeDesignator_GET_MustBePresent(struct zx_xa_SubjectAttributeDesignator_s* x); 1711 struct zx_attr_s* zx_xa_SubjectAttributeDesignator_GET_SubjectCategory(struct zx_xa_SubjectAttributeDesignator_s* x); 1712 1713 1714 1715 1716 1717 void zx_xa_SubjectAttributeDesignator_PUT_AttributeId(struct zx_xa_SubjectAttributeDesignator_s* x, struct zx_attr_s* y); 1718 void zx_xa_SubjectAttributeDesignator_PUT_DataType(struct zx_xa_SubjectAttributeDesignator_s* x, struct zx_attr_s* y); 1719 void zx_xa_SubjectAttributeDesignator_PUT_Issuer(struct zx_xa_SubjectAttributeDesignator_s* x, struct zx_attr_s* y); 1720 void zx_xa_SubjectAttributeDesignator_PUT_MustBePresent(struct zx_xa_SubjectAttributeDesignator_s* x, struct zx_attr_s* y); 1721 void zx_xa_SubjectAttributeDesignator_PUT_SubjectCategory(struct zx_xa_SubjectAttributeDesignator_s* x, struct zx_attr_s* y); 1722 1723 1724 1725 1726 1727 #endif 1728 /* -------------------------- xa_SubjectMatch -------------------------- */ 1729 /* refby( zx_xa_Subject_s ) */ 1730 #ifndef zx_xa_SubjectMatch_EXT 1731 #define zx_xa_SubjectMatch_EXT 1732 #endif 1733 struct zx_xa_SubjectMatch_s { 1734 ZX_ELEM_EXT 1735 zx_xa_SubjectMatch_EXT 1736 struct zx_xa_AttributeValue_s* AttributeValue; /* {1,1} nada */ 1737 struct zx_xa_SubjectAttributeDesignator_s* SubjectAttributeDesignator; /* {0,1} nada */ 1738 struct zx_xa_AttributeSelector_s* AttributeSelector; /* {0,1} nada */ 1739 struct zx_attr_s* MatchId; /* {1,1} attribute xs:anyURI */ 1740 }; 1741 1742 #define zx_NEW_xa_SubjectMatch(c, father) (struct zx_xa_SubjectMatch_s*)zx_new_elem((c),(father),zx_xa_SubjectMatch_ELEM) 1743 int zx_DEC_ATTR_xa_SubjectMatch(struct zx_ctx* c, struct zx_xa_SubjectMatch_s* x); 1744 int zx_DEC_ELEM_xa_SubjectMatch(struct zx_ctx* c, struct zx_xa_SubjectMatch_s* x); 1745 1746 #ifdef ZX_ENA_AUX 1747 struct zx_xa_SubjectMatch_s* zx_DEEP_CLONE_xa_SubjectMatch(struct zx_ctx* c, struct zx_xa_SubjectMatch_s* x, int dup_strs); 1748 void zx_DUP_STRS_xa_SubjectMatch(struct zx_ctx* c, struct zx_xa_SubjectMatch_s* x); 1749 int zx_WALK_SO_xa_SubjectMatch(struct zx_ctx* c, struct zx_xa_SubjectMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1750 int zx_WALK_WO_xa_SubjectMatch(struct zx_ctx* c, struct zx_xa_SubjectMatch_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1751 #endif 1752 1753 #ifdef ZX_ENA_GETPUT 1754 struct zx_attr_s* zx_xa_SubjectMatch_GET_MatchId(struct zx_xa_SubjectMatch_s* x); 1755 1756 struct zx_xa_AttributeValue_s* zx_xa_SubjectMatch_GET_AttributeValue(struct zx_xa_SubjectMatch_s* x, int n); 1757 struct zx_xa_SubjectAttributeDesignator_s* zx_xa_SubjectMatch_GET_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x, int n); 1758 struct zx_xa_AttributeSelector_s* zx_xa_SubjectMatch_GET_AttributeSelector(struct zx_xa_SubjectMatch_s* x, int n); 1759 1760 int zx_xa_SubjectMatch_NUM_AttributeValue(struct zx_xa_SubjectMatch_s* x); 1761 int zx_xa_SubjectMatch_NUM_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x); 1762 int zx_xa_SubjectMatch_NUM_AttributeSelector(struct zx_xa_SubjectMatch_s* x); 1763 1764 struct zx_xa_AttributeValue_s* zx_xa_SubjectMatch_POP_AttributeValue(struct zx_xa_SubjectMatch_s* x); 1765 struct zx_xa_SubjectAttributeDesignator_s* zx_xa_SubjectMatch_POP_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x); 1766 struct zx_xa_AttributeSelector_s* zx_xa_SubjectMatch_POP_AttributeSelector(struct zx_xa_SubjectMatch_s* x); 1767 1768 void zx_xa_SubjectMatch_PUSH_AttributeValue(struct zx_xa_SubjectMatch_s* x, struct zx_xa_AttributeValue_s* y); 1769 void zx_xa_SubjectMatch_PUSH_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x, struct zx_xa_SubjectAttributeDesignator_s* y); 1770 void zx_xa_SubjectMatch_PUSH_AttributeSelector(struct zx_xa_SubjectMatch_s* x, struct zx_xa_AttributeSelector_s* y); 1771 1772 void zx_xa_SubjectMatch_PUT_MatchId(struct zx_xa_SubjectMatch_s* x, struct zx_attr_s* y); 1773 1774 void zx_xa_SubjectMatch_PUT_AttributeValue(struct zx_xa_SubjectMatch_s* x, int n, struct zx_xa_AttributeValue_s* y); 1775 void zx_xa_SubjectMatch_PUT_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x, int n, struct zx_xa_SubjectAttributeDesignator_s* y); 1776 void zx_xa_SubjectMatch_PUT_AttributeSelector(struct zx_xa_SubjectMatch_s* x, int n, struct zx_xa_AttributeSelector_s* y); 1777 1778 void zx_xa_SubjectMatch_ADD_AttributeValue(struct zx_xa_SubjectMatch_s* x, int n, struct zx_xa_AttributeValue_s* z); 1779 void zx_xa_SubjectMatch_ADD_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x, int n, struct zx_xa_SubjectAttributeDesignator_s* z); 1780 void zx_xa_SubjectMatch_ADD_AttributeSelector(struct zx_xa_SubjectMatch_s* x, int n, struct zx_xa_AttributeSelector_s* z); 1781 1782 void zx_xa_SubjectMatch_DEL_AttributeValue(struct zx_xa_SubjectMatch_s* x, int n); 1783 void zx_xa_SubjectMatch_DEL_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x, int n); 1784 void zx_xa_SubjectMatch_DEL_AttributeSelector(struct zx_xa_SubjectMatch_s* x, int n); 1785 1786 void zx_xa_SubjectMatch_REV_AttributeValue(struct zx_xa_SubjectMatch_s* x); 1787 void zx_xa_SubjectMatch_REV_SubjectAttributeDesignator(struct zx_xa_SubjectMatch_s* x); 1788 void zx_xa_SubjectMatch_REV_AttributeSelector(struct zx_xa_SubjectMatch_s* x); 1789 1790 #endif 1791 /* -------------------------- xa_Subjects -------------------------- */ 1792 /* refby( zx_xa_Target_s ) */ 1793 #ifndef zx_xa_Subjects_EXT 1794 #define zx_xa_Subjects_EXT 1795 #endif 1796 struct zx_xa_Subjects_s { 1797 ZX_ELEM_EXT 1798 zx_xa_Subjects_EXT 1799 struct zx_xa_Subject_s* Subject; /* {1,-1} */ 1800 }; 1801 1802 #define zx_NEW_xa_Subjects(c, father) (struct zx_xa_Subjects_s*)zx_new_elem((c),(father),zx_xa_Subjects_ELEM) 1803 int zx_DEC_ATTR_xa_Subjects(struct zx_ctx* c, struct zx_xa_Subjects_s* x); 1804 int zx_DEC_ELEM_xa_Subjects(struct zx_ctx* c, struct zx_xa_Subjects_s* x); 1805 1806 #ifdef ZX_ENA_AUX 1807 struct zx_xa_Subjects_s* zx_DEEP_CLONE_xa_Subjects(struct zx_ctx* c, struct zx_xa_Subjects_s* x, int dup_strs); 1808 void zx_DUP_STRS_xa_Subjects(struct zx_ctx* c, struct zx_xa_Subjects_s* x); 1809 int zx_WALK_SO_xa_Subjects(struct zx_ctx* c, struct zx_xa_Subjects_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1810 int zx_WALK_WO_xa_Subjects(struct zx_ctx* c, struct zx_xa_Subjects_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1811 #endif 1812 1813 #ifdef ZX_ENA_GETPUT 1814 1815 struct zx_xa_Subject_s* zx_xa_Subjects_GET_Subject(struct zx_xa_Subjects_s* x, int n); 1816 1817 int zx_xa_Subjects_NUM_Subject(struct zx_xa_Subjects_s* x); 1818 1819 struct zx_xa_Subject_s* zx_xa_Subjects_POP_Subject(struct zx_xa_Subjects_s* x); 1820 1821 void zx_xa_Subjects_PUSH_Subject(struct zx_xa_Subjects_s* x, struct zx_xa_Subject_s* y); 1822 1823 1824 void zx_xa_Subjects_PUT_Subject(struct zx_xa_Subjects_s* x, int n, struct zx_xa_Subject_s* y); 1825 1826 void zx_xa_Subjects_ADD_Subject(struct zx_xa_Subjects_s* x, int n, struct zx_xa_Subject_s* z); 1827 1828 void zx_xa_Subjects_DEL_Subject(struct zx_xa_Subjects_s* x, int n); 1829 1830 void zx_xa_Subjects_REV_Subject(struct zx_xa_Subjects_s* x); 1831 1832 #endif 1833 /* -------------------------- xa_Target -------------------------- */ 1834 /* refby( zx_xa_Policy_s zx_xa_Rule_s zx_xa_PolicySet_s zx_xasp_XACMLPolicyQuery_s zx_xaspcd1_XACMLPolicyQuery_s ) */ 1835 #ifndef zx_xa_Target_EXT 1836 #define zx_xa_Target_EXT 1837 #endif 1838 struct zx_xa_Target_s { 1839 ZX_ELEM_EXT 1840 zx_xa_Target_EXT 1841 struct zx_xa_Subjects_s* Subjects; /* {0,1} */ 1842 struct zx_xa_Resources_s* Resources; /* {0,1} */ 1843 struct zx_xa_Actions_s* Actions; /* {0,1} */ 1844 struct zx_xa_Environments_s* Environments; /* {0,1} */ 1845 }; 1846 1847 #define zx_NEW_xa_Target(c, father) (struct zx_xa_Target_s*)zx_new_elem((c),(father),zx_xa_Target_ELEM) 1848 int zx_DEC_ATTR_xa_Target(struct zx_ctx* c, struct zx_xa_Target_s* x); 1849 int zx_DEC_ELEM_xa_Target(struct zx_ctx* c, struct zx_xa_Target_s* x); 1850 1851 #ifdef ZX_ENA_AUX 1852 struct zx_xa_Target_s* zx_DEEP_CLONE_xa_Target(struct zx_ctx* c, struct zx_xa_Target_s* x, int dup_strs); 1853 void zx_DUP_STRS_xa_Target(struct zx_ctx* c, struct zx_xa_Target_s* x); 1854 int zx_WALK_SO_xa_Target(struct zx_ctx* c, struct zx_xa_Target_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1855 int zx_WALK_WO_xa_Target(struct zx_ctx* c, struct zx_xa_Target_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1856 #endif 1857 1858 #ifdef ZX_ENA_GETPUT 1859 1860 struct zx_xa_Subjects_s* zx_xa_Target_GET_Subjects(struct zx_xa_Target_s* x, int n); 1861 struct zx_xa_Resources_s* zx_xa_Target_GET_Resources(struct zx_xa_Target_s* x, int n); 1862 struct zx_xa_Actions_s* zx_xa_Target_GET_Actions(struct zx_xa_Target_s* x, int n); 1863 struct zx_xa_Environments_s* zx_xa_Target_GET_Environments(struct zx_xa_Target_s* x, int n); 1864 1865 int zx_xa_Target_NUM_Subjects(struct zx_xa_Target_s* x); 1866 int zx_xa_Target_NUM_Resources(struct zx_xa_Target_s* x); 1867 int zx_xa_Target_NUM_Actions(struct zx_xa_Target_s* x); 1868 int zx_xa_Target_NUM_Environments(struct zx_xa_Target_s* x); 1869 1870 struct zx_xa_Subjects_s* zx_xa_Target_POP_Subjects(struct zx_xa_Target_s* x); 1871 struct zx_xa_Resources_s* zx_xa_Target_POP_Resources(struct zx_xa_Target_s* x); 1872 struct zx_xa_Actions_s* zx_xa_Target_POP_Actions(struct zx_xa_Target_s* x); 1873 struct zx_xa_Environments_s* zx_xa_Target_POP_Environments(struct zx_xa_Target_s* x); 1874 1875 void zx_xa_Target_PUSH_Subjects(struct zx_xa_Target_s* x, struct zx_xa_Subjects_s* y); 1876 void zx_xa_Target_PUSH_Resources(struct zx_xa_Target_s* x, struct zx_xa_Resources_s* y); 1877 void zx_xa_Target_PUSH_Actions(struct zx_xa_Target_s* x, struct zx_xa_Actions_s* y); 1878 void zx_xa_Target_PUSH_Environments(struct zx_xa_Target_s* x, struct zx_xa_Environments_s* y); 1879 1880 1881 void zx_xa_Target_PUT_Subjects(struct zx_xa_Target_s* x, int n, struct zx_xa_Subjects_s* y); 1882 void zx_xa_Target_PUT_Resources(struct zx_xa_Target_s* x, int n, struct zx_xa_Resources_s* y); 1883 void zx_xa_Target_PUT_Actions(struct zx_xa_Target_s* x, int n, struct zx_xa_Actions_s* y); 1884 void zx_xa_Target_PUT_Environments(struct zx_xa_Target_s* x, int n, struct zx_xa_Environments_s* y); 1885 1886 void zx_xa_Target_ADD_Subjects(struct zx_xa_Target_s* x, int n, struct zx_xa_Subjects_s* z); 1887 void zx_xa_Target_ADD_Resources(struct zx_xa_Target_s* x, int n, struct zx_xa_Resources_s* z); 1888 void zx_xa_Target_ADD_Actions(struct zx_xa_Target_s* x, int n, struct zx_xa_Actions_s* z); 1889 void zx_xa_Target_ADD_Environments(struct zx_xa_Target_s* x, int n, struct zx_xa_Environments_s* z); 1890 1891 void zx_xa_Target_DEL_Subjects(struct zx_xa_Target_s* x, int n); 1892 void zx_xa_Target_DEL_Resources(struct zx_xa_Target_s* x, int n); 1893 void zx_xa_Target_DEL_Actions(struct zx_xa_Target_s* x, int n); 1894 void zx_xa_Target_DEL_Environments(struct zx_xa_Target_s* x, int n); 1895 1896 void zx_xa_Target_REV_Subjects(struct zx_xa_Target_s* x); 1897 void zx_xa_Target_REV_Resources(struct zx_xa_Target_s* x); 1898 void zx_xa_Target_REV_Actions(struct zx_xa_Target_s* x); 1899 void zx_xa_Target_REV_Environments(struct zx_xa_Target_s* x); 1900 1901 #endif 1902 /* -------------------------- xa_VariableDefinition -------------------------- */ 1903 /* refby( zx_xa_Policy_s ) */ 1904 #ifndef zx_xa_VariableDefinition_EXT 1905 #define zx_xa_VariableDefinition_EXT 1906 #endif 1907 struct zx_xa_VariableDefinition_s { 1908 ZX_ELEM_EXT 1909 zx_xa_VariableDefinition_EXT 1910 struct zx_elem_s* Expression; /* {1,1} xa:ExpressionType */ 1911 struct zx_attr_s* VariableId; /* {1,1} attribute xs:string */ 1912 }; 1913 1914 #define zx_NEW_xa_VariableDefinition(c, father) (struct zx_xa_VariableDefinition_s*)zx_new_elem((c),(father),zx_xa_VariableDefinition_ELEM) 1915 int zx_DEC_ATTR_xa_VariableDefinition(struct zx_ctx* c, struct zx_xa_VariableDefinition_s* x); 1916 int zx_DEC_ELEM_xa_VariableDefinition(struct zx_ctx* c, struct zx_xa_VariableDefinition_s* x); 1917 1918 #ifdef ZX_ENA_AUX 1919 struct zx_xa_VariableDefinition_s* zx_DEEP_CLONE_xa_VariableDefinition(struct zx_ctx* c, struct zx_xa_VariableDefinition_s* x, int dup_strs); 1920 void zx_DUP_STRS_xa_VariableDefinition(struct zx_ctx* c, struct zx_xa_VariableDefinition_s* x); 1921 int zx_WALK_SO_xa_VariableDefinition(struct zx_ctx* c, struct zx_xa_VariableDefinition_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1922 int zx_WALK_WO_xa_VariableDefinition(struct zx_ctx* c, struct zx_xa_VariableDefinition_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1923 #endif 1924 1925 #ifdef ZX_ENA_GETPUT 1926 struct zx_attr_s* zx_xa_VariableDefinition_GET_VariableId(struct zx_xa_VariableDefinition_s* x); 1927 1928 struct zx_elem_s* zx_xa_VariableDefinition_GET_Expression(struct zx_xa_VariableDefinition_s* x, int n); 1929 1930 int zx_xa_VariableDefinition_NUM_Expression(struct zx_xa_VariableDefinition_s* x); 1931 1932 struct zx_elem_s* zx_xa_VariableDefinition_POP_Expression(struct zx_xa_VariableDefinition_s* x); 1933 1934 void zx_xa_VariableDefinition_PUSH_Expression(struct zx_xa_VariableDefinition_s* x, struct zx_elem_s* y); 1935 1936 void zx_xa_VariableDefinition_PUT_VariableId(struct zx_xa_VariableDefinition_s* x, struct zx_attr_s* y); 1937 1938 void zx_xa_VariableDefinition_PUT_Expression(struct zx_xa_VariableDefinition_s* x, int n, struct zx_elem_s* y); 1939 1940 void zx_xa_VariableDefinition_ADD_Expression(struct zx_xa_VariableDefinition_s* x, int n, struct zx_elem_s* z); 1941 1942 void zx_xa_VariableDefinition_DEL_Expression(struct zx_xa_VariableDefinition_s* x,int n); 1943 1944 void zx_xa_VariableDefinition_REV_Expression(struct zx_xa_VariableDefinition_s* x); 1945 1946 #endif 1947 /* -------------------------- xa_VariableReference -------------------------- */ 1948 /* refby( ) */ 1949 #ifndef zx_xa_VariableReference_EXT 1950 #define zx_xa_VariableReference_EXT 1951 #endif 1952 struct zx_xa_VariableReference_s { 1953 ZX_ELEM_EXT 1954 zx_xa_VariableReference_EXT 1955 struct zx_attr_s* VariableId; /* {1,1} attribute xs:string */ 1956 }; 1957 1958 #define zx_NEW_xa_VariableReference(c, father) (struct zx_xa_VariableReference_s*)zx_new_elem((c),(father),zx_xa_VariableReference_ELEM) 1959 int zx_DEC_ATTR_xa_VariableReference(struct zx_ctx* c, struct zx_xa_VariableReference_s* x); 1960 int zx_DEC_ELEM_xa_VariableReference(struct zx_ctx* c, struct zx_xa_VariableReference_s* x); 1961 1962 #ifdef ZX_ENA_AUX 1963 struct zx_xa_VariableReference_s* zx_DEEP_CLONE_xa_VariableReference(struct zx_ctx* c, struct zx_xa_VariableReference_s* x, int dup_strs); 1964 void zx_DUP_STRS_xa_VariableReference(struct zx_ctx* c, struct zx_xa_VariableReference_s* x); 1965 int zx_WALK_SO_xa_VariableReference(struct zx_ctx* c, struct zx_xa_VariableReference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1966 int zx_WALK_WO_xa_VariableReference(struct zx_ctx* c, struct zx_xa_VariableReference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1967 #endif 1968 1969 #ifdef ZX_ENA_GETPUT 1970 struct zx_attr_s* zx_xa_VariableReference_GET_VariableId(struct zx_xa_VariableReference_s* x); 1971 1972 1973 1974 1975 1976 void zx_xa_VariableReference_PUT_VariableId(struct zx_xa_VariableReference_s* x, struct zx_attr_s* y); 1977 1978 1979 1980 1981 1982 #endif 1983 1984 #endif 1985