xml_schema_constants.h

00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016  
00017 #ifndef XML_SCHEMA_CONSTANTS_H
00018 #define XML_SCHEMA_CONSTANTS_H
00019 
00025 #include <axis2_utils.h>
00026 #include <axis2_hash.h>
00027 #include <xml_schema_defines.h>
00028 
00029 #ifdef __cplusplus
00030 extern "C" 
00031 {
00032 #endif
00033     
00038 /*********************************** Constansts********************************/
00039 #define XML_SCHEMANS_URI "http://www.w3.org/XML/1998/namespace"
00040 
00041 #define XML_SCHEMANS_PREFIX "xml"
00042 
00043 /*
00044  * Schema Namespaces
00045  */
00046 #define AXIS2_URI_2001_SCHEMA_XSD "http://www.w3.org/2001/XMLSchema"
00047 #define AXIS2_URI_2001_SCHEMA_XSI "http://www.w3.org/2001/XMLSchema-instance"
00048 
00049 /* Define qnames for the all of the XSD and SOAP-ENC encodings */
00050 #define XML_SCHEMA_XSD_STRING     "string"
00051 #define XML_SCHEMA_XSD_BOOLEAN    "boolean"
00052 #define XML_SCHEMA_XSD_DOUBLE     "double"
00053 #define XML_SCHEMA_XSD_FLOAT      "float"
00054 #define XML_SCHEMA_XSD_INT        "int"
00055 #define XML_SCHEMA_XSD_INTEGER    "integer"
00056 #define XML_SCHEMA_XSD_LONG       "long"
00057 #define XML_SCHEMA_XSD_SHORT      "short"
00058 #define XML_SCHEMA_XSD_BYTE       "byte"
00059 #define XML_SCHEMA_XSD_DECIMAL    "decimal"
00060 #define XML_SCHEMA_XSD_BASE64     "base64Binary"
00061 #define XML_SCHEMA_XSD_HEXBIN     "hexBinary"
00062 #define XML_SCHEMA_XSD_ANYSIMPLETYPE "anySimpleType"
00063 #define XML_SCHEMA_XSD_ANYTYPE    "anyType"
00064 #define XML_SCHEMA_XSD_ANY        "any"
00065 #define XML_SCHEMA_XSD_QNAME      "QName"
00066 #define XML_SCHEMA_XSD_DATETIME   "dateTime"
00067 #define XML_SCHEMA_XSD_DATE       "date"
00068 #define XML_SCHEMA_XSD_TIME       "time"
00069 
00070 #define XML_SCHEMA_XSD_NORMALIZEDSTRING "normalizedString"
00071 #define XML_SCHEMA_XSD_TOKEN          "token"
00072 
00073 #define XML_SCHEMA_XSD_UNSIGNEDLONG       "unsignedLong"
00074 #define XML_SCHEMA_XSD_UNSIGNEDINT        "unsignedInt"
00075 #define XML_SCHEMA_XSD_UNSIGNEDSHORT      "unsignedShort"
00076 #define XML_SCHEMA_XSD_UNSIGNEDBYTE       "unsignedByte"
00077 #define XML_SCHEMA_XSD_POSITIVEINTEGER    "positiveInteger"
00078 #define XML_SCHEMA_XSD_NEGATIVEINTEGER    "negativeInteger"
00079 #define XML_SCHEMA_XSD_NONNEGATIVEINTEGER "nonNegativeInteger"
00080 #define XML_SCHEMA_XSD_NONPOSITIVEINTEGER "nonPositiveInteger"
00081 
00082 #define XML_SCHEMA_XSD_YEARMONTH          "gYearMonth"
00083 #define XML_SCHEMA_XSD_MONTHDAY           "gMonthDay"
00084 #define XML_SCHEMA_XSD_YEAR               "gYear"
00085 #define XML_SCHEMA_XSD_MONTH              "gMonth"
00086 #define XML_SCHEMA_XSD_DAY                "gDay"
00087 #define XML_SCHEMA_XSD_DURATION           "duration"
00088 
00089 #define XML_SCHEMA_XSD_NAME               "Name"
00090 #define XML_SCHEMA_XSD_NCNAME             "NCName"
00091 #define XML_SCHEMA_XSD_NMTOKEN            "NMTOKEN"
00092 #define XML_SCHEMA_XSD_NMTOKENS           "NMTOKENS"
00093 #define XML_SCHEMA_XSD_NOTATION           "NOTATION"
00094 #define XML_SCHEMA_XSD_ENTITY             "ENTITY"
00095 #define XML_SCHEMA_XSD_ENTITIES           "ENTITIES"
00096 #define XML_SCHEMA_XSD_IDREF              "IDREF"
00097 #define XML_SCHEMA_XSD_IDREFS             "IDREFS"
00098 #define XML_SCHEMA_XSD_ANYURI             "anyURI"
00099 #define XML_SCHEMA_XSD_LANGUAGE           "language"
00100 #define XML_SCHEMA_XSD_ID                 "ID"
00101 #define XML_SCHEMA_XSD_SCHEMA             "schema"
00102 
00103 
00104 typedef axis2_hash_t* (AXIS2_CALL *XML_SCHEMA_SUPER_OBJS_FN)(void *obj,
00105                                     const axis2_env_t *env);
00106                                     
00107 typedef xml_schema_types_t (AXIS2_CALL *XML_SCHEMA_GET_TYPE_FN)(void *obj, const axis2_env_t *env);
00108 
00109 typedef int (AXIS2_CALL *XML_SCHEMA_FREE_FN)(void *obj, const axis2_env_t *env);                                   
00110 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 
00115 #endif /* XML_SCHEMA_CONSTANTS_H */

Generated on Tue Oct 3 22:35:49 2006 for Axis2/C by  doxygen 1.4.7