|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>Xerces-C++: XMLValidator Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Xerces-C++  <span id="projectnumber">3.1.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pro-methods">Protected Member Functions</a> | <a href="classXMLValidator-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">XMLValidator Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> </div><!--header--> <div class="contents">
<p>This abstract class provides the interface for all validators. <a href="classXMLValidator.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for XMLValidator:</div> <div class="dyncontent"> <div class="center"> <img src="classXMLValidator.png" usemap="#XMLValidator_map" alt=""/> <map id="XMLValidator_map" name="XMLValidator_map"> <area href="classXMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete operators to ..." alt="XMemory" shape="rect" coords="0,0,90,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr> <tr class="memitem:aa1167043c9d36e5349cab571f4730574"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#aa1167043c9d36e5349cab571f4730574">~XMLValidator</a> ()</td></tr> <tr class="memdesc:aa1167043c9d36e5349cab571f4730574"><td class="mdescLeft"> </td><td class="mdescRight">The derived class should clean up its allocated data, then this class will do the same for data allocated at this level. <a href="#aa1167043c9d36e5349cab571f4730574">More...</a><br /></td></tr> <tr class="separator:aa1167043c9d36e5349cab571f4730574"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Virtual validator interface</div></td></tr> <tr class="memitem:a5085e03cb0dd81b089f44f84cecbd57b"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a5085e03cb0dd81b089f44f84cecbd57b">checkContent</a> (<a class="el" href="classXMLElementDecl.html">XMLElementDecl</a> *const elemDecl, <a class="el" href="classQName.html">QName</a> **const children, <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> childCount, <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> *indexFailingChild)=0</td></tr> <tr class="memdesc:a5085e03cb0dd81b089f44f84cecbd57b"><td class="mdescLeft"> </td><td class="mdescRight">The derived class should look up its declaration of the passed element from its element pool. <a href="#a5085e03cb0dd81b089f44f84cecbd57b">More...</a><br /></td></tr> <tr class="separator:a5085e03cb0dd81b089f44f84cecbd57b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7b7f8e3cfa0f22eadac39c51a8b0e47b"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a7b7f8e3cfa0f22eadac39c51a8b0e47b">faultInAttr</a> (<a class="el" href="classXMLAttr.html">XMLAttr</a> &toFill, const <a class="el" href="classXMLAttDef.html">XMLAttDef</a> &attDef) const =0</td></tr> <tr class="memdesc:a7b7f8e3cfa0f22eadac39c51a8b0e47b"><td class="mdescLeft"> </td><td class="mdescRight">The derived class should fault in the passed <a class="el" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner during parsin...">XMLAttr</a> value. <a href="#a7b7f8e3cfa0f22eadac39c51a8b0e47b">More...</a><br /></td></tr> <tr class="separator:a7b7f8e3cfa0f22eadac39c51a8b0e47b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a20ce731a94c96d21af00c245e7750ee3"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a20ce731a94c96d21af00c245e7750ee3">preContentValidation</a> (bool reuseGrammar, bool validateDefAttr=false)=0</td></tr> <tr class="memdesc:a20ce731a94c96d21af00c245e7750ee3"><td class="mdescLeft"> </td><td class="mdescRight">This method is called by the scanner after a Grammar is scanned. <a href="#a20ce731a94c96d21af00c245e7750ee3">More...</a><br /></td></tr> <tr class="separator:a20ce731a94c96d21af00c245e7750ee3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abd5728ed46388e09d21968e9f2b59983"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#abd5728ed46388e09d21968e9f2b59983">postParseValidation</a> ()=0</td></tr> <tr class="memdesc:abd5728ed46388e09d21968e9f2b59983"><td class="mdescLeft"> </td><td class="mdescRight">This method is called by the scanner after the parse has completed. <a href="#abd5728ed46388e09d21968e9f2b59983">More...</a><br /></td></tr> <tr class="separator:abd5728ed46388e09d21968e9f2b59983"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af4e69c5335c98c9b616226614662eb8b"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#af4e69c5335c98c9b616226614662eb8b">reset</a> ()=0</td></tr> <tr class="memdesc:af4e69c5335c98c9b616226614662eb8b"><td class="mdescLeft"> </td><td class="mdescRight">This method is called by the scanner before a new document is about to start. <a href="#af4e69c5335c98c9b616226614662eb8b">More...</a><br /></td></tr> <tr class="separator:af4e69c5335c98c9b616226614662eb8b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a847f7af2d6db276d8d89f8dea8fdb9ca"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a847f7af2d6db276d8d89f8dea8fdb9ca">requiresNamespaces</a> () const =0</td></tr> <tr class="memdesc:a847f7af2d6db276d8d89f8dea8fdb9ca"><td class="mdescLeft"> </td><td class="mdescRight">The derived class should return a boolean that indicates whether it requires namespace processing or not. <a href="#a847f7af2d6db276d8d89f8dea8fdb9ca">More...</a><br /></td></tr> <tr class="separator:a847f7af2d6db276d8d89f8dea8fdb9ca"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a83575e8376f4e95ae3eafea8d7cdca29"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a83575e8376f4e95ae3eafea8d7cdca29">validateAttrValue</a> (const <a class="el" href="classXMLAttDef.html">XMLAttDef</a> *attDef, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const attrValue, bool preValidation=false, const <a class="el" href="classXMLElementDecl.html">XMLElementDecl</a> *elemDecl=0)=0</td></tr> <tr class="memdesc:a83575e8376f4e95ae3eafea8d7cdca29"><td class="mdescLeft"> </td><td class="mdescRight">The derived class should apply any rules to the passed attribute value that are above and beyond those defined by XML 1.0. <a href="#a83575e8376f4e95ae3eafea8d7cdca29">More...</a><br /></td></tr> <tr class="separator:a83575e8376f4e95ae3eafea8d7cdca29"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a73887e95a1faa1f7c84e5c10d4f49df6"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a73887e95a1faa1f7c84e5c10d4f49df6">validateElement</a> (const <a class="el" href="classXMLElementDecl.html">XMLElementDecl</a> *elemDef)=0</td></tr> <tr class="memdesc:a73887e95a1faa1f7c84e5c10d4f49df6"><td class="mdescLeft"> </td><td class="mdescRight">The derived class should apply any rules to the passed element decl that are above and beyond those defined by XML 1.0. <a href="#a73887e95a1faa1f7c84e5c10d4f49df6">More...</a><br /></td></tr> <tr class="separator:a73887e95a1faa1f7c84e5c10d4f49df6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa29939689b60fae3ce963a75e71583bf"><td class="memItemLeft" align="right" valign="top">virtual Grammar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#aa29939689b60fae3ce963a75e71583bf">getGrammar</a> () const =0</td></tr> <tr class="memdesc:aa29939689b60fae3ce963a75e71583bf"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the Grammar used. <a href="#aa29939689b60fae3ce963a75e71583bf">More...</a><br /></td></tr> <tr class="separator:aa29939689b60fae3ce963a75e71583bf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1310f54cd66f075ed4444ab620f68004"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a1310f54cd66f075ed4444ab620f68004">setGrammar</a> (Grammar *aGrammar)=0</td></tr> <tr class="memdesc:a1310f54cd66f075ed4444ab620f68004"><td class="mdescLeft"> </td><td class="mdescRight">Set the Grammar. <a href="#a1310f54cd66f075ed4444ab620f68004">More...</a><br /></td></tr> <tr class="separator:a1310f54cd66f075ed4444ab620f68004"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Virtual DTD handler interface</div></td></tr> <tr class="memitem:af78b74f45dbaed47c3e74d694c3f133d"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#af78b74f45dbaed47c3e74d694c3f133d">handlesDTD</a> () const =0</td></tr> <tr class="memdesc:af78b74f45dbaed47c3e74d694c3f133d"><td class="mdescLeft"> </td><td class="mdescRight">This method allows the scanner to ask the validator if it handles DTDs or not. <a href="#af78b74f45dbaed47c3e74d694c3f133d">More...</a><br /></td></tr> <tr class="separator:af78b74f45dbaed47c3e74d694c3f133d"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Virtual Schema handler interface</div></td></tr> <tr class="memitem:a2d2f77c4e1c77ab21b9f6332c7121301"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a2d2f77c4e1c77ab21b9f6332c7121301">handlesSchema</a> () const =0</td></tr> <tr class="memdesc:a2d2f77c4e1c77ab21b9f6332c7121301"><td class="mdescLeft"> </td><td class="mdescRight">This method allows the scanner to ask the validator if it handles Schema or not. <a href="#a2d2f77c4e1c77ab21b9f6332c7121301">More...</a><br /></td></tr> <tr class="separator:a2d2f77c4e1c77ab21b9f6332c7121301"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Setter methods</div></td></tr> <tr class="memitem:a3c919a8cd60cd8db3ab21a047b0c2382"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a3c919a8cd60cd8db3ab21a047b0c2382">setScannerInfo</a> (XMLScanner *const owningScanner, ReaderMgr *const readerMgr, XMLBufferMgr *const bufMgr)</td></tr> <tr class="separator:a3c919a8cd60cd8db3ab21a047b0c2382"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1e8dc0e5cb4da13b3934d0af455d40d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a1e8dc0e5cb4da13b3934d0af455d40d3">setErrorReporter</a> (<a class="el" href="classXMLErrorReporter.html">XMLErrorReporter</a> *const errorReporter)</td></tr> <tr class="memdesc:a1e8dc0e5cb4da13b3934d0af455d40d3"><td class="mdescLeft"> </td><td class="mdescRight">This method is called to set an error reporter on the validator via which it will report any errors it sees during parsing or validation. <a href="#a1e8dc0e5cb4da13b3934d0af455d40d3">More...</a><br /></td></tr> <tr class="separator:a1e8dc0e5cb4da13b3934d0af455d40d3"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Error emittor methods</div></td></tr> <tr class="memitem:adc82f0f905e62e81219bca74f2db8941"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#adc82f0f905e62e81219bca74f2db8941">emitError</a> (const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> toEmit)</td></tr> <tr class="memdesc:adc82f0f905e62e81219bca74f2db8941"><td class="mdescLeft"> </td><td class="mdescRight">This call is a convenience by which validators can emit errors. <a href="#adc82f0f905e62e81219bca74f2db8941">More...</a><br /></td></tr> <tr class="separator:adc82f0f905e62e81219bca74f2db8941"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a75aa084b2846f7e9044897a2e063e7fd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a75aa084b2846f7e9044897a2e063e7fd">emitError</a> (const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> toEmit, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text1, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text2=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text3=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text4=0)</td></tr> <tr class="separator:a75aa084b2846f7e9044897a2e063e7fd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a02ddd9094ed082e810bcdec7ccc65f1b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a02ddd9094ed082e810bcdec7ccc65f1b">emitError</a> (const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> toEmit, const char *const text1, const char *const text2=0, const char *const text3=0, const char *const text4=0)</td></tr> <tr class="separator:a02ddd9094ed082e810bcdec7ccc65f1b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af9032065722720a9ae1056ae909c961b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#af9032065722720a9ae1056ae909c961b">emitError</a> (const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> toEmit, const XMLExcepts::Codes originalErrorCode, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text1=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text2=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text3=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const text4=0)</td></tr> <tr class="separator:af9032065722720a9ae1056ae909c961b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classXMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classXMemory')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classXMemory.html">XMemory</a></td></tr> <tr class="memitem:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a717678d9deadc627a41fe0dddede9f7f">operator new</a> (size_t size)</td></tr> <tr class="memdesc:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method overrides operator new. <a href="#a717678d9deadc627a41fe0dddede9f7f">More...</a><br /></td></tr> <tr class="separator:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#ac3022fcc968c684a31c1e6a9ede83c10">operator new</a> (size_t size, <a class="el" href="classMemoryManager.html">MemoryManager</a> *memMgr)</td></tr> <tr class="memdesc:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method defines a custom operator new, that will use the provided memory manager to perform the allocation. <a href="#ac3022fcc968c684a31c1e6a9ede83c10">More...</a><br /></td></tr> <tr class="separator:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#aeaad885b799ac2188ffd28f76182339c">operator new</a> (size_t size, void *ptr)</td></tr> <tr class="memdesc:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method overrides placement operator new. <a href="#aeaad885b799ac2188ffd28f76182339c">More...</a><br /></td></tr> <tr class="separator:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a9da30f1601ea458908cbf150fc2f8f8b">operator delete</a> (void *p)</td></tr> <tr class="memdesc:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method overrides operator delete. <a href="#a9da30f1601ea458908cbf150fc2f8f8b">More...</a><br /></td></tr> <tr class="separator:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a22efbc6459bdbe79f83b7791bba4d1f6">operator delete</a> (void *p, <a class="el" href="classMemoryManager.html">MemoryManager</a> *memMgr)</td></tr> <tr class="memdesc:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method provides a matching delete for the custom operator new. <a href="#a22efbc6459bdbe79f83b7791bba4d1f6">More...</a><br /></td></tr> <tr class="separator:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a32ee38b70d412e12f669cfbd86adf623">operator delete</a> (void *p, void *ptr)</td></tr> <tr class="memdesc:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method provides a matching delete for the placement new. <a href="#a32ee38b70d412e12f669cfbd86adf623">More...</a><br /></td></tr> <tr class="separator:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:a6757da92987723b63ead09ced2be1d50"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a6757da92987723b63ead09ced2be1d50">XMLValidator</a> (<a class="el" href="classXMLErrorReporter.html">XMLErrorReporter</a> *const errReporter=0)</td></tr> <tr class="separator:a6757da92987723b63ead09ced2be1d50"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac4bd73e48ce289a6a402258a0d9346b8"><td class="memItemLeft" align="right" valign="top">const XMLBufferMgr * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#ac4bd73e48ce289a6a402258a0d9346b8">getBufMgr</a> () const </td></tr> <tr class="separator:ac4bd73e48ce289a6a402258a0d9346b8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad9ce4915c17a6eba60754ab6a5f5d7f2"><td class="memItemLeft" align="right" valign="top">XMLBufferMgr * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#ad9ce4915c17a6eba60754ab6a5f5d7f2">getBufMgr</a> ()</td></tr> <tr class="separator:ad9ce4915c17a6eba60754ab6a5f5d7f2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae8b95228d9a32830f460554057c61454"><td class="memItemLeft" align="right" valign="top">const ReaderMgr * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#ae8b95228d9a32830f460554057c61454">getReaderMgr</a> () const </td></tr> <tr class="separator:ae8b95228d9a32830f460554057c61454"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a75bbad9d31e2f7188afb14f941632c12"><td class="memItemLeft" align="right" valign="top">ReaderMgr * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a75bbad9d31e2f7188afb14f941632c12">getReaderMgr</a> ()</td></tr> <tr class="separator:a75bbad9d31e2f7188afb14f941632c12"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa534361df30152927e8db95838c20d63"><td class="memItemLeft" align="right" valign="top">const XMLScanner * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#aa534361df30152927e8db95838c20d63">getScanner</a> () const </td></tr> <tr class="separator:aa534361df30152927e8db95838c20d63"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a31556fb32bd07f74e8d70cd0674071eb"><td class="memItemLeft" align="right" valign="top">XMLScanner * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLValidator.html#a31556fb32bd07f74e8d70cd0674071eb">getScanner</a> ()</td></tr> <tr class="separator:a31556fb32bd07f74e8d70cd0674071eb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pro_methods_classXMemory"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classXMemory')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classXMemory.html">XMemory</a></td></tr> <tr class="memitem:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#ae5b8adaa10d5d9276b42823f47e06858">XMemory</a> ()</td></tr> <tr class="memdesc:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">Protected default constructor. <a href="#ae5b8adaa10d5d9276b42823f47e06858">More...</a><br /></td></tr> <tr class="separator:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This abstract class provides the interface for all validators. </p> <p>This is the simple amount of API that all validators must honor, in order for the scanner to use them to do validation. All validators will actually contain much more functionality than is accessible via this common API, but that functionality requires that you know what type of validator you are dealing with.</p> <p>Basically, at this level, the primary concern is to be able to query core information about elements and attributes. Adding decls to the validator requires that you go through the derived interface because they all have their own decl types. At this level, we can return information via the base decl classes, from which each validator derives its own decl classes. </p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="aa1167043c9d36e5349cab571f4730574"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual XMLValidator::~XMLValidator </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The derived class should clean up its allocated data, then this class will do the same for data allocated at this level. </p>
</div> </div> <a class="anchor" id="a6757da92987723b63ead09ced2be1d50"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">XMLValidator::XMLValidator </td> <td>(</td> <td class="paramtype"><a class="el" href="classXMLErrorReporter.html">XMLErrorReporter</a> *const </td> <td class="paramname"><em>errReporter</em> = <code>0</code></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a5085e03cb0dd81b089f44f84cecbd57b"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool XMLValidator::checkContent </td> <td>(</td> <td class="paramtype"><a class="el" href="classXMLElementDecl.html">XMLElementDecl</a> *const </td> <td class="paramname"><em>elemDecl</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classQName.html">QName</a> **const </td> <td class="paramname"><em>children</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> </td> <td class="paramname"><em>childCount</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> * </td> <td class="paramname"><em>indexFailingChild</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The derived class should look up its declaration of the passed element from its element pool. </p> <p>It should then use the content model description contained in that element declaration to validate that the passed list of child elements are valid for that content model. The count can be zero, indicating no child elements.</p> <p>Note that whitespace and text content are not validated here. Those are handled by the scanner. So only element ids are provided here.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">elemDecl</td><td>The element whose content is to be checked.</td></tr> <tr><td class="paramname">children</td><td>An array of element <a class="el" href="classQName.html">QName</a> which represent the elements found within the parent element, i.e. the content to be validated.</td></tr> <tr><td class="paramname">childCount</td><td>The number of elements in the childIds array. It can be zero if the element had none.</td></tr> <tr><td class="paramname">indexFailingChild</td><td>On return, it will contain the index of the children failing validation, if the retun value is false </td></tr> </table> </dd> </dl>
</div> </div> <a class="anchor" id="adc82f0f905e62e81219bca74f2db8941"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void XMLValidator::emitError </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> </td> <td class="paramname"><em>toEmit</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
<p>This call is a convenience by which validators can emit errors. </p> <p>Most of the grunt work of loading the text, getting the current source location, ect... is handled here.</p> <p>If the loaded text has replacement parameters, then text strings can be passed. These will be used to replace the tokens {0}, {1}, {2}, and {3} in the order passed. So text1 will replace {0}, text2 will replace {1}, and so forth.</p> <p>textX Up to four replacement parameters. They can be provided as either XMLCh strings, or local code page strings which will be transcoded internally.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">toEmit</td><td>The error code to emit. it must be one of the defined validator error codes. </td></tr> </table> </dd> </dl>
</div> </div> <a class="anchor" id="a75aa084b2846f7e9044897a2e063e7fd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void XMLValidator::emitError </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> </td> <td class="paramname"><em>toEmit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text2</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text3</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text4</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a02ddd9094ed082e810bcdec7ccc65f1b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void XMLValidator::emitError </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> </td> <td class="paramname"><em>toEmit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *const </td> <td class="paramname"><em>text1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *const </td> <td class="paramname"><em>text2</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *const </td> <td class="paramname"><em>text3</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *const </td> <td class="paramname"><em>text4</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="af9032065722720a9ae1056ae909c961b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void XMLValidator::emitError </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLValid.html#ac30e7f5d9612c52f5f1208c83f090c86">XMLValid::Codes</a> </td> <td class="paramname"><em>toEmit</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const XMLExcepts::Codes </td> <td class="paramname"><em>originalErrorCode</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text1</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text2</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text3</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>text4</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a7b7f8e3cfa0f22eadac39c51a8b0e47b"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::faultInAttr </td> <td>(</td> <td class="paramtype"><a class="el" href="classXMLAttr.html">XMLAttr</a> & </td> <td class="paramname"><em>toFill</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classXMLAttDef.html">XMLAttDef</a> & </td> <td class="paramname"><em>attDef</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The derived class should fault in the passed <a class="el" href="classXMLAttr.html" title="This class defines the information about an attribute that will come out of the scanner during parsin...">XMLAttr</a> value. </p> <p>It should use the passeed attribute definition (which is passed via the base type so it must often be downcast to the appropriate type for the derived validator class), to fill in the passed attribute. This is done as a performance enhancement since the derived class has more direct access to the information. </p>
</div> </div> <a class="anchor" id="ac4bd73e48ce289a6a402258a0d9346b8"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const XMLBufferMgr * XMLValidator::getBufMgr </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="ad9ce4915c17a6eba60754ab6a5f5d7f2"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">XMLBufferMgr * XMLValidator::getBufMgr </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="aa29939689b60fae3ce963a75e71583bf"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual Grammar* XMLValidator::getGrammar </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Retrieve the Grammar used. </p>
</div> </div> <a class="anchor" id="ae8b95228d9a32830f460554057c61454"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const ReaderMgr * XMLValidator::getReaderMgr </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a75bbad9d31e2f7188afb14f941632c12"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">ReaderMgr * XMLValidator::getReaderMgr </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="aa534361df30152927e8db95838c20d63"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const XMLScanner * XMLValidator::getScanner </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a31556fb32bd07f74e8d70cd0674071eb"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">XMLScanner * XMLValidator::getScanner </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="af78b74f45dbaed47c3e74d694c3f133d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool XMLValidator::handlesDTD </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>This method allows the scanner to ask the validator if it handles DTDs or not. </p>
</div> </div> <a class="anchor" id="a2d2f77c4e1c77ab21b9f6332c7121301"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool XMLValidator::handlesSchema </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>This method allows the scanner to ask the validator if it handles Schema or not. </p>
</div> </div> <a class="anchor" id="abd5728ed46388e09d21968e9f2b59983"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::postParseValidation </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>This method is called by the scanner after the parse has completed. </p> <p>It gives the validator a chance to check certain things that can only be checked after the whole document has been parsed, such as referential integrity of ID/IDREF pairs and so forth. The validator should just issue errors for any problems it finds. </p>
</div> </div> <a class="anchor" id="a20ce731a94c96d21af00c245e7750ee3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::preContentValidation </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>reuseGrammar</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>validateDefAttr</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>This method is called by the scanner after a Grammar is scanned. </p>
</div> </div> <a class="anchor" id="a847f7af2d6db276d8d89f8dea8fdb9ca"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual bool XMLValidator::requiresNamespaces </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The derived class should return a boolean that indicates whether it requires namespace processing or not. </p> <p>Some do and some allow it to be optional. This flag is used to control whether the client code's requests to disable namespace processing can be honored or not. </p>
</div> </div> <a class="anchor" id="af4e69c5335c98c9b616226614662eb8b"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::reset </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>This method is called by the scanner before a new document is about to start. </p> <p>It gives the validator a change to reset itself in preparation for another validation pass. </p>
</div> </div> <a class="anchor" id="a1e8dc0e5cb4da13b3934d0af455d40d3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void XMLValidator::setErrorReporter </td> <td>(</td> <td class="paramtype"><a class="el" href="classXMLErrorReporter.html">XMLErrorReporter</a> *const </td> <td class="paramname"><em>errorReporter</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
<p>This method is called to set an error reporter on the validator via which it will report any errors it sees during parsing or validation. </p> <p>This is generally called by the owning scanner.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">errorReporter</td><td>A pointer to the error reporter to use. This is not adopted, just referenced so the caller remains responsible for its cleanup, if any. </td></tr> </table> </dd> </dl>
</div> </div> <a class="anchor" id="a1310f54cd66f075ed4444ab620f68004"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::setGrammar </td> <td>(</td> <td class="paramtype">Grammar * </td> <td class="paramname"><em>aGrammar</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Set the Grammar. </p>
</div> </div> <a class="anchor" id="a3c919a8cd60cd8db3ab21a047b0c2382"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void XMLValidator::setScannerInfo </td> <td>(</td> <td class="paramtype">XMLScanner *const </td> <td class="paramname"><em>owningScanner</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">ReaderMgr *const </td> <td class="paramname"><em>readerMgr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">XMLBufferMgr *const </td> <td class="paramname"><em>bufMgr</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">owningScanner</td><td>This is a pointer to the scanner to which the validator belongs. The validator will often need to query state data from the scanner.</td></tr> <tr><td class="paramname">readerMgr</td><td>This is a pointer to the reader manager that is being used by the scanner.</td></tr> <tr><td class="paramname">bufMgr</td><td>This is the buffer manager of the scanner. This is provided as a convenience so that the validator doesn't have to create its own buffer manager during the parse process. </td></tr> </table> </dd> </dl>
</div> </div> <a class="anchor" id="a83575e8376f4e95ae3eafea8d7cdca29"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::validateAttrValue </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLAttDef.html">XMLAttDef</a> * </td> <td class="paramname"><em>attDef</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>attrValue</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>preValidation</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classXMLElementDecl.html">XMLElementDecl</a> * </td> <td class="paramname"><em>elemDecl</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The derived class should apply any rules to the passed attribute value that are above and beyond those defined by XML 1.0. </p> <p>The scanner itself will impose XML 1.0 rules, based on the type of the attribute. This will generally be used to check things such as range checks and other datatype related validation.</p> <p>If the value breaks any rules as defined by the derived class, it should just issue errors as usual. </p>
</div> </div> <a class="anchor" id="a73887e95a1faa1f7c84e5c10d4f49df6"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual void XMLValidator::validateElement </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLElementDecl.html">XMLElementDecl</a> * </td> <td class="paramname"><em>elemDef</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The derived class should apply any rules to the passed element decl that are above and beyond those defined by XML 1.0. </p> <p>If the value breaks any rules as defined by the derived class, it should just issue errors as usual. </p>
</div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="XMLValidator_8hpp_source.html">XMLValidator.hpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Mar 18 2015 10:43:39 for Xerces-C++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
|