1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>lxml.etree._ResolverRegistry</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
45 <a href="lxml-module.html">Package lxml</a> ::
46 <a href="lxml.etree-module.html">Module etree</a> ::
47 Class _ResolverRegistry
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="lxml.etree._ResolverRegistry-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class _ResolverRegistry</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <strong class="uidshort">_ResolverRegistry</strong>
72 <!-- ==================== INSTANCE METHODS ==================== -->
73 <a name="section-InstanceMethods"></a>
74 <table class="summary" border="1" cellpadding="3"
75 cellspacing="0" width="100%" bgcolor="white">
76 <tr bgcolor="#70b0f0" class="table-header">
77 <td colspan="2" class="table-header">
78 <table border="0" cellpadding="0" cellspacing="0" width="100%">
80 <td align="left"><span class="table-header">Instance Methods</span></td>
81 <td align="right" valign="top"
82 ><span class="options">[<a href="#section-InstanceMethods"
83 class="privatelink" onclick="toggle_private();"
84 >hide private</a>]</span></td>
90 <td width="15%" align="right" valign="top" class="summary">
91 <span class="summary-type">a new object with type S, a subtype of T</span>
92 </td><td class="summary">
93 <table width="100%" cellpadding="0" cellspacing="0" border="0">
95 <td><span class="summary-sig"><a href="lxml.etree._ResolverRegistry-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
96 <span class="summary-sig-arg">S</span>,
97 <span class="summary-sig-arg">...</span>)</span></td>
98 <td align="right" valign="top">
108 <td width="15%" align="right" valign="top" class="summary">
109 <span class="summary-type"> </span>
110 </td><td class="summary">
111 <table width="100%" cellpadding="0" cellspacing="0" border="0">
113 <td><span class="summary-sig"><a href="lxml.etree._ResolverRegistry-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">x</span>)</span><br />
115 <td align="right" valign="top">
125 <td width="15%" align="right" valign="top" class="summary">
126 <span class="summary-type"> </span>
127 </td><td class="summary">
128 <table width="100%" cellpadding="0" cellspacing="0" border="0">
130 <td><span class="summary-sig"><a href="lxml.etree._ResolverRegistry-class.html#add" class="summary-sig-name">add</a>(<span class="summary-sig-arg">self</span>,
131 <span class="summary-sig-arg">resolver</span>)</span><br />
132 Register a resolver.</td>
133 <td align="right" valign="top">
143 <td width="15%" align="right" valign="top" class="summary">
144 <span class="summary-type"> </span>
145 </td><td class="summary">
146 <table width="100%" cellpadding="0" cellspacing="0" border="0">
148 <td><span class="summary-sig"><a name="copy"></a><span class="summary-sig-name">copy</span>(<span class="summary-sig-arg">self</span>)</span></td>
149 <td align="right" valign="top">
159 <td width="15%" align="right" valign="top" class="summary">
160 <span class="summary-type"> </span>
161 </td><td class="summary">
162 <table width="100%" cellpadding="0" cellspacing="0" border="0">
164 <td><span class="summary-sig"><a name="remove"></a><span class="summary-sig-name">remove</span>(<span class="summary-sig-arg">self</span>,
165 <span class="summary-sig-arg">resolver</span>)</span></td>
166 <td align="right" valign="top">
176 <td width="15%" align="right" valign="top" class="summary">
177 <span class="summary-type"> </span>
178 </td><td class="summary">
179 <table width="100%" cellpadding="0" cellspacing="0" border="0">
181 <td><span class="summary-sig"><a name="resolve"></a><span class="summary-sig-name">resolve</span>(<span class="summary-sig-arg">self</span>,
182 <span class="summary-sig-arg">system_url</span>,
183 <span class="summary-sig-arg">public_id</span>,
184 <span class="summary-sig-arg">context</span>)</span></td>
185 <td align="right" valign="top">
195 <td colspan="2" class="summary">
196 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
197 <code>__delattr__</code>,
198 <code>__format__</code>,
199 <code>__getattribute__</code>,
200 <code>__hash__</code>,
201 <code>__init__</code>,
202 <code>__reduce__</code>,
203 <code>__reduce_ex__</code>,
204 <code>__setattr__</code>,
205 <code>__sizeof__</code>,
206 <code>__str__</code>,
207 <code>__subclasshook__</code>
212 <!-- ==================== PROPERTIES ==================== -->
213 <a name="section-Properties"></a>
214 <table class="summary" border="1" cellpadding="3"
215 cellspacing="0" width="100%" bgcolor="white">
216 <tr bgcolor="#70b0f0" class="table-header">
217 <td colspan="2" class="table-header">
218 <table border="0" cellpadding="0" cellspacing="0" width="100%">
220 <td align="left"><span class="table-header">Properties</span></td>
221 <td align="right" valign="top"
222 ><span class="options">[<a href="#section-Properties"
223 class="privatelink" onclick="toggle_private();"
224 >hide private</a>]</span></td>
230 <td colspan="2" class="summary">
231 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
232 <code>__class__</code>
237 <!-- ==================== METHOD DETAILS ==================== -->
238 <a name="section-MethodDetails"></a>
239 <table class="details" border="1" cellpadding="3"
240 cellspacing="0" width="100%" bgcolor="white">
241 <tr bgcolor="#70b0f0" class="table-header">
242 <td colspan="2" class="table-header">
243 <table border="0" cellpadding="0" cellspacing="0" width="100%">
245 <td align="left"><span class="table-header">Method Details</span></td>
246 <td align="right" valign="top"
247 ><span class="options">[<a href="#section-MethodDetails"
248 class="privatelink" onclick="toggle_private();"
249 >hide private</a>]</span></td>
255 <a name="__new__"></a>
257 <table class="details" border="1" cellpadding="3"
258 cellspacing="0" width="100%" bgcolor="white">
260 <table width="100%" cellpadding="0" cellspacing="0" border="0">
261 <tr valign="top"><td>
262 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
263 <span class="sig-arg">S</span>,
264 <span class="sig-arg">...</span>)</span>
266 </td><td align="right" valign="top"
273 <dt>Returns: a new object with type S, a subtype of T</dt>
280 <a name="__repr__"></a>
282 <table class="details" border="1" cellpadding="3"
283 cellspacing="0" width="100%" bgcolor="white">
285 <table width="100%" cellpadding="0" cellspacing="0" border="0">
286 <tr valign="top"><td>
287 <h3 class="epydoc"><span class="sig"><span class="sig-name">__repr__</span>(<span class="sig-arg">x</span>)</span>
288 <br /><em class="fname">(Representation operator)</em>
290 </td><td align="right" valign="top"
305 <table class="details" border="1" cellpadding="3"
306 cellspacing="0" width="100%" bgcolor="white">
308 <table width="100%" cellpadding="0" cellspacing="0" border="0">
309 <tr valign="top"><td>
310 <h3 class="epydoc"><span class="sig"><span class="sig-name">add</span>(<span class="sig-arg">self</span>,
311 <span class="sig-arg">resolver</span>)</span>
313 </td><td align="right" valign="top"
318 <p>Register a resolver.</p>
319 <p>For each requested entity, the 'resolve' method of the resolver will
320 be called and the result will be passed to the parser. If this method
321 returns None, the request will be delegated to other resolvers or the
322 default resolver. The resolvers will be tested in an arbitrary order
323 until the first match is found.</p>
329 <!-- ==================== NAVIGATION BAR ==================== -->
330 <table class="navbar" border="0" width="100%" cellpadding="0"
331 bgcolor="#a0c0ff" cellspacing="0">
334 <th> <a
335 href="lxml-module.html">Home</a> </th>
338 <th> <a
339 href="module-tree.html">Trees</a> </th>
342 <th> <a
343 href="identifier-index.html">Indices</a> </th>
346 <th> <a
347 href="help.html">Help</a> </th>
349 <!-- Project homepage -->
350 <th class="navbar" align="right" width="100%">
351 <table border="0" cellpadding="0" cellspacing="0">
352 <tr><th class="navbar" align="center"
353 ><a class="navbar" target="_top" href="/">lxml API</a></th>
357 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
359 <td align="left" class="footer">
360 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:19 2012
362 <td align="right" class="footer">
363 <a target="mainFrame" href="http://epydoc.sourceforge.net"
364 >http://epydoc.sourceforge.net</a>
369 <script type="text/javascript">
371 // Private objects are initially displayed (because if
372 // javascript is turned off then we want them to be
373 // visible); but by default, we want to hide them. So hide
374 // them unless we have a cookie that says to show them.