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 #if !defined(CONTENTMODEL_HPP)
00110 #define CONTENTMODEL_HPP
00111
00112 #include <util/XercesDefs.hpp>
00113 #include <util/RefVectorOf.hpp>
00114 #include <util/QName.hpp>
00115
00116 class ContentLeafNameTypeVector;
00117 class GrammarResolver;
00118 class XMLStringPool;
00119 class XMLValidator;
00120 class SchemaGrammar;
00121
00131 class XMLContentModel
00132 {
00133 public:
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149 static const unsigned int gInvalidTrans;
00150 static const unsigned int gEOCFakeId;
00151 static const unsigned int gEpsilonFakeId;
00152
00153
00154
00155
00158
00159 {
00160 }
00162
00163
00164
00165
00166
00167 virtual int validateContent
00168 (
00169 QName** const children
00170 , const unsigned int childCount
00171 , const unsigned int emptyNamespaceId
00172 ) const = 0;
00173
00174 virtual int validateContentSpecial
00175 (
00176 QName** const children
00177 , const unsigned int childCount
00178 , const unsigned int emptyNamespaceId
00179 , GrammarResolver* const pGrammarResolver
00180 , XMLStringPool* const pStringPool
00181 ) const =0;
00182
00183 virtual void checkUniqueParticleAttribution
00184 (
00185 SchemaGrammar* const pGrammar
00186 , GrammarResolver* const pGrammarResolver
00187 , XMLStringPool* const pStringPool
00188 , XMLValidator* const pValidator
00189 , unsigned int* const pContentSpecOrgURI
00190 ) =0;
00191
00192 virtual ContentLeafNameTypeVector* getContentLeafNameTypeVector()
00193 const = 0;
00194
00195 virtual unsigned int getNextState(const unsigned int currentState,
00196 const unsigned int elementIndex) const = 0;
00197
00198 protected :
00199
00200
00201
00202 XMLContentModel()
00203 {
00204 }
00205
00206
00207 private :
00208
00209
00210
00211 XMLContentModel(const XMLContentModel&);
00212 void operator=(const XMLContentModel&);
00213 };
00214
00215 #endif