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
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115 #if !defined(CONTENTMODEL_HPP)
00116 #define CONTENTMODEL_HPP
00117
00118 #include <xercesc/util/XercesDefs.hpp>
00119 #include <xercesc/util/RefVectorOf.hpp>
00120 #include <xercesc/util/QName.hpp>
00121
00122 XERCES_CPP_NAMESPACE_BEGIN
00123
00124 class ContentLeafNameTypeVector;
00125 class GrammarResolver;
00126 class XMLStringPool;
00127 class XMLValidator;
00128 class SchemaGrammar;
00129
00139 class XMLContentModel
00140 {
00141 public:
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157 static const unsigned int gInvalidTrans;
00158 static const unsigned int gEOCFakeId;
00159 static const unsigned int gEpsilonFakeId;
00160
00161
00162
00163
00166 virtual ~XMLContentModel()
00167 {
00168 }
00170
00171
00172
00173
00174
00175 virtual int validateContent
00176 (
00177 QName** const children
00178 , const unsigned int childCount
00179 , const unsigned int emptyNamespaceId
00180 ) const = 0;
00181
00182 virtual int validateContentSpecial
00183 (
00184 QName** const children
00185 , const unsigned int childCount
00186 , const unsigned int emptyNamespaceId
00187 , GrammarResolver* const pGrammarResolver
00188 , XMLStringPool* const pStringPool
00189 ) const =0;
00190
00191 virtual void checkUniqueParticleAttribution
00192 (
00193 SchemaGrammar* const pGrammar
00194 , GrammarResolver* const pGrammarResolver
00195 , XMLStringPool* const pStringPool
00196 , XMLValidator* const pValidator
00197 , unsigned int* const pContentSpecOrgURI
00198 ) =0;
00199
00200 virtual ContentLeafNameTypeVector* getContentLeafNameTypeVector()
00201 const = 0;
00202
00203 virtual unsigned int getNextState(const unsigned int currentState,
00204 const unsigned int elementIndex) const = 0;
00205
00206 protected :
00207
00208
00209
00210 XMLContentModel()
00211 {
00212 }
00213
00214
00215 private :
00216
00217
00218
00219 XMLContentModel(const XMLContentModel&);
00220 void operator=(const XMLContentModel&);
00221 };
00222
00223 XERCES_CPP_NAMESPACE_END
00224
00225 #endif