axis2_wsdl4c_constraint.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017  
00018  #ifndef AXIS2_WSDL4C_CONSTRAINT_H
00019  #define AXIS2_WSDL4C_CONSTRAINT_H
00020  
00025 #include <axis2_array_list.h>
00026 #include <axis2_allocator.h>
00027 #include <axis2_env.h>
00028 #include <axis2_error.h>
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033 
00039     enum axis2_wsdl4c_constraints
00040     {
00041         AXIS2_WSDL4C_KEY,
00042         AXIS2_WSLD4C_KEYREF,
00043         AXIS2_WSDL4C_UNIQUE
00044     };
00045    
00046     typedef enum axis2_wsdl4c_constraints axis2_wsdl4c_constraints_t;
00047 
00048     void *
00049     axis2_wsdl4c_constraint_create(axis2_wsdl4c_constraints_t constraints);
00050 
00051     char *
00052     axis2_wsdl4c_constraint_get_name(void *constraint);
00053 
00054     void
00055     axis2_wsdl4c_constraint_set_name(void *constraint, 
00056                                         char *name);
00057 
00063     void
00064     axis2_wsdl4c_constraint_set_selector(void *constraint, 
00065                                             char *xpath); 
00066 
00067     void
00068     axis2_wsdl4c_constraint_add_field(void *constraint, 
00069                                         char *xpath);
00070 
00071     char *
00072     axis2_wsdl4c_constraint_selector(void *constraint); 
00073 
00074 
00075     axis2_array_list_t *
00076     axis2_wsdl4c_constraint_fields(void *constraint);
00077 
00078 
00079     void
00080     axis2_wsdl4c_constraint_set_annotation(void *constraint, 
00081                                             char *s);
00082  
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 #endif  /* AXIS2_WSDL4C_CONSTRAINT_H */

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1