22#if !defined(XERCESC_INCLUDE_GUARD_XMLVALIDATOR_HPP)
23#define XERCESC_INCLUDE_GUARD_XMLVALIDATOR_HPP
106 ,
QName**
const children
129 bool validateDefAttr =
false) = 0;
168 ,
const XMLCh*
const attrValue
169 ,
bool preValidation =
false
250 XMLScanner*
const owningScanner
251 , ReaderMgr*
const readerMgr
252 , XMLBufferMgr*
const bufMgr
264 void setErrorReporter
301 ,
const XMLCh*
const text1
302 ,
const XMLCh*
const text2 = 0
303 ,
const XMLCh*
const text3 = 0
304 ,
const XMLCh*
const text4 = 0
309 ,
const char*
const text1
310 ,
const char*
const text2 = 0
311 ,
const char*
const text3 = 0
312 ,
const char*
const text4 = 0
317 ,
const XMLExcepts::Codes originalErrorCode
318 ,
const XMLCh*
const text1 = 0
319 ,
const XMLCh*
const text2 = 0
320 ,
const XMLCh*
const text3 = 0
321 ,
const XMLCh*
const text4 = 0
340 const XMLBufferMgr* getBufMgr()
const;
341 XMLBufferMgr* getBufMgr();
342 const ReaderMgr* getReaderMgr()
const;
343 ReaderMgr* getReaderMgr();
344 const XMLScanner* getScanner()
const;
345 XMLScanner* getScanner();
363 XMLBufferMgr* fBufMgr;
365 ReaderMgr* fReaderMgr;
366 XMLScanner* fScanner;
375 , ReaderMgr*
const readerMgr
376 , XMLBufferMgr*
const bufMgr)
379 fScanner = owningScanner;
380 fReaderMgr = readerMgr;
387 fErrorReporter = errorReporter;
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Represents the core information of an attribute definition.
Definition XMLAttDef.hpp:53
This class defines the information about an attribute that will come out of the scanner during parsin...
Definition XMLAttr.hpp:54
This class defines the core information of an element declaration.
Definition XMLElementDecl.hpp:52
This abstract class defines a callback mechanism for the scanner.
Definition XMLErrorReporter.hpp:43
Codes
Definition XMLValidityCodes.hpp:22
This abstract class provides the interface for all validators.
Definition XMLValidator.hpp:53
void emitError(const XMLValid::Codes toEmit, const char *const text1, const char *const text2=0, const char *const text3=0, const char *const text4=0)
virtual Grammar * getGrammar() const =0
Retrieve the Grammar used.
virtual void setGrammar(Grammar *aGrammar)=0
Set the Grammar.
void setErrorReporter(XMLErrorReporter *const errorReporter)
This method is called to set an error reporter on the validator via which it will report any errors i...
Definition XMLValidator.hpp:385
virtual void preContentValidation(bool reuseGrammar, bool validateDefAttr=false)=0
This method is called by the scanner after a Grammar is scanned.
virtual bool handlesSchema() const =0
This method allows the scanner to ask the validator if it handles Schema or not.
void setScannerInfo(XMLScanner *const owningScanner, ReaderMgr *const readerMgr, XMLBufferMgr *const bufMgr)
Definition XMLValidator.hpp:374
virtual bool checkContent(XMLElementDecl *const elemDecl, QName **const children, XMLSize_t childCount, XMLSize_t *indexFailingChild)=0
The derived class should look up its declaration of the passed element from its element pool.
const XMLScanner * getScanner() const
Definition XMLValidator.hpp:414
XMLValidator(XMLErrorReporter *const errReporter=0)
virtual void validateElement(const XMLElementDecl *elemDef)=0
The derived class should apply any rules to the passed element decl that are above and beyond those d...
void emitError(const XMLValid::Codes toEmit, const XMLCh *const text1, const XMLCh *const text2=0, const XMLCh *const text3=0, const XMLCh *const text4=0)
virtual void faultInAttr(XMLAttr &toFill, const XMLAttDef &attDef) const =0
The derived class should fault in the passed XMLAttr value.
const ReaderMgr * getReaderMgr() const
Definition XMLValidator.hpp:404
virtual void validateAttrValue(const XMLAttDef *attDef, const XMLCh *const attrValue, bool preValidation=false, const XMLElementDecl *elemDecl=0)=0
The derived class should apply any rules to the passed attribute value that are above and beyond thos...
virtual bool requiresNamespaces() const =0
The derived class should return a boolean that indicates whether it requires namespace processing or ...
const XMLBufferMgr * getBufMgr() const
Definition XMLValidator.hpp:394
virtual ~XMLValidator()
The derived class should clean up its allocated data, then this class will do the same for data alloc...
Definition XMLValidator.hpp:66
virtual void postParseValidation()=0
This method is called by the scanner after the parse has completed.
void emitError(const XMLValid::Codes toEmit)
This call is a convenience by which validators can emit errors.
virtual void reset()=0
This method is called by the scanner before a new document is about to start.
virtual bool handlesDTD() const =0
This method allows the scanner to ask the validator if it handles DTDs or not.
void emitError(const XMLValid::Codes toEmit, const XMLExcepts::Codes originalErrorCode, const XMLCh *const text1=0, const XMLCh *const text2=0, const XMLCh *const text3=0, const XMLCh *const text4=0)
This class makes it possible to override the C++ memory management by adding new/delete operators to ...
Definition XMemory.hpp:41