blob: 75b68f5a8338f495aad4f03660c5ba477bb58c7a [file] [log] [blame]
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed 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 AXIS2_WSDL4C_CONSTRAINT_H
#define AXIS2_WSDL4C_CONSTRAINT_H
/**
* @file axis2_wsdl4c_constraint.h
* @brief defines WSDL4C_CONSTRAINT constants
*/
#include <axis2_array_list.h>
#include <axis2_allocator.h>
#include <axis2_env.h>
#include <axis2_error.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* @defgroup axis2 wsdl4c_constraint constants
* @ingroup axis2_wsdl4c_constraint
* @{
*/
enum axis2_wsdl4c_constraints
{
Key,
Keyref,
Unique
};
typedef enum axis2_wsdl4c_constraints axis2_wsdl4c_constraints_t;
void *
axis2_wsdl4c_constraint_create(axis2_wsdl4c_constraints_t constraints);
const char *
axis2_wsdl4c_constraint_get_name(void *constraint);
void
axis2_wsdl4c_constraint_set_name(void *constraint,
char *name);
/*axis2_wsdl4c_constraints_t *
axis2_wsdl4c_constraint_get_constraint_type(void *constraint);
*/
void
axis2_wsdl4c_constraint_set_selector(void *constraint,
char *xpath);
void
axis2_wsdl4c_constraint_add_field(void *constraint,
char *xpath);
const char *
axis2_wsdl4c_constraint_selector(void *constraint);
axis2_array_list_t *
axis2_wsdl4c_constraint_fields(void *constraint);
void
axis2_wsdl4c_constraint_set_annotation(void *constraint,
char *s);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* AXIS2_WSDL4C_CONSTRAINT_H */