xml_schema_constants.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_CONSTANTS_H
00019 #define XML_SCHEMA_CONSTANTS_H
00020 
00026 #include <axis2_utils.h>
00027 #include <axis2_hash.h>
00028 #include <xml_schema_defines.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C" 
00032 {
00033 #endif
00034     
00039 /*********************************** Constansts********************************/
00040 #define XML_SCHEMANS_URI "http://www.w3.org/XML/1998/namespace"
00041 
00042 #define XML_SCHEMANS_PREFIX "xml"
00043 
00044 /*
00045  * Schema Namespaces
00046  */
00047 #define AXIS2_URI_2001_SCHEMA_XSD "http://www.w3.org/2001/XMLSchema"
00048 #define AXIS2_URI_2001_SCHEMA_XSI "http://www.w3.org/2001/XMLSchema-instance"
00049 
00050 /* Define qnames for the all of the XSD and SOAP-ENC encodings */
00051 #define XML_SCHEMA_XSD_STRING     "string"
00052 #define XML_SCHEMA_XSD_BOOLEAN    "boolean"
00053 #define XML_SCHEMA_XSD_DOUBLE     "double"
00054 #define XML_SCHEMA_XSD_FLOAT      "float"
00055 #define XML_SCHEMA_XSD_INT        "int"
00056 #define XML_SCHEMA_XSD_INTEGER    "integer"
00057 #define XML_SCHEMA_XSD_LONG       "long"
00058 #define XML_SCHEMA_XSD_SHORT      "short"
00059 #define XML_SCHEMA_XSD_BYTE       "byte"
00060 #define XML_SCHEMA_XSD_DECIMAL    "decimal"
00061 #define XML_SCHEMA_XSD_BASE64     "base64Binary"
00062 #define XML_SCHEMA_XSD_HEXBIN     "hexBinary"
00063 #define XML_SCHEMA_XSD_ANYSIMPLETYPE "anySimpleType"
00064 #define XML_SCHEMA_XSD_ANYTYPE    "anyType"
00065 #define XML_SCHEMA_XSD_ANY        "any"
00066 #define XML_SCHEMA_XSD_QNAME      "QName"
00067 #define XML_SCHEMA_XSD_DATETIME   "dateTime"
00068 #define XML_SCHEMA_XSD_DATE       "date"
00069 #define XML_SCHEMA_XSD_TIME       "time"
00070 
00071 #define XML_SCHEMA_XSD_NORMALIZEDSTRING "normalizedString"
00072 #define XML_SCHEMA_XSD_TOKEN          "token"
00073 
00074 #define XML_SCHEMA_XSD_UNSIGNEDLONG       "unsignedLong"
00075 #define XML_SCHEMA_XSD_UNSIGNEDINT        "unsignedInt"
00076 #define XML_SCHEMA_XSD_UNSIGNEDSHORT      "unsignedShort"
00077 #define XML_SCHEMA_XSD_UNSIGNEDBYTE       "unsignedByte"
00078 #define XML_SCHEMA_XSD_POSITIVEINTEGER    "positiveInteger"
00079 #define XML_SCHEMA_XSD_NEGATIVEINTEGER    "negativeInteger"
00080 #define XML_SCHEMA_XSD_NONNEGATIVEINTEGER "nonNegativeInteger"
00081 #define XML_SCHEMA_XSD_NONPOSITIVEINTEGER "nonPositiveInteger"
00082 
00083 #define XML_SCHEMA_XSD_YEARMONTH          "gYearMonth"
00084 #define XML_SCHEMA_XSD_MONTHDAY           "gMonthDay"
00085 #define XML_SCHEMA_XSD_YEAR               "gYear"
00086 #define XML_SCHEMA_XSD_MONTH              "gMonth"
00087 #define XML_SCHEMA_XSD_DAY                "gDay"
00088 #define XML_SCHEMA_XSD_DURATION           "duration"
00089 
00090 #define XML_SCHEMA_XSD_NAME               "Name"
00091 #define XML_SCHEMA_XSD_NCNAME             "NCName"
00092 #define XML_SCHEMA_XSD_NMTOKEN            "NMTOKEN"
00093 #define XML_SCHEMA_XSD_NMTOKENS           "NMTOKENS"
00094 #define XML_SCHEMA_XSD_NOTATION           "NOTATION"
00095 #define XML_SCHEMA_XSD_ENTITY             "ENTITY"
00096 #define XML_SCHEMA_XSD_ENTITIES           "ENTITIES"
00097 #define XML_SCHEMA_XSD_IDREF              "IDREF"
00098 #define XML_SCHEMA_XSD_IDREFS             "IDREFS"
00099 #define XML_SCHEMA_XSD_ANYURI             "anyURI"
00100 #define XML_SCHEMA_XSD_LANGUAGE           "language"
00101 #define XML_SCHEMA_XSD_ID                 "ID"
00102 #define XML_SCHEMA_XSD_SCHEMA             "schema"
00103 
00104 
00105 typedef axis2_hash_t* (AXIS2_CALL *XML_SCHEMA_SUPER_OBJS_FN)(void *obj,
00106                                     const axis2_env_t *env);
00107                                     
00108 typedef xml_schema_types_t (AXIS2_CALL *XML_SCHEMA_GET_TYPE_FN)(void *obj, const axis2_env_t *env);
00109 
00110 typedef int (AXIS2_CALL *XML_SCHEMA_FREE_FN)(void *obj, const axis2_env_t *env);                                   
00111 
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 
00116 #endif /* XML_SCHEMA_CONSTANTS_H */

Generated on Wed Dec 20 20:34:51 2006 for Axis2/C by  doxygen 1.5.1