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