File indexing completed on 2025-01-18 10:14:55
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_CONTEXTIMPL_HPP)
0023 #define XERCESC_INCLUDE_GUARD_VALIDATION_CONTEXTIMPL_HPP
0024
0025 #include <xercesc/framework/ValidationContext.hpp>
0026
0027 XERCES_CPP_NAMESPACE_BEGIN
0028 class ElemStack;
0029 class NamespaceScope;
0030
0031 class XMLPARSER_EXPORT ValidationContextImpl : public ValidationContext
0032 {
0033 public :
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 virtual ~ValidationContextImpl();
0044
0045 ValidationContextImpl(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058 virtual RefHashTableOf<XMLRefInfo>* getIdRefList() const;
0059
0060 virtual void setIdRefList(RefHashTableOf<XMLRefInfo>* const);
0061
0062 virtual void clearIdRefList();
0063
0064 virtual void addId(const XMLCh * const );
0065
0066 virtual void addIdRef(const XMLCh * const );
0067
0068 virtual void toCheckIdRefList(bool);
0069
0070
0071
0072
0073
0074 virtual const NameIdPool<DTDEntityDecl>* getEntityDeclPool() const;
0075
0076 virtual const NameIdPool<DTDEntityDecl>* setEntityDeclPool(const NameIdPool<DTDEntityDecl>* const);
0077
0078 virtual void checkEntity(const XMLCh * const ) const;
0079
0080
0081
0082
0083
0084
0085
0086 virtual DatatypeValidator * getValidatingMemberType() const;
0087 virtual void setValidatingMemberType(DatatypeValidator * validatingMemberType) ;
0088
0089
0090
0091
0092
0093 virtual bool isPrefixUnknown(XMLCh* prefix);
0094 virtual void setElemStack(ElemStack* elemStack);
0095 virtual const XMLCh* getURIForPrefix(XMLCh* prefix);
0096 virtual void setScanner(XMLScanner* scanner);
0097 virtual void setNamespaceScope(NamespaceScope* nsStack);
0098
0099
0100
0101
0102 private:
0103
0104
0105
0106
0107 ValidationContextImpl(const ValidationContextImpl& );
0108 ValidationContextImpl& operator=(const ValidationContextImpl& );
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136 RefHashTableOf<XMLRefInfo>* fIdRefList;
0137 const NameIdPool<DTDEntityDecl>* fEntityDeclPool;
0138 bool fToCheckIdRefList;
0139 DatatypeValidator * fValidatingMemberType;
0140 ElemStack* fElemStack;
0141 XMLScanner* fScanner;
0142 NamespaceScope* fNamespaceScope;
0143
0144 };
0145
0146
0147
0148 inline DatatypeValidator * ValidationContextImpl::getValidatingMemberType() const
0149 {
0150 return fValidatingMemberType;
0151 }
0152
0153 inline void ValidationContextImpl::setValidatingMemberType(DatatypeValidator * validatingMemberType)
0154 {
0155 fValidatingMemberType = validatingMemberType;
0156 }
0157
0158 inline void ValidationContextImpl::setElemStack(ElemStack* elemStack) {
0159 fElemStack = elemStack;
0160 }
0161
0162 inline void ValidationContextImpl::setScanner(XMLScanner* scanner) {
0163 fScanner = scanner;
0164 }
0165
0166 inline void ValidationContextImpl::setNamespaceScope(NamespaceScope* nsStack) {
0167 fNamespaceScope = nsStack;
0168 }
0169
0170 XERCES_CPP_NAMESPACE_END
0171
0172 #endif
0173