xml_schema_severity_type.h

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 XML_SCHEMA_SEREVITY_TYPE_H
00019 #define XML_SCHEMA_SEREVITY_TYPE_H
00020 
00029 #include <xml_schema_enum.h>
00030 
00036 typedef struct xml_schema_severity_type
00037                     xml_schema_severity_type_t;
00038 typedef struct xml_schema_severity_type_ops 
00039                     xml_schema_severity_type_ops_t;
00040 
00041 #define XML_SCHEMA_ERROR "error"
00042 #define XML_SCHEMA_WARNING "warning"
00043 
00044 #ifdef __cplusplus
00045 extern "C"
00046 {
00047 #endif
00048 
00049 struct xml_schema_severity_type_ops
00050 {
00055     axis2_status_t (AXIS2_CALL *
00056     free) (void *sevetiry,
00057             const axis2_env_t *env);
00058 
00059     xml_schema_enum_t *(AXIS2_CALL *
00060     get_base_impl) (void *severity,
00061                     const axis2_env_t *env);
00062     
00063     axis2_array_list_t *(AXIS2_CALL *
00064     get_values)(void *severity,
00065                 const axis2_env_t *env);
00066                 
00067     axis2_hash_t* (AXIS2_CALL *
00068     super_objs)(void *severity,
00069                 const axis2_env_t *env);
00070                 
00071     xml_schema_types_t (AXIS2_CALL*
00072     get_type)(void *severity,
00073           const axis2_env_t *env);                              
00074     
00075 };
00076 
00077 struct xml_schema_severity_type
00078 {
00079     xml_schema_enum_t base;
00080     xml_schema_severity_type_ops_t *ops;
00081 };
00082 
00083 AXIS2_EXTERN xml_schema_severity_type_t * AXIS2_CALL
00084 axis2_xml_severity_type_create(const axis2_env_t *env,
00085                                     axis2_char_t* value);
00086 
00087 /***************************** Macros ******************************************/
00088 
00089 #define XML_SCHEMA_SEREVITY_TYPE_FREE(severity, env) \
00090       (((xml_schema_severity_type_t *) severity)->ops->free(severity, env))
00091 
00092 #define XML_SCHEMA_SEREVITY_TYPE_GET_BASE_IMPL(severity, env) \
00093       (((xml_schema_severity_type_t *) severity)->ops->get_base_impl(severity, env))
00094 
00095 #define XML_SCHEMA_SEREVITY_TYPE_GET_VALUES(severity, env) \
00096       (((xml_schema_severity_type_t *) severity)->ops->values(severity, env))
00097 
00098 #define XML_SCHEMA_SEREVITY_TYPE_GET_TYPE(severity, env) \
00099       (((xml_schema_severity_type_t *) severity)->ops->get_type(severity, env))
00100 
00101 #define XML_SCHEMA_SEREVITY_TYPE_SUPER_OBJS(severity, env) \
00102       (((xml_schema_severity_type_t *) severity)->ops->super_objs(severity, env))
00103 
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108 #endif /* XML_SCHEMA_SEREVITY_TYPE_H */

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