00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070 #if !defined(XSCONSTANTS_HPP)
00071 #define XSCONSTANTS_HPP
00072
00073 #include <xercesc/util/RefVectorOf.hpp>
00074 #include <xercesc/util/RefArrayVectorOf.hpp>
00075
00076 XERCES_CPP_NAMESPACE_BEGIN
00077
00082
00083 class XSAnnotation;
00084 class XSAttributeUse;
00085 class XSFacet;
00086 class XSMultiValueFacet;
00087 class XSNamespaceItem;
00088 class XSParticle;
00089 class XSSimpleTypeDefinition;
00090
00091
00092
00093
00094
00095 typedef RefVectorOf <XSAnnotation> XSAnnotationList;
00096 typedef RefVectorOf <XSAttributeUse> XSAttributeUseList;
00097 typedef RefVectorOf <XSFacet> XSFacetList;
00098 typedef RefVectorOf <XSMultiValueFacet> XSMultiValueFacetList;
00099 typedef RefVectorOf <XSNamespaceItem> XSNamespaceItemList;
00100 typedef RefVectorOf <XSParticle> XSParticleList;
00101 typedef RefVectorOf <XSSimpleTypeDefinition> XSSimpleTypeDefinitionList;
00102 typedef RefArrayVectorOf <XMLCh> StringList;
00103
00104 class XSConstants
00105 {
00106 public:
00107
00108
00109 enum COMPONENT_TYPE {
00113 ATTRIBUTE_DECLARATION = 1,
00117 ELEMENT_DECLARATION = 2,
00121 TYPE_DEFINITION = 3,
00125 ATTRIBUTE_USE = 4,
00129 ATTRIBUTE_GROUP_DEFINITION= 5,
00133 MODEL_GROUP_DEFINITION = 6,
00137 MODEL_GROUP = 7,
00141 PARTICLE = 8,
00145 WILDCARD = 9,
00149 IDENTITY_CONSTRAINT = 10,
00153 NOTATION_DECLARATION = 11,
00157 ANNOTATION = 12,
00161 FACET = 13,
00162
00166 MULTIVALUE_FACET = 14
00167 };
00168
00169
00170 enum DERIVATION_TYPE {
00174 DERIVATION_NONE = 0,
00179 DERIVATION_EXTENSION = 1,
00184 DERIVATION_RESTRICTION = 2,
00188 DERIVATION_SUBSTITUTION = 4,
00192 DERIVATION_UNION = 8,
00196 DERIVATION_LIST = 16
00197 };
00198
00199
00200 enum SCOPE {
00207 SCOPE_ABSENT = 0,
00211 SCOPE_GLOBAL = 1,
00216 SCOPE_LOCAL = 2
00217 };
00218
00219
00220 enum VALUE_CONSTRAINT {
00224 VC_NONE = 0,
00228 VC_DEFAULT = 1,
00232 VC_FIXED = 2
00233 };
00234
00235 private:
00236
00237
00238
00239 XSConstants();
00240 };
00241
00242 XERCES_CPP_NAMESPACE_END
00243
00244 #endif