PageRenderTime 28ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/public_html/apidocs/pymine.beautifulsoup.BeautifulSoup.NavigableString.html

http://pymine.googlecode.com/
HTML | 310 lines | 212 code | 98 blank | 0 comment | 0 complexity | a89d8210f5cd785153cf5d5ca5f07949 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "DTD/xhtml1-strict.dtd">
  4. <html>
  5. <head>
  6. <title>API docs for &ldquo;pymine.beautifulsoup.BeautifulSoup.NavigableString&rdquo;</title>
  7. <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
  8. <link href="apidocs.css" type="text/css" rel="stylesheet" />
  9. </head>
  10. <body>
  11. <h1 class="class">Class p.b.B.NavigableString(<span title="unicode">unicode</span>, <a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html">PageElement</a>):</h1>
  12. <p>
  13. <span id="part">Part of <a href="pymine.html">pymine</a>.<a href="pymine.beautifulsoup.html">beautifulsoup</a>.<a href="pymine.beautifulsoup.BeautifulSoup.html">BeautifulSoup</a></span>
  14. <a href="classIndex.html#pymine.beautifulsoup.BeautifulSoup.NavigableString">View In Hierarchy</a>
  15. </p>
  16. <div>
  17. <p>Known subclasses: <a href="pymine.beautifulsoup.BeautifulSoup.CData.html">pymine.beautifulsoup.BeautifulSoup.CData</a>, <a href="pymine.beautifulsoup.BeautifulSoup.Comment.html">pymine.beautifulsoup.BeautifulSoup.Comment</a>, <a href="pymine.beautifulsoup.BeautifulSoup.Declaration.html">pymine.beautifulsoup.BeautifulSoup.Declaration</a>, <a href="pymine.beautifulsoup.BeautifulSoup.ProcessingInstruction.html">pymine.beautifulsoup.BeautifulSoup.ProcessingInstruction</a></p>
  18. </div>
  19. <div class="undocumented">No class docstring</div>
  20. <div id="splitTables">
  21. <table class="children sortable" id="id46">
  22. <tr class="method">
  23. <td>Method</td>
  24. <td><a href="pymine.beautifulsoup.BeautifulSoup.NavigableString.html#__new__">__new__</a></td>
  25. <td><span>Create a new NavigableString.</span></td>
  26. </tr><tr class="method">
  27. <td>Method</td>
  28. <td><a href="pymine.beautifulsoup.BeautifulSoup.NavigableString.html#__getnewargs__">__getnewargs__</a></td>
  29. <td><span class="undocumented">Undocumented</span></td>
  30. </tr><tr class="method">
  31. <td>Method</td>
  32. <td><a href="pymine.beautifulsoup.BeautifulSoup.NavigableString.html#__getattr__">__getattr__</a></td>
  33. <td><span>text.string gives you text. This is for backwards</span></td>
  34. </tr><tr class="method">
  35. <td>Method</td>
  36. <td><a href="pymine.beautifulsoup.BeautifulSoup.NavigableString.html#__unicode__">__unicode__</a></td>
  37. <td><span class="undocumented">Undocumented</span></td>
  38. </tr><tr class="method">
  39. <td>Method</td>
  40. <td><a href="pymine.beautifulsoup.BeautifulSoup.NavigableString.html#__str__">__str__</a></td>
  41. <td><span class="undocumented">Undocumented</span></td>
  42. </tr>
  43. </table>
  44. <p>
  45. Inherited from <a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html">PageElement</a>:
  46. </p>
  47. <table class="children sortable" id="id47">
  48. <tr class="basemethod">
  49. <td>Method</td>
  50. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#setup">setup</a></td>
  51. <td><span>Sets up the initial relations between this element and</span></td>
  52. </tr><tr class="basemethod">
  53. <td>Method</td>
  54. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#replaceWith">replaceWith</a></td>
  55. <td><span class="undocumented">Undocumented</span></td>
  56. </tr><tr class="basemethod">
  57. <td>Method</td>
  58. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#replaceWithChildren">replaceWithChildren</a></td>
  59. <td><span class="undocumented">Undocumented</span></td>
  60. </tr><tr class="basemethod">
  61. <td>Method</td>
  62. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#extract">extract</a></td>
  63. <td><span>Destructively rips this element out of the tree.</span></td>
  64. </tr><tr class="basemethod">
  65. <td>Method</td>
  66. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#_lastRecursiveChild">_lastRecursiveChild</a></td>
  67. <td><span>Finds the last element beneath this object to be parsed.</span></td>
  68. </tr><tr class="basemethod">
  69. <td>Method</td>
  70. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#insert">insert</a></td>
  71. <td><span class="undocumented">Undocumented</span></td>
  72. </tr><tr class="basemethod">
  73. <td>Method</td>
  74. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#append">append</a></td>
  75. <td><span>Appends the given tag to the contents of this tag.</span></td>
  76. </tr><tr class="basemethod">
  77. <td>Method</td>
  78. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findNext">findNext</a></td>
  79. <td><span>Returns the first item that matches the given criteria and</span></td>
  80. </tr><tr class="basemethod">
  81. <td>Method</td>
  82. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findAllNext">findAllNext</a></td>
  83. <td><span>Returns all items that match the given criteria and appear</span></td>
  84. </tr><tr class="basemethod">
  85. <td>Method</td>
  86. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findNextSibling">findNextSibling</a></td>
  87. <td><span>Returns the closest sibling to this Tag that matches the</span></td>
  88. </tr><tr class="basemethod">
  89. <td>Method</td>
  90. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findNextSiblings">findNextSiblings</a></td>
  91. <td><span>Returns the siblings of this Tag that match the given</span></td>
  92. </tr><tr class="basemethod">
  93. <td>Method</td>
  94. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findPrevious">findPrevious</a></td>
  95. <td><span>Returns the first item that matches the given criteria and</span></td>
  96. </tr><tr class="basemethod">
  97. <td>Method</td>
  98. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findAllPrevious">findAllPrevious</a></td>
  99. <td><span>Returns all items that match the given criteria and appear</span></td>
  100. </tr><tr class="basemethod">
  101. <td>Method</td>
  102. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findPreviousSibling">findPreviousSibling</a></td>
  103. <td><span>Returns the closest sibling to this Tag that matches the</span></td>
  104. </tr><tr class="basemethod">
  105. <td>Method</td>
  106. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findPreviousSiblings">findPreviousSiblings</a></td>
  107. <td><span>Returns the siblings of this Tag that match the given</span></td>
  108. </tr><tr class="basemethod">
  109. <td>Method</td>
  110. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findParent">findParent</a></td>
  111. <td><span>Returns the closest parent of this Tag that matches the given</span></td>
  112. </tr><tr class="basemethod">
  113. <td>Method</td>
  114. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#findParents">findParents</a></td>
  115. <td><span>Returns the parents of this Tag that match the given</span></td>
  116. </tr><tr class="basemethod">
  117. <td>Method</td>
  118. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#_findOne">_findOne</a></td>
  119. <td><span class="undocumented">Undocumented</span></td>
  120. </tr><tr class="basemethod">
  121. <td>Method</td>
  122. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#_findAll">_findAll</a></td>
  123. <td><span>Iterates over a generator looking for things that match.</span></td>
  124. </tr><tr class="basemethod">
  125. <td>Method</td>
  126. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#nextGenerator">nextGenerator</a></td>
  127. <td><span class="undocumented">Undocumented</span></td>
  128. </tr><tr class="basemethod">
  129. <td>Method</td>
  130. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#nextSiblingGenerator">nextSiblingGenerator</a></td>
  131. <td><span class="undocumented">Undocumented</span></td>
  132. </tr><tr class="basemethod">
  133. <td>Method</td>
  134. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#previousGenerator">previousGenerator</a></td>
  135. <td><span class="undocumented">Undocumented</span></td>
  136. </tr><tr class="basemethod">
  137. <td>Method</td>
  138. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#previousSiblingGenerator">previousSiblingGenerator</a></td>
  139. <td><span class="undocumented">Undocumented</span></td>
  140. </tr><tr class="basemethod">
  141. <td>Method</td>
  142. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#parentGenerator">parentGenerator</a></td>
  143. <td><span class="undocumented">Undocumented</span></td>
  144. </tr><tr class="basemethod">
  145. <td>Method</td>
  146. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#substituteEncoding">substituteEncoding</a></td>
  147. <td><span class="undocumented">Undocumented</span></td>
  148. </tr><tr class="basemethod">
  149. <td>Method</td>
  150. <td><a href="pymine.beautifulsoup.BeautifulSoup.PageElement.html#toEncoding">toEncoding</a></td>
  151. <td><span>Encodes an object to a string in some encoding, or to Unicode.</span></td>
  152. </tr>
  153. </table>
  154. </div>
  155. <div class="function">
  156. <a name="pymine.beautifulsoup.BeautifulSoup.NavigableString.__new__"></a>
  157. <a name="__new__"></a>
  158. <div class="functionHeader">
  159. def __new__(cls, value):
  160. </div>
  161. <div class="functionBody">
  162. <div>Create a new NavigableString.</p>
  163. <p>When unpickling a NavigableString, this method is called with the string
  164. in DEFAULT_OUTPUT_ENCODING. That encoding needs to be passed in to the
  165. superclass's __new__ or the superclass won't know how to handle non-ASCII
  166. characters.<table class="fieldTable"></table></div>
  167. </div>
  168. </div><div class="function">
  169. <a name="pymine.beautifulsoup.BeautifulSoup.NavigableString.__getnewargs__"></a>
  170. <a name="__getnewargs__"></a>
  171. <div class="functionHeader">
  172. def __getnewargs__(self):
  173. </div>
  174. <div class="functionBody">
  175. <div class="undocumented">Undocumented</div>
  176. </div>
  177. </div><div class="function">
  178. <a name="pymine.beautifulsoup.BeautifulSoup.NavigableString.__getattr__"></a>
  179. <a name="__getattr__"></a>
  180. <div class="functionHeader">
  181. def __getattr__(self, attr):
  182. </div>
  183. <div class="functionBody">
  184. <div>text.string gives you text. This is for backwards compatibility for
  185. Navigable*String, but for CData* it lets you get the string without the
  186. CData wrapper.<table class="fieldTable"></table></div>
  187. </div>
  188. </div><div class="function">
  189. <a name="pymine.beautifulsoup.BeautifulSoup.NavigableString.__unicode__"></a>
  190. <a name="__unicode__"></a>
  191. <div class="functionHeader">
  192. def __unicode__(self):
  193. </div>
  194. <div class="functionBody">
  195. <div class="undocumented">Undocumented</div>
  196. </div>
  197. </div><div class="function">
  198. <a name="pymine.beautifulsoup.BeautifulSoup.NavigableString.__str__"></a>
  199. <a name="__str__"></a>
  200. <div class="functionHeader">
  201. def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING):
  202. </div>
  203. <div class="functionBody">
  204. <div class="interfaceinfo">overridden in <a href="pymine.beautifulsoup.BeautifulSoup.CData.html">pymine.beautifulsoup.BeautifulSoup.CData</a>, <a href="pymine.beautifulsoup.BeautifulSoup.Comment.html">pymine.beautifulsoup.BeautifulSoup.Comment</a>, <a href="pymine.beautifulsoup.BeautifulSoup.Declaration.html">pymine.beautifulsoup.BeautifulSoup.Declaration</a>, <a href="pymine.beautifulsoup.BeautifulSoup.ProcessingInstruction.html">pymine.beautifulsoup.BeautifulSoup.ProcessingInstruction</a></div>
  205. <div class="undocumented">Undocumented</div>
  206. </div>
  207. </div>
  208. <address>
  209. <a href="index.html">API Documentation</a> for pymine, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-04-07 23:15:24.
  210. </address>
  211. </body>
  212. </html>