Imported Upstream version 4.5.2
[platform/upstream/python-lxml.git] / doc / html / api / lxml.etree.ElementDefaultClassLookup-class.html
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">
5 <head>
6   <title>lxml.etree.ElementDefaultClassLookup</title>
7   <link rel="stylesheet" href="epydoc.css" type="text/css" />
8   <script type="text/javascript" src="epydoc.js"></script>
9 </head>
10
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
12       alink="#204080">
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15        bgcolor="#a0c0ff" cellspacing="0">
16   <tr valign="middle">
17   <!-- Home link -->
18       <th>&nbsp;&nbsp;&nbsp;<a
19         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21   <!-- Tree link -->
22       <th>&nbsp;&nbsp;&nbsp;<a
23         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25   <!-- Index link -->
26       <th>&nbsp;&nbsp;&nbsp;<a
27         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29   <!-- Help link -->
30       <th>&nbsp;&nbsp;&nbsp;<a
31         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
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>
38           </tr></table></th>
39   </tr>
40 </table>
41 <table width="100%" cellpadding="0" cellspacing="0">
42   <tr valign="top">
43     <td width="100%">
44       <span class="breadcrumbs">
45         <a href="lxml-module.html">Package&nbsp;lxml</a> ::
46         <a href="lxml.etree-module.html">Module&nbsp;etree</a> ::
47         Class&nbsp;ElementDefaultClassLookup
48       </span>
49     </td>
50     <td>
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&nbsp;private</a>]</span></td></tr>
55         <tr><td align="right"><span class="options"
56             >[<a href="frames.html" target="_top">frames</a
57             >]&nbsp;|&nbsp;<a href="lxml.etree.ElementDefaultClassLookup-class.html"
58             target="_top">no&nbsp;frames</a>]</span></td></tr>
59       </table>
60     </td>
61   </tr>
62 </table>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class ElementDefaultClassLookup</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
66         object --+    
67                  |    
68 <a href="lxml.etree.ElementClassLookup-class.html">ElementClassLookup</a> --+
69                      |
70                     <strong class="uidshort">ElementDefaultClassLookup</strong>
71 </pre>
72
73 <hr />
74 <p>ElementDefaultClassLookup(self, element=None, comment=None, pi=None, entity=None)
75 Element class lookup scheme that always returns the default Element
76 class.</p>
77 <p>The keyword arguments <tt class="rst-docutils literal">element</tt>, <tt class="rst-docutils literal">comment</tt>, <tt class="rst-docutils literal">pi</tt> and <tt class="rst-docutils literal">entity</tt>
78 accept the respective Element classes.</p>
79
80 <!-- ==================== INSTANCE METHODS ==================== -->
81 <a name="section-InstanceMethods"></a>
82 <table class="summary" border="1" cellpadding="3"
83        cellspacing="0" width="100%" bgcolor="white">
84 <tr bgcolor="#70b0f0" class="table-header">
85   <td colspan="2" class="table-header">
86     <table border="0" cellpadding="0" cellspacing="0" width="100%">
87       <tr valign="top">
88         <td align="left"><span class="table-header">Instance Methods</span></td>
89         <td align="right" valign="top"
90          ><span class="options">[<a href="#section-InstanceMethods"
91          class="privatelink" onclick="toggle_private();"
92          >hide private</a>]</span></td>
93       </tr>
94     </table>
95   </td>
96 </tr>
97 <tr>
98     <td width="15%" align="right" valign="top" class="summary">
99       <span class="summary-type">&nbsp;</span>
100     </td><td class="summary">
101       <table width="100%" cellpadding="0" cellspacing="0" border="0">
102         <tr>
103           <td><span class="summary-sig"><a href="lxml.etree.ElementDefaultClassLookup-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
104         <span class="summary-sig-arg">element</span>=<span class="summary-sig-default">None</span>,
105         <span class="summary-sig-arg">comment</span>=<span class="summary-sig-default">None</span>,
106         <span class="summary-sig-arg">pi</span>=<span class="summary-sig-default">None</span>,
107         <span class="summary-sig-arg">entity</span>=<span class="summary-sig-default">None</span>)</span><br />
108       x.__init__(...) initializes x; see help(type(x)) for signature</td>
109           <td align="right" valign="top">
110             
111             
112           </td>
113         </tr>
114       </table>
115       
116     </td>
117   </tr>
118 <tr>
119     <td width="15%" align="right" valign="top" class="summary">
120       <span class="summary-type">a new object with type S, a subtype of T</span>
121     </td><td class="summary">
122       <table width="100%" cellpadding="0" cellspacing="0" border="0">
123         <tr>
124           <td><span class="summary-sig"><a href="lxml.etree.ElementDefaultClassLookup-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
125         <span class="summary-sig-arg">S</span>,
126         <span class="summary-sig-arg">...</span>)</span></td>
127           <td align="right" valign="top">
128             
129             
130           </td>
131         </tr>
132       </table>
133       
134     </td>
135   </tr>
136   <tr>
137     <td colspan="2" class="summary">
138     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
139       <code>__delattr__</code>,
140       <code>__format__</code>,
141       <code>__getattribute__</code>,
142       <code>__hash__</code>,
143       <code>__reduce__</code>,
144       <code>__reduce_ex__</code>,
145       <code>__repr__</code>,
146       <code>__setattr__</code>,
147       <code>__sizeof__</code>,
148       <code>__str__</code>,
149       <code>__subclasshook__</code>
150       </p>
151     </td>
152   </tr>
153 </table>
154 <!-- ==================== PROPERTIES ==================== -->
155 <a name="section-Properties"></a>
156 <table class="summary" border="1" cellpadding="3"
157        cellspacing="0" width="100%" bgcolor="white">
158 <tr bgcolor="#70b0f0" class="table-header">
159   <td colspan="2" class="table-header">
160     <table border="0" cellpadding="0" cellspacing="0" width="100%">
161       <tr valign="top">
162         <td align="left"><span class="table-header">Properties</span></td>
163         <td align="right" valign="top"
164          ><span class="options">[<a href="#section-Properties"
165          class="privatelink" onclick="toggle_private();"
166          >hide private</a>]</span></td>
167       </tr>
168     </table>
169   </td>
170 </tr>
171 <tr>
172     <td width="15%" align="right" valign="top" class="summary">
173       <span class="summary-type">&nbsp;</span>
174     </td><td class="summary">
175         <a name="comment_class"></a><span class="summary-name">comment_class</span>
176     </td>
177   </tr>
178 <tr>
179     <td width="15%" align="right" valign="top" class="summary">
180       <span class="summary-type">&nbsp;</span>
181     </td><td class="summary">
182         <a name="element_class"></a><span class="summary-name">element_class</span>
183     </td>
184   </tr>
185 <tr>
186     <td width="15%" align="right" valign="top" class="summary">
187       <span class="summary-type">&nbsp;</span>
188     </td><td class="summary">
189         <a name="entity_class"></a><span class="summary-name">entity_class</span>
190     </td>
191   </tr>
192 <tr>
193     <td width="15%" align="right" valign="top" class="summary">
194       <span class="summary-type">&nbsp;</span>
195     </td><td class="summary">
196         <a name="pi_class"></a><span class="summary-name">pi_class</span>
197     </td>
198   </tr>
199   <tr>
200     <td colspan="2" class="summary">
201     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
202       <code>__class__</code>
203       </p>
204     </td>
205   </tr>
206 </table>
207 <!-- ==================== METHOD DETAILS ==================== -->
208 <a name="section-MethodDetails"></a>
209 <table class="details" border="1" cellpadding="3"
210        cellspacing="0" width="100%" bgcolor="white">
211 <tr bgcolor="#70b0f0" class="table-header">
212   <td colspan="2" class="table-header">
213     <table border="0" cellpadding="0" cellspacing="0" width="100%">
214       <tr valign="top">
215         <td align="left"><span class="table-header">Method Details</span></td>
216         <td align="right" valign="top"
217          ><span class="options">[<a href="#section-MethodDetails"
218          class="privatelink" onclick="toggle_private();"
219          >hide private</a>]</span></td>
220       </tr>
221     </table>
222   </td>
223 </tr>
224 </table>
225 <a name="__init__"></a>
226 <div>
227 <table class="details" border="1" cellpadding="3"
228        cellspacing="0" width="100%" bgcolor="white">
229 <tr><td>
230   <table width="100%" cellpadding="0" cellspacing="0" border="0">
231   <tr valign="top"><td>
232   <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
233         <span class="sig-arg">element</span>=<span class="sig-default">None</span>,
234         <span class="sig-arg">comment</span>=<span class="sig-default">None</span>,
235         <span class="sig-arg">pi</span>=<span class="sig-default">None</span>,
236         <span class="sig-arg">entity</span>=<span class="sig-default">None</span>)</span>
237     <br /><em class="fname">(Constructor)</em>
238   </h3>
239   </td><td align="right" valign="top"
240     >&nbsp;
241     </td>
242   </tr></table>
243   
244   x.__init__(...) initializes x; see help(type(x)) for signature
245   <dl class="fields">
246     <dt>Overrides:
247         object.__init__
248     </dt>
249   </dl>
250 </td></tr></table>
251 </div>
252 <a name="__new__"></a>
253 <div>
254 <table class="details" border="1" cellpadding="3"
255        cellspacing="0" width="100%" bgcolor="white">
256 <tr><td>
257   <table width="100%" cellpadding="0" cellspacing="0" border="0">
258   <tr valign="top"><td>
259   <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
260         <span class="sig-arg">S</span>,
261         <span class="sig-arg">...</span>)</span>
262   </h3>
263   </td><td align="right" valign="top"
264     >&nbsp;
265     </td>
266   </tr></table>
267   
268   
269   <dl class="fields">
270     <dt>Returns: a new object with type S, a subtype of T</dt>
271     <dt>Overrides:
272         object.__new__
273     </dt>
274   </dl>
275 </td></tr></table>
276 </div>
277 <br />
278 <!-- ==================== NAVIGATION BAR ==================== -->
279 <table class="navbar" border="0" width="100%" cellpadding="0"
280        bgcolor="#a0c0ff" cellspacing="0">
281   <tr valign="middle">
282   <!-- Home link -->
283       <th>&nbsp;&nbsp;&nbsp;<a
284         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
285
286   <!-- Tree link -->
287       <th>&nbsp;&nbsp;&nbsp;<a
288         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
289
290   <!-- Index link -->
291       <th>&nbsp;&nbsp;&nbsp;<a
292         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
293
294   <!-- Help link -->
295       <th>&nbsp;&nbsp;&nbsp;<a
296         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
297
298   <!-- Project homepage -->
299       <th class="navbar" align="right" width="100%">
300         <table border="0" cellpadding="0" cellspacing="0">
301           <tr><th class="navbar" align="center"
302             ><a class="navbar" target="_top" href="/">lxml API</a></th>
303           </tr></table></th>
304   </tr>
305 </table>
306 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
307   <tr>
308     <td align="left" class="footer">
309     Generated by Epydoc 3.0.1
310     on Thu Jul  9 18:29:53 2020
311     </td>
312     <td align="right" class="footer">
313       <a target="mainFrame" href="http://epydoc.sourceforge.net"
314         >http://epydoc.sourceforge.net</a>
315     </td>
316   </tr>
317 </table>
318
319 <script type="text/javascript">
320   <!--
321   // Private objects are initially displayed (because if
322   // javascript is turned off then we want them to be
323   // visible); but by default, we want to hide them.  So hide
324   // them unless we have a cookie that says to show them.
325   checkCookie();
326   // -->
327 </script>
328 </body>
329 </html>