This project simulates the turing machine https://cromer.cl/mt
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.

LeerXML.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="es">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_131) on Wed Jul 05 23:39:41 CLT 2017 -->
  6. <title>LeerXML</title>
  7. <meta name="date" content="2017-07-05">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title = "LeerXML";
  16. }
  17. }
  18. catch (err) {
  19. }
  20. //-->
  21. var methods = {"i0": 10, "i1": 10, "i2": 10, "i3": 10};
  22. var tabs = {65535: ["t0", "All Methods"], 2: ["t2", "Instance Methods"], 8: ["t4", "Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a>
  36. </div>
  37. <a name="navbar.top.firstrow">
  38. <!-- -->
  39. </a>
  40. <ul class="navList" title="Navigation">
  41. <li><a href="../../../cl/cromer/mt/package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/LeerXML.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../index-files/index-1.html">Index</a></li>
  47. <li><a href="../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li>
  53. <a href="../../../cl/cromer/mt/EstadosFinalesController.html" title="class in cl.cromer.mt"><span class="typeNameLink">Prev&nbsp;Class</span></a>
  54. </li>
  55. <li>
  56. <a href="../../../cl/cromer/mt/LoteController.html" title="class in cl.cromer.mt"><span class="typeNameLink">Next&nbsp;Class</span></a>
  57. </li>
  58. </ul>
  59. <ul class="navList">
  60. <li><a href="../../../index.html?cl/cromer/mt/LeerXML.html" target="_top">Frames</a></li>
  61. <li><a href="LeerXML.html" target="_top">No&nbsp;Frames</a></li>
  62. </ul>
  63. <ul class="navList" id="allclasses_navbar_top">
  64. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  65. </ul>
  66. <div>
  67. <script type="text/javascript"><!--
  68. allClassesLink = document.getElementById("allclasses_navbar_top");
  69. if (window == top) {
  70. allClassesLink.style.display = "block";
  71. }
  72. else {
  73. allClassesLink.style.display = "none";
  74. }
  75. //-->
  76. </script>
  77. </div>
  78. <div>
  79. <ul class="subNavList">
  80. <li>Summary:&nbsp;</li>
  81. <li>Nested&nbsp;|&nbsp;</li>
  82. <li>Field&nbsp;|&nbsp;</li>
  83. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#method.summary">Method</a></li>
  85. </ul>
  86. <ul class="subNavList">
  87. <li>Detail:&nbsp;</li>
  88. <li>Field&nbsp;|&nbsp;</li>
  89. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  90. <li><a href="#method.detail">Method</a></li>
  91. </ul>
  92. </div>
  93. <a name="skip.navbar.top">
  94. <!-- -->
  95. </a></div>
  96. <!-- ========= END OF TOP NAVBAR ========= -->
  97. <!-- ======== START OF CLASS DATA ======== -->
  98. <div class="header">
  99. <div class="subTitle">cl.cromer.mt</div>
  100. <h2 title="Class LeerXML" class="title">Class LeerXML</h2>
  101. </div>
  102. <div class="contentContainer">
  103. <ul class="inheritance">
  104. <li>java.lang.Object</li>
  105. <li>
  106. <ul class="inheritance">
  107. <li>cl.cromer.mt.LeerXML</li>
  108. </ul>
  109. </li>
  110. </ul>
  111. <div class="description">
  112. <ul class="blockList">
  113. <li class="blockList">
  114. <hr>
  115. <br>
  116. <pre>class <span class="typeNameLabel">LeerXML</span>
  117. extends java.lang.Object</pre>
  118. <div class="block">Esta clase puede abrir y validar un archivo de XML. Se necesita un archivo
  119. mtbase.dtd
  120. </div>
  121. </li>
  122. </ul>
  123. </div>
  124. <div class="summary">
  125. <ul class="blockList">
  126. <li class="blockList">
  127. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  128. <ul class="blockList">
  129. <li class="blockList"><a name="constructor.summary">
  130. <!-- -->
  131. </a>
  132. <h3>Constructor Summary</h3>
  133. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  134. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  135. <tr>
  136. <th class="colOne" scope="col">Constructor and Description</th>
  137. </tr>
  138. <tr class="altColor">
  139. <td class="colOne">
  140. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/LeerXML.html#LeerXML--">LeerXML</a></span>()</code>&nbsp;
  141. </td>
  142. </tr>
  143. </table>
  144. </li>
  145. </ul>
  146. <!-- ========== METHOD SUMMARY =========== -->
  147. <ul class="blockList">
  148. <li class="blockList"><a name="method.summary">
  149. <!-- -->
  150. </a>
  151. <h3>Method Summary</h3>
  152. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  153. <caption>
  154. <span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span>
  155. </caption>
  156. <tr>
  157. <th class="colFirst" scope="col">Modifier and Type</th>
  158. <th class="colLast" scope="col">Method and Description</th>
  159. </tr>
  160. <tr id="i0" class="altColor">
  161. <td class="colFirst"><code>private org.w3c.dom.Document</code></td>
  162. <td class="colLast">
  163. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/LeerXML.html#createDocument-java.io.File-">createDocument</a></span>(java.io.File&nbsp;archivo)</code>
  164. <div class="block">Crear un documento de XML</div>
  165. </td>
  166. </tr>
  167. <tr id="i1" class="rowColor">
  168. <td class="colFirst"><code>private java.io.File</code></td>
  169. <td class="colLast">
  170. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/LeerXML.html#fixXML-java.io.File-">fixXML</a></span>(java.io.File&nbsp;original)</code>
  171. <div class="block">Arreglar el archivo de XML si no es valido.</div>
  172. </td>
  173. </tr>
  174. <tr id="i2" class="altColor">
  175. <td class="colFirst"><code>(package private) org.w3c.dom.Document</code></td>
  176. <td class="colLast">
  177. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/LeerXML.html#leerArchivo-java.io.File-">leerArchivo</a></span>(java.io.File&nbsp;archivo)</code>
  178. <div class="block">El metodo va a verificar que el archivo existe y que
  179. contiene XML valido.
  180. </div>
  181. </td>
  182. </tr>
  183. <tr id="i3" class="rowColor">
  184. <td class="colFirst"><code>private org.w3c.dom.Document</code></td>
  185. <td class="colLast">
  186. <code><span class="memberNameLink"><a href="../../../cl/cromer/mt/LeerXML.html#validarXML-java.io.File-">validarXML</a></span>(java.io.File&nbsp;original)</code>
  187. <div class="block">Este metodo se usa para validar el XML.</div>
  188. </td>
  189. </tr>
  190. </table>
  191. <ul class="blockList">
  192. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  193. <!-- -->
  194. </a>
  195. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  196. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString,
  197. wait, wait, wait</code></li>
  198. </ul>
  199. </li>
  200. </ul>
  201. </li>
  202. </ul>
  203. </div>
  204. <div class="details">
  205. <ul class="blockList">
  206. <li class="blockList">
  207. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  208. <ul class="blockList">
  209. <li class="blockList"><a name="constructor.detail">
  210. <!-- -->
  211. </a>
  212. <h3>Constructor Detail</h3>
  213. <a name="LeerXML--">
  214. <!-- -->
  215. </a>
  216. <ul class="blockListLast">
  217. <li class="blockList">
  218. <h4>LeerXML</h4>
  219. <pre>LeerXML()</pre>
  220. </li>
  221. </ul>
  222. </li>
  223. </ul>
  224. <!-- ============ METHOD DETAIL ========== -->
  225. <ul class="blockList">
  226. <li class="blockList"><a name="method.detail">
  227. <!-- -->
  228. </a>
  229. <h3>Method Detail</h3>
  230. <a name="leerArchivo-java.io.File-">
  231. <!-- -->
  232. </a>
  233. <ul class="blockList">
  234. <li class="blockList">
  235. <h4>leerArchivo</h4>
  236. <pre>org.w3c.dom.Document&nbsp;leerArchivo(java.io.File&nbsp;archivo)</pre>
  237. <div class="block">El metodo va a verificar que el archivo existe y que contiene
  238. XML valido. Si es valido devuelve el documento.
  239. </div>
  240. <dl>
  241. <dt><span class="paramLabel">Parameters:</span></dt>
  242. <dd><code>archivo</code> - Es el archivo a abrir.</dd>
  243. <dt><span class="returnLabel">Returns:</span></dt>
  244. <dd>Devuelve un document de XML o null si hay algun error.</dd>
  245. </dl>
  246. </li>
  247. </ul>
  248. <a name="createDocument-java.io.File-">
  249. <!-- -->
  250. </a>
  251. <ul class="blockList">
  252. <li class="blockList">
  253. <h4>createDocument</h4>
  254. <pre>private&nbsp;org.w3c.dom.Document&nbsp;createDocument(java.io.File&nbsp;archivo)</pre>
  255. <div class="block">Crear un documento de XML</div>
  256. <dl>
  257. <dt><span class="paramLabel">Parameters:</span></dt>
  258. <dd><code>archivo</code> - Es el archivo XML</dd>
  259. <dt><span class="returnLabel">Returns:</span></dt>
  260. <dd>Retorna un document del XML o null si hay algun error.</dd>
  261. </dl>
  262. </li>
  263. </ul>
  264. <a name="validarXML-java.io.File-">
  265. <!-- -->
  266. </a>
  267. <ul class="blockList">
  268. <li class="blockList">
  269. <h4>validarXML</h4>
  270. <pre>private&nbsp;org.w3c.dom.Document&nbsp;validarXML(java.io.File&nbsp;original)</pre>
  271. <div class="block">Este metodo se usa para validar el XML.</div>
  272. <dl>
  273. <dt><span class="paramLabel">Parameters:</span></dt>
  274. <dd><code>original</code> - es el archivo original del XML</dd>
  275. <dt><span class="returnLabel">Returns:</span></dt>
  276. <dd>Retorna un document de un XML arreglado, null si el xml no es coherente
  277. a lo que se pide
  278. </dd>
  279. </dl>
  280. </li>
  281. </ul>
  282. <a name="fixXML-java.io.File-">
  283. <!-- -->
  284. </a>
  285. <ul class="blockListLast">
  286. <li class="blockList">
  287. <h4>fixXML</h4>
  288. <pre>private&nbsp;java.io.File&nbsp;fixXML(java.io.File&nbsp;original)</pre>
  289. <div class="block">Arreglar el archivo de XML si no es valido.</div>
  290. <dl>
  291. <dt><span class="paramLabel">Parameters:</span></dt>
  292. <dd><code>original</code> - Es el archivo XML sin cambios</dd>
  293. <dt><span class="returnLabel">Returns:</span></dt>
  294. <dd>un file de XML adaptado para ser validado</dd>
  295. </dl>
  296. </li>
  297. </ul>
  298. </li>
  299. </ul>
  300. </li>
  301. </ul>
  302. </div>
  303. </div>
  304. <!-- ========= END OF CLASS DATA ========= -->
  305. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  306. <div class="bottomNav"><a name="navbar.bottom">
  307. <!-- -->
  308. </a>
  309. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a>
  310. </div>
  311. <a name="navbar.bottom.firstrow">
  312. <!-- -->
  313. </a>
  314. <ul class="navList" title="Navigation">
  315. <li><a href="../../../cl/cromer/mt/package-summary.html">Package</a></li>
  316. <li class="navBarCell1Rev">Class</li>
  317. <li><a href="class-use/LeerXML.html">Use</a></li>
  318. <li><a href="package-tree.html">Tree</a></li>
  319. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  320. <li><a href="../../../index-files/index-1.html">Index</a></li>
  321. <li><a href="../../../help-doc.html">Help</a></li>
  322. </ul>
  323. </div>
  324. <div class="subNav">
  325. <ul class="navList">
  326. <li>
  327. <a href="../../../cl/cromer/mt/EstadosFinalesController.html" title="class in cl.cromer.mt"><span class="typeNameLink">Prev&nbsp;Class</span></a>
  328. </li>
  329. <li>
  330. <a href="../../../cl/cromer/mt/LoteController.html" title="class in cl.cromer.mt"><span class="typeNameLink">Next&nbsp;Class</span></a>
  331. </li>
  332. </ul>
  333. <ul class="navList">
  334. <li><a href="../../../index.html?cl/cromer/mt/LeerXML.html" target="_top">Frames</a></li>
  335. <li><a href="LeerXML.html" target="_top">No&nbsp;Frames</a></li>
  336. </ul>
  337. <ul class="navList" id="allclasses_navbar_bottom">
  338. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  339. </ul>
  340. <div>
  341. <script type="text/javascript"><!--
  342. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  343. if (window == top) {
  344. allClassesLink.style.display = "block";
  345. }
  346. else {
  347. allClassesLink.style.display = "none";
  348. }
  349. //-->
  350. </script>
  351. </div>
  352. <div>
  353. <ul class="subNavList">
  354. <li>Summary:&nbsp;</li>
  355. <li>Nested&nbsp;|&nbsp;</li>
  356. <li>Field&nbsp;|&nbsp;</li>
  357. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  358. <li><a href="#method.summary">Method</a></li>
  359. </ul>
  360. <ul class="subNavList">
  361. <li>Detail:&nbsp;</li>
  362. <li>Field&nbsp;|&nbsp;</li>
  363. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  364. <li><a href="#method.detail">Method</a></li>
  365. </ul>
  366. </div>
  367. <a name="skip.navbar.bottom">
  368. <!-- -->
  369. </a></div>
  370. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  371. </body>
  372. </html>