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
00116
00117
00118
00119
00120
00121 #if !defined(CONTENTMODEL_HPP)
00122 #define CONTENTMODEL_HPP
00123
00124 #include <xercesc/util/XMemory.hpp>
00125 #include <xercesc/util/QName.hpp>
00126
00127 XERCES_CPP_NAMESPACE_BEGIN
00128
00129 class ContentLeafNameTypeVector;
00130 class GrammarResolver;
00131 class XMLStringPool;
00132 class XMLValidator;
00133 class SchemaGrammar;
00134
00144 class XMLContentModel : public XMemory
00145 {
00146 public:
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162 static const unsigned int gInvalidTrans;
00163 static const unsigned int gEOCFakeId;
00164 static const unsigned int gEpsilonFakeId;
00165
00166
00167
00168
00171 virtual ~XMLContentModel()
00172 {
00173 }
00175
00176
00177
00178
00179
00180 virtual int validateContent
00181 (
00182 QName** const children
00183 , const unsigned int childCount
00184 , const unsigned int emptyNamespaceId
00185 ) const = 0;
00186
00187 virtual int validateContentSpecial
00188 (
00189 QName** const children
00190 , const unsigned int childCount
00191 , const unsigned int emptyNamespaceId
00192 , GrammarResolver* const pGrammarResolver
00193 , XMLStringPool* const pStringPool
00194 ) const =0;
00195
00196 virtual void checkUniqueParticleAttribution
00197 (
00198 SchemaGrammar* const pGrammar
00199 , GrammarResolver* const pGrammarResolver
00200 , XMLStringPool* const pStringPool
00201 , XMLValidator* const pValidator
00202 , unsigned int* const pContentSpecOrgURI
00203 ) =0;
00204
00205 virtual ContentLeafNameTypeVector* getContentLeafNameTypeVector()
00206 const = 0;
00207
00208 virtual unsigned int getNextState(const unsigned int currentState,
00209 const unsigned int elementIndex) const = 0;
00210
00211 protected :
00212
00213
00214
00215 XMLContentModel()
00216 {
00217 }
00218
00219
00220 private :
00221
00222
00223
00224 XMLContentModel(const XMLContentModel&);
00225 XMLContentModel& operator=(const XMLContentModel&);
00226 };
00227
00228 XERCES_CPP_NAMESPACE_END
00229
00230 #endif