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 #if !defined(VALIDATION_CONTEXT_HPP)
00070 #define VALIDATION_CONTEXT_HPP
00071
00072 #include <xercesc/util/PlatformUtils.hpp>
00073 #include <xercesc/util/RefHashTableOf.hpp>
00074 #include <xercesc/util/NameIdPool.hpp>
00075 #include <xercesc/util/XMemory.hpp>
00076
00077 XERCES_CPP_NAMESPACE_BEGIN
00078
00079 class XMLRefInfo;
00080 class DTDEntityDecl;
00081 class DatatypeValidator;
00082
00083 class ValidationContext : public XMemory
00084 {
00085 public :
00086
00088
00090
00095 virtual ~ValidationContext(){};
00097
00098
00100
00102
00107 virtual RefHashTableOf<XMLRefInfo>* getIdRefList() const = 0;
00108
00109 virtual void setIdRefList(RefHashTableOf<XMLRefInfo>* const) = 0;
00110
00111 virtual void clearIdRefList() = 0;
00112
00113 virtual void addId(const XMLCh * const ) = 0;
00114
00115 virtual void addIdRef(const XMLCh * const ) = 0;
00116
00117 virtual void toCheckIdRefList(bool) = 0;
00118
00123 virtual const NameIdPool<DTDEntityDecl>* getEntityDeclPool() const = 0;
00124
00125 virtual const NameIdPool<DTDEntityDecl>* setEntityDeclPool(const NameIdPool<DTDEntityDecl>* const) = 0;
00126
00127 virtual void checkEntity(const XMLCh * const ) const = 0 ;
00128
00134 virtual DatatypeValidator * getValidatingMemberType() const = 0 ;
00135 virtual void setValidatingMemberType(DatatypeValidator * validatingMemberType) = 0 ;
00136
00138
00139
00140 protected :
00141
00143
00145
00146 :fMemoryManager(memMgr)
00147 {
00148 };
00150
00151
00152
00153
00154
00155
00156
00157 MemoryManager* fMemoryManager;
00158
00159 private :
00160
00162
00164
00165 ValidationContext& operator=(const ValidationContext& );
00167
00168 };
00169
00170 XERCES_CPP_NAMESPACE_END
00171
00172 #endif
00173