blob: 6c743b61ba77154099394e5261cc5f0901d97300 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef WODEN_INTERFACE_FAULT_REF_ELEMENT_H
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_H
/**
* @file woden_fault_ref_element.h
* @brief Axis2 Interface Fault Reference Element Interface
* This interface represents the <infault> and <outfault>
* child elements of a WSDL interface <operation> or
* binding <operation>.
*/
#include <axis2_allocator.h>
#include <axis2_env.h>
#include <axis2_error.h>
#include <axis2_string.h>
#include <axis2_utils.h>
#include <axis2_hash.h>
#include <axis2_qname.h>
#include <axis2_uri.h>
#include <axis2_array_list.h>
#include <woden.h>
#include <woden_documentable_element.h>
#include <woden_configurable_element.h>
#include <woden_nested_element.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct woden_fault_ref_element woden_fault_ref_element_t;
typedef struct woden_fault_ref_element_ops woden_fault_ref_element_ops_t;
typedef union woden_fault_ref_element_base woden_fault_ref_element_base_t;
/** @defgroup woden_fault_ref_element Interface Fault Reference Element
* @ingroup axis2_interface
* @{
*/
struct woden_fault_ref_element_ops
{
/**
* Deallocate memory
* @return status code
*/
axis2_status_t (AXIS2_CALL *
free) (
void *fault_ref_element,
const axis2_env_t *env);
axis2_status_t (AXIS2_CALL *
to_fault_ref_element_free) (
void *fault_ref_element,
const axis2_env_t *env);
axis2_hash_t *(AXIS2_CALL *
super_objs) (
void *fault_ref_element,
const axis2_env_t *env);
woden_obj_types_t (AXIS2_CALL *
type) (
void *fault_ref_element,
const axis2_env_t *env);
axis2_status_t (AXIS2_CALL *
set_ref) (
void *iface_fault_ele,
const axis2_env_t *env,
axis2_qname_t *fault_qname);
axis2_qname_t *(AXIS2_CALL *
get_ref) (
void *iface_fault_ele,
const axis2_env_t *env);
axis2_status_t (AXIS2_CALL *
set_msg_label) (
void *iface_fault_ele,
const axis2_env_t *env,
void *msg_label);
void *(AXIS2_CALL *
get_msg_label) (
void *iface_fault_ele,
const axis2_env_t *env);
axis2_status_t (AXIS2_CALL *
set_direction) (
void *iface_fault_ele,
const axis2_env_t *env,
void *dir);
void *(AXIS2_CALL *
get_direction) (
void *iface_fault_ele,
const axis2_env_t *env);
};
union woden_fault_ref_element_base
{
woden_documentable_element_t documentable_element;
woden_configurable_element_t configurable_element;
woden_nested_element_t nested_element;
};
struct woden_fault_ref_element
{
woden_fault_ref_element_base_t base;
woden_fault_ref_element_ops_t *ops;
};
AXIS2_EXTERN woden_fault_ref_element_t * AXIS2_CALL
woden_fault_ref_element_create(
const axis2_env_t *env);
/************************Woden C Internal Methods******************************/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
woden_fault_ref_element_resolve_methods(
woden_fault_ref_element_t *fault_ref_element,
const axis2_env_t *env,
axis2_hash_t *methods);
/************************End of Woden C Internal Methods***********************/
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_FREE(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
free (fault_ref_element, env))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_TO_INTERFACE_FAULT_REF_ELEMENT_FREE(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
to_fault_ref_element_free (fault_ref_element, env))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_SUPER_OBJS(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
super_objs (fault_ref_element, env))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_TYPE(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
type (fault_ref_element, env))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_SET_REF(fault_ref_element, env, fault_qname) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
set_ref (fault_ref_element, env, fault_qname))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_GET_REF(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
get_ref (fault_ref_element, env))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_SET_MSG_LABEL(fault_ref_element, env, msg_label) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
set_msg_label (fault_ref_element, env, msg_label))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_GET_MSG_LABEL(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
get_msg_label (fault_ref_element, env))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_SET_DIRECTION(fault_ref_element, env, dir) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
set_direction (fault_ref_element, env, dir))
#define WODEN_INTERFACE_FAULT_REF_ELEMENT_GET_DIRECTION(fault_ref_element, env) \
(((woden_fault_ref_element_t *) fault_ref_element)->ops->\
get_direction (fault_ref_element, env))
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* WODEN_INTERFACE_FAULT_REF_ELEMENT_H */