File indexing completed on 2025-01-18 10:14:52
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #if !defined(XERCESC_INCLUDE_GUARD_VALIDATION_CONTEXT_HPP)
0023 #define XERCESC_INCLUDE_GUARD_VALIDATION_CONTEXT_HPP
0024
0025 #include <xercesc/util/PlatformUtils.hpp>
0026 #include <xercesc/util/RefHashTableOf.hpp>
0027 #include <xercesc/util/NameIdPool.hpp>
0028 #include <xercesc/util/XMemory.hpp>
0029
0030 XERCES_CPP_NAMESPACE_BEGIN
0031
0032 class XMLRefInfo;
0033 class DTDEntityDecl;
0034 class DatatypeValidator;
0035 class ElemStack;
0036 class NamespaceScope;
0037 class XMLScanner;
0038
0039 class XMLPARSER_EXPORT ValidationContext : public XMemory
0040 {
0041 public :
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 virtual ~ValidationContext(){};
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063 virtual RefHashTableOf<XMLRefInfo>* getIdRefList() const = 0;
0064
0065 virtual void setIdRefList(RefHashTableOf<XMLRefInfo>* const) = 0;
0066
0067 virtual void clearIdRefList() = 0;
0068
0069 virtual void addId(const XMLCh * const ) = 0;
0070
0071 virtual void addIdRef(const XMLCh * const ) = 0;
0072
0073 virtual void toCheckIdRefList(bool) = 0;
0074
0075
0076
0077
0078
0079 virtual const NameIdPool<DTDEntityDecl>* getEntityDeclPool() const = 0;
0080
0081 virtual const NameIdPool<DTDEntityDecl>* setEntityDeclPool(const NameIdPool<DTDEntityDecl>* const) = 0;
0082
0083 virtual void checkEntity(const XMLCh * const ) const = 0 ;
0084
0085
0086
0087
0088
0089
0090 virtual DatatypeValidator * getValidatingMemberType() const = 0 ;
0091 virtual void setValidatingMemberType(DatatypeValidator * validatingMemberType) = 0 ;
0092
0093
0094
0095
0096
0097 virtual bool isPrefixUnknown(XMLCh* ) { return true; };
0098 virtual void setElemStack(ElemStack* ) {};
0099 virtual const XMLCh* getURIForPrefix(XMLCh* ) { return 0; };
0100 virtual void setScanner(XMLScanner* ) { };
0101 virtual void setNamespaceScope(NamespaceScope* ) { };
0102
0103
0104
0105
0106 protected :
0107
0108
0109
0110
0111 ValidationContext(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager)
0112 :fMemoryManager(memMgr)
0113 {
0114 };
0115
0116
0117
0118
0119
0120
0121
0122
0123 MemoryManager* fMemoryManager;
0124
0125 private :
0126
0127
0128
0129
0130 ValidationContext(const ValidationContext& );
0131 ValidationContext& operator=(const ValidationContext& );
0132
0133
0134 };
0135
0136 XERCES_CPP_NAMESPACE_END
0137
0138 #endif
0139