You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<!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++: XMLResourceIdentifier 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="classXMLResourceIdentifier-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">XMLResourceIdentifier Class Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Public Constants</div></td></tr> <tr class="memitem:a439cfcd30999d4de0c73ca12f1695f1b"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1b">ResourceIdentifierType</a> { <br />   <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1baadeb132aac2245a91375265a3d1d58fc">SchemaGrammar</a> = 0, <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1ba5655c9970788728b92b1d06afc40fef9">SchemaImport</a>, <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1ba64b760e1eaa016c13a35229981a5a3d5">SchemaInclude</a>, <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1ba36dbb98579903d467d8ae48b1138d99e">SchemaRedefine</a>, <br />   <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1ba162c3d13603e38bf50660c919ca0c9f1">ExternalEntity</a>, <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1ba48449f5e9980f32659247783e1adf74e">UnKnown</a> = 255 <br /> }</td></tr> <tr class="separator:a439cfcd30999d4de0c73ca12f1695f1b"><td class="memSeparator" colspan="2"> </td></tr> </table><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">Constructors and Destructor</div></td></tr> <tr class="memitem:a758049c52d659e71a407cb38c2bee74e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a758049c52d659e71a407cb38c2bee74e">XMLResourceIdentifier</a> (const <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1b">ResourceIdentifierType</a> resourceIdentitiferType, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const nameSpace=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const publicId=0, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const baseURI=0, const <a class="el" href="classLocator.html">Locator</a> *locator=0)</td></tr> <tr class="memdesc:a758049c52d659e71a407cb38c2bee74e"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a758049c52d659e71a407cb38c2bee74e">More...</a><br /></td></tr> <tr class="separator:a758049c52d659e71a407cb38c2bee74e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a81a101d0cadd0341b383b93b43c298e0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a81a101d0cadd0341b383b93b43c298e0">~XMLResourceIdentifier</a> ()</td></tr> <tr class="memdesc:a81a101d0cadd0341b383b93b43c298e0"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a81a101d0cadd0341b383b93b43c298e0">More...</a><br /></td></tr> <tr class="separator:a81a101d0cadd0341b383b93b43c298e0"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Public Methods</div></td></tr> <tr class="memitem:aec01b34f3cb604088e92c2e399af7f32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1b">ResourceIdentifierType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#aec01b34f3cb604088e92c2e399af7f32">getResourceIdentifierType</a> () const </td></tr> <tr class="separator:aec01b34f3cb604088e92c2e399af7f32"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a06a56d9b78aea6ca81df98b0e3a04744"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a06a56d9b78aea6ca81df98b0e3a04744">getPublicId</a> () const </td></tr> <tr class="separator:a06a56d9b78aea6ca81df98b0e3a04744"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afa87375a9880443c1bf4970d53d839ee"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#afa87375a9880443c1bf4970d53d839ee">getSystemId</a> () const </td></tr> <tr class="separator:afa87375a9880443c1bf4970d53d839ee"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a36ed06e4d9d672ed9fa00326a90f7178"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a36ed06e4d9d672ed9fa00326a90f7178">getSchemaLocation</a> () const </td></tr> <tr class="separator:a36ed06e4d9d672ed9fa00326a90f7178"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3d15e5a7f6cc8b254e47d1adefaef2d8"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a3d15e5a7f6cc8b254e47d1adefaef2d8">getBaseURI</a> () const </td></tr> <tr class="separator:a3d15e5a7f6cc8b254e47d1adefaef2d8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8c498d10b53f15eca067fec1bd7ba634"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#a8c498d10b53f15eca067fec1bd7ba634">getNameSpace</a> () const </td></tr> <tr class="separator:a8c498d10b53f15eca067fec1bd7ba634"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af30d4bfa42e1728b00c391f2c5c4f8ec"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classLocator.html">Locator</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLResourceIdentifier.html#af30d4bfa42e1728b00c391f2c5c4f8ec">getLocator</a> () const </td></tr> <tr class="separator:af30d4bfa42e1728b00c391f2c5c4f8ec"><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 class is used along with <a class="el" href="classXMLEntityResolver.html" title="Revised interface for resolving entities. ">XMLEntityResolver</a> to resolve entities. Instead of passing publicId and systemId on the resolveEntity call, as is done with the SAX entity resolver, an object of type <a class="el" href="classXMLResourceIdentifier.html">XMLResourceIdentifier</a> is passed. By calling the <a class="el" href="classXMLResourceIdentifier.html#aec01b34f3cb604088e92c2e399af7f32">getResourceIdentifierType()</a> method the user can determine which data members are available for inspection:</p> <table border="1"> <tr> <td>ResourceIdentifierType </td><td>Available Data Members </td></tr> <tr> <td>SchemaGrammar </td><td>schemaLocation, nameSpace & baseURI (current document) </td></tr> <tr> <td>SchemaImport </td><td>schemaLocation, nameSpace & baseURI (current document) </td></tr> <tr> <td>SchemaInclude </td><td>schemaLocation & baseURI (current document) </td></tr> <tr> <td>SchemaRedefine </td><td>schemaLocation & baseURI (current document) </td></tr> <tr> <td>ExternalEntity </td><td>systemId, publicId & baseURI (some items may be NULL) </td></tr> </table> <p>The following resolver would provide the application with a special character stream for the entity with the system identifier "http://www.myhost.com/today":</p> <p><code> #include <<a class="el" href="XMLEntityResolver_8hpp.html">xercesc/util/XMLEntityResolver.hpp</a>><br /> #include <<a class="el" href="InputSource_8hpp.html">xercesc/sax/InputSource.hpp</a>><br /> <br />  class MyResolver : public <a class="el" href="classXMLEntityResolver.html" title="Revised interface for resolving entities. ">XMLEntityResolver</a> {<br />   public:<br />    <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> resolveEntity (XMLResourceIdentifier* xmlri);<br />    ...<br />   };<br /> <br />   MyResolver::resolveEntity(XMLResourceIdentifier* xmlri) {<br />    switch(xmlri-><a class="el" href="classXMLResourceIdentifier.html#aec01b34f3cb604088e92c2e399af7f32">getResourceIdentifierType()</a>) {<br />     case XMLResourceIdentifier::SystemId:<br />      if (<a class="el" href="classXMLString.html#a7ac8e671c8b93126d67ded235174e257" title="Lexicographically compares str1 and str2 and returns a value indicating their relationship. ">XMLString::compareString</a>(xmlri-><a class="el" href="classXMLResourceIdentifier.html#afa87375a9880443c1bf4970d53d839ee">getSystemId()</a>, "http://www.myhost.com/today")) {<br />       MyReader* reader = new MyReader();<br />       return new <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource(reader)</a>;<br />      } else {<br />       return null;<br />      }<br />      break;<br />     default:<br />      return null;<br />    }<br />   }</code></p> <dl class="section see"><dt>See also</dt><dd><a class="el" href="classSAXParser.html#aeb15bc32ebbe9e3b178ae7108a1bd0c5" title="This method installs the user specified entity resolver on the parser. ">SAXParser::setXMLEntityResolver</a> </dd> <dd> <a class="el" href="classInputSource.html#a601a7aa7124e2d8e9664eda9aea6b622" title="Default constructor. ">InputSource::InputSource</a> </dd></dl> </div><h2 class="groupheader">Member Enumeration Documentation</h2> <a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1b">XMLResourceIdentifier::ResourceIdentifierType</a></td> </tr> </table> </div><div class="memdoc"> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1baadeb132aac2245a91375265a3d1d58fc"></a>SchemaGrammar </td><td class="fielddoc"> </td></tr> <tr><td class="fieldname"><a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1ba5655c9970788728b92b1d06afc40fef9"></a>SchemaImport </td><td class="fielddoc"> </td></tr> <tr><td class="fieldname"><a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1ba64b760e1eaa016c13a35229981a5a3d5"></a>SchemaInclude </td><td class="fielddoc"> </td></tr> <tr><td class="fieldname"><a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1ba36dbb98579903d467d8ae48b1138d99e"></a>SchemaRedefine </td><td class="fielddoc"> </td></tr> <tr><td class="fieldname"><a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1ba162c3d13603e38bf50660c919ca0c9f1"></a>ExternalEntity </td><td class="fielddoc"> </td></tr> <tr><td class="fieldname"><a class="anchor" id="a439cfcd30999d4de0c73ca12f1695f1ba48449f5e9980f32659247783e1adf74e"></a>UnKnown </td><td class="fielddoc"> </td></tr> </table>
</div> </div> <h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a758049c52d659e71a407cb38c2bee74e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">XMLResourceIdentifier::XMLResourceIdentifier </td> <td>(</td> <td class="paramtype">const <a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1b">ResourceIdentifierType</a> </td> <td class="paramname"><em>resourceIdentitiferType</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>systemId</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>nameSpace</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>publicId</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>baseURI</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classLocator.html">Locator</a> * </td> <td class="paramname"><em>locator</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc">
<p>Constructor. </p>
</div> </div> <a class="anchor" id="a81a101d0cadd0341b383b93b43c298e0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">XMLResourceIdentifier::~XMLResourceIdentifier </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
<p>Destructor. </p>
</div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a3d15e5a7f6cc8b254e47d1adefaef2d8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * XMLResourceIdentifier::getBaseURI </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="af30d4bfa42e1728b00c391f2c5c4f8ec"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classLocator.html">Locator</a> * XMLResourceIdentifier::getLocator </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a8c498d10b53f15eca067fec1bd7ba634"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * XMLResourceIdentifier::getNameSpace </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a06a56d9b78aea6ca81df98b0e3a04744"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * XMLResourceIdentifier::getPublicId </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="aec01b34f3cb604088e92c2e399af7f32"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classXMLResourceIdentifier.html#a439cfcd30999d4de0c73ca12f1695f1b">XMLResourceIdentifier::ResourceIdentifierType</a> XMLResourceIdentifier::getResourceIdentifierType </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a36ed06e4d9d672ed9fa00326a90f7178"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * XMLResourceIdentifier::getSchemaLocation </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="afa87375a9880443c1bf4970d53d839ee"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * XMLResourceIdentifier::getSystemId </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc">
</div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="XMLResourceIdentifier_8hpp_source.html">XMLResourceIdentifier.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>
|