Arreglar warnings
Limpiar imports Reformatear el código Agregar JavaDoc que falta
This commit is contained in:
parent
a473b3df04
commit
0c5a599793
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>All Classes</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>All Classes</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Constant Field Values</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Deprecated List</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>API Help</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>C-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -68,7 +68,8 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:C">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:C">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">C</h2>
|
||||
@ -77,8 +78,14 @@
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../mt/Controller.html#Controller--">Controller()</a></span> - Constructor for class mt.<a href="../mt/Controller.html" title="class in mt">Controller</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.html#createDocument-java.io.File-">createDocument(File)</a></span>
|
||||
- Method in class mt.<a href="../mt/LeerXML.html" title="class in mt">LeerXML</a></dt>
|
||||
<dd>
|
||||
<div class="block">Crear un documento de XML</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>E-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -68,11 +68,16 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:E">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:E">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">E</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#error">error</a></span> - Variable
|
||||
in class mt.<a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a>
|
||||
</dt>
|
||||
<dd> </dd>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#error-jdk.internal.org.xml.sax.SAXParseException-">error(SAXParseException)</a></span> - Method in class mt.<a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a></dt>
|
||||
<dd>
|
||||
<div class="block">Un error</div>
|
||||
@ -82,7 +87,8 @@
|
||||
<div class="block">Un error</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>F-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -68,7 +68,8 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:F">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:F">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">F</h2>
|
||||
@ -81,8 +82,14 @@
|
||||
<dd>
|
||||
<div class="block">Un error fatal</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.html#fixXML-java.io.File-">fixXML(File)</a></span> - Method
|
||||
in class mt.<a href="../mt/LeerXML.html" title="class in mt">LeerXML</a></dt>
|
||||
<dd>
|
||||
<div class="block">Arreglar el archivo de xml si no es valido.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>L-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -68,27 +68,29 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:L">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:L">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">L</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.html#leerArchivo-java.io.File-">leerArchivo(File)</a></span> - Method in class mt.<a href="../mt/LeerXML.html" title="class in mt">LeerXML</a></dt>
|
||||
<dd>
|
||||
<div class="block">El metodo va a verificar que el archivo existe y que contiene xml valido.</div>
|
||||
<div class="block">El metodo va a verificar que el archivo existe y que contiene XML valido.</div>
|
||||
</dd>
|
||||
<dt><a href="../mt/LeerXML.html" title="class in mt"><span class="typeNameLink">LeerXML</span></a> - Class in <a href="../mt/package-summary.html">mt</a></dt>
|
||||
<dd>
|
||||
<div class="block">Esta clase puede abrir y validar un archivo de xml.</div>
|
||||
<div class="block">Esta clase puede abrir y validar un archivo de XML.</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.html#LeerXML--">LeerXML()</a></span> - Constructor for class mt.<a href="../mt/LeerXML.html" title="class in mt">LeerXML</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt"><span class="typeNameLink">LeerXML.SimpleErrorHandler</span></a> - Class in <a href="../mt/package-summary.html">mt</a></dt>
|
||||
<dd>
|
||||
<div class="block">Esta clase se usa para validar que el xml es valido.</div>
|
||||
<div class="block">Esta clase se usa para comprobar que el xml es valido.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>M-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -68,7 +68,8 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:M">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:M">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">M</h2>
|
||||
@ -86,7 +87,8 @@
|
||||
<dt><span class="memberNameLink"><a href="../mt/MT.html#MT--">MT()</a></span> - Constructor for class mt.<a href="../mt/MT.html" title="class in mt">MT</a></dt>
|
||||
<dd> </dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>S-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -68,7 +68,8 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:S">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:S">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">S</h2>
|
||||
@ -80,7 +81,8 @@
|
||||
<div class="block">Metodo de JavaFX llamada para generar el interfaz grafico.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<title>W-Index</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>V-Index</title>
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -12,7 +12,7 @@
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title="W-Index";
|
||||
parent.document.title = "V-Index";
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
@ -43,7 +43,7 @@
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="index-6.html">Prev Letter</a></li>
|
||||
<li>Next Letter</li>
|
||||
<li><a href="index-8.html">Next Letter</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../index.html?index-files/index-7.html" target="_top">Frames</a></li>
|
||||
@ -68,21 +68,20 @@
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer"><a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> <a name="I:W">
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:V">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">W</h2>
|
||||
<h2 class="title">V</h2>
|
||||
<dl>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#warning-jdk.internal.org.xml.sax.SAXParseException-">warning(SAXParseException)</a></span> - Method in class mt.<a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a></dt>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.html#validarXML-java.io.File-">validarXML(File)</a></span> -
|
||||
Method in class mt.<a href="../mt/LeerXML.html" title="class in mt">LeerXML</a></dt>
|
||||
<dd>
|
||||
<div class="block">Un warning</div>
|
||||
</dd>
|
||||
<dt><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#warning-org.xml.sax.SAXParseException-">warning(SAXParseException)</a></span> - Method in class mt.<a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a></dt>
|
||||
<dd>
|
||||
<div class="block">Un warning</div>
|
||||
<div class="block">Este metodo se usa para validar el XML.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">W</a> </div>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
@ -104,7 +103,7 @@
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="index-6.html">Prev Letter</a></li>
|
||||
<li>Next Letter</li>
|
||||
<li><a href="index-8.html">Next Letter</a></li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../index.html?index-files/index-7.html" target="_top">Frames</a></li>
|
||||
|
143
doc/index-files/index-8.html
Normal file
143
doc/index-files/index-8.html
Normal file
@ -0,0 +1,143 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>W-Index</title>
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript"><!--
|
||||
try {
|
||||
if (location.href.indexOf('is-external=true') == -1) {
|
||||
parent.document.title = "W-Index";
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="topNav"><a name="navbar.top">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a>
|
||||
</div>
|
||||
<a name="navbar.top.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../mt/package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li>Use</li>
|
||||
<li><a href="../mt/package-tree.html">Tree</a></li>
|
||||
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
||||
<li class="navBarCell1Rev">Index</li>
|
||||
<li><a href="../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="index-7.html">Prev Letter</a></li>
|
||||
<li>Next Letter</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../index.html?index-files/index-8.html" target="_top">Frames</a></li>
|
||||
<li><a href="index-8.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_top">
|
||||
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||||
if (window == top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.top">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<div class="contentContainer">
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a> <a name="I:W">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h2 class="title">W</h2>
|
||||
<dl>
|
||||
<dt>
|
||||
<span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#warning-jdk.internal.org.xml.sax.SAXParseException-">warning(SAXParseException)</a></span>
|
||||
- Method in class mt.<a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="block">Un warning</div>
|
||||
</dd>
|
||||
<dt>
|
||||
<span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#warning-org.xml.sax.SAXParseException-">warning(SAXParseException)</a></span>
|
||||
- Method in class mt.<a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="block">Un warning</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="index-1.html">C</a> <a href="index-2.html">E</a> <a href="index-3.html">F</a> <a href="index-4.html">L</a> <a href="index-5.html">M</a> <a href="index-6.html">S</a> <a href="index-7.html">V</a> <a href="index-8.html">W</a>
|
||||
</div>
|
||||
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||||
<div class="bottomNav"><a name="navbar.bottom">
|
||||
<!-- -->
|
||||
</a>
|
||||
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a>
|
||||
</div>
|
||||
<a name="navbar.bottom.firstrow">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="navList" title="Navigation">
|
||||
<li><a href="../mt/package-summary.html">Package</a></li>
|
||||
<li>Class</li>
|
||||
<li>Use</li>
|
||||
<li><a href="../mt/package-tree.html">Tree</a></li>
|
||||
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
||||
<li class="navBarCell1Rev">Index</li>
|
||||
<li><a href="../help-doc.html">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="subNav">
|
||||
<ul class="navList">
|
||||
<li><a href="index-7.html">Prev Letter</a></li>
|
||||
<li>Next Letter</li>
|
||||
</ul>
|
||||
<ul class="navList">
|
||||
<li><a href="../index.html?index-files/index-8.html" target="_top">Frames</a></li>
|
||||
<li><a href="index-8.html" target="_top">No Frames</a></li>
|
||||
</ul>
|
||||
<ul class="navList" id="allclasses_navbar_bottom">
|
||||
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
||||
</ul>
|
||||
<div>
|
||||
<script type="text/javascript"><!--
|
||||
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||||
if (window == top) {
|
||||
allClassesLink.style.display = "block";
|
||||
}
|
||||
else {
|
||||
allClassesLink.style.display = "none";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</div>
|
||||
<a name="skip.navbar.bottom">
|
||||
<!-- -->
|
||||
</a></div>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
</body>
|
||||
</html>
|
@ -2,7 +2,7 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Generated Documentation (Untitled)</title>
|
||||
<script type="text/javascript">
|
||||
tmpTargetPage = "" + window.location.search;
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:16 CLT 2017 -->
|
||||
<title>Controller</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>LeerXML.SimpleErrorHandler</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -74,13 +74,13 @@ var activeTableTab = "activeTableTab";
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
@ -116,16 +116,37 @@ var activeTableTab = "activeTableTab";
|
||||
</dl>
|
||||
<hr>
|
||||
<br>
|
||||
<pre>protected class <span class="typeNameLabel">LeerXML.SimpleErrorHandler</span>
|
||||
<pre>class <span class="typeNameLabel">LeerXML.SimpleErrorHandler</span>
|
||||
extends java.lang.Object
|
||||
implements jdk.internal.org.xml.sax.ErrorHandler, org.xml.sax.ErrorHandler</pre>
|
||||
<div class="block">Esta clase se usa para validar que el xml es valido.</div>
|
||||
<div class="block">Esta clase se usa para comprobar que el xml es valido.</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.summary">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Summary</h3>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
||||
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||||
<th class="colLast" scope="col">Field and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>(package private) boolean</code></td>
|
||||
<td class="colLast">
|
||||
<code><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#error">error</a></span></code>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.summary">
|
||||
@ -135,12 +156,12 @@ implements jdk.internal.org.xml.sax.ErrorHandler, org.xml.sax.ErrorHandler</pre>
|
||||
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||||
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||||
<tr>
|
||||
<th class="colFirst" scope="col">Modifier</th>
|
||||
<th class="colLast" scope="col">Constructor and Description</th>
|
||||
<th class="colOne" scope="col">Constructor and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>protected </code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#SimpleErrorHandler--">SimpleErrorHandler</a></span>()</code> </td>
|
||||
<td class="colOne">
|
||||
<code><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html#SimpleErrorHandler--">SimpleErrorHandler</a></span>()</code>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
@ -209,6 +230,23 @@ implements jdk.internal.org.xml.sax.ErrorHandler, org.xml.sax.ErrorHandler</pre>
|
||||
<div class="details">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<!-- ============ FIELD DETAIL =========== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="field.detail">
|
||||
<!-- -->
|
||||
</a>
|
||||
<h3>Field Detail</h3>
|
||||
<a name="error">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>error</h4>
|
||||
<pre>boolean error</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<ul class="blockList">
|
||||
<li class="blockList"><a name="constructor.detail">
|
||||
@ -221,7 +259,7 @@ implements jdk.internal.org.xml.sax.ErrorHandler, org.xml.sax.ErrorHandler</pre>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>SimpleErrorHandler</h4>
|
||||
<pre>protected SimpleErrorHandler()</pre>
|
||||
<pre>SimpleErrorHandler()</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@ -384,13 +422,13 @@ implements jdk.internal.org.xml.sax.ErrorHandler, org.xml.sax.ErrorHandler</pre>
|
||||
<ul class="subNavList">
|
||||
<li>Summary: </li>
|
||||
<li>Nested | </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.summary">Field</a> | </li>
|
||||
<li><a href="#constructor.summary">Constr</a> | </li>
|
||||
<li><a href="#method.summary">Method</a></li>
|
||||
</ul>
|
||||
<ul class="subNavList">
|
||||
<li>Detail: </li>
|
||||
<li>Field | </li>
|
||||
<li><a href="#field.detail">Field</a> | </li>
|
||||
<li><a href="#constructor.detail">Constr</a> | </li>
|
||||
<li><a href="#method.detail">Method</a></li>
|
||||
</ul>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>LeerXML</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -18,7 +18,7 @@
|
||||
catch(err) {
|
||||
}
|
||||
//-->
|
||||
var methods = {"i0":10};
|
||||
var methods = {"i0": 10, "i1": 10, "i2": 10, "i3": 10};
|
||||
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||||
var altColor = "altColor";
|
||||
var rowColor = "rowColor";
|
||||
@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab";
|
||||
<br>
|
||||
<pre>class <span class="typeNameLabel">LeerXML</span>
|
||||
extends java.lang.Object</pre>
|
||||
<div class="block">Esta clase puede abrir y validar un archivo de xml.</div>
|
||||
<div class="block">Esta clase puede abrir y validar un archivo de XML. Se necesita un archivo mtbase.dtd</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -130,9 +130,9 @@ extends java.lang.Object</pre>
|
||||
<th class="colLast" scope="col">Class and Description</th>
|
||||
</tr>
|
||||
<tr class="altColor">
|
||||
<td class="colFirst"><code>protected class </code></td>
|
||||
<td class="colFirst"><code>(package private) class </code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../mt/LeerXML.SimpleErrorHandler.html" title="class in mt">LeerXML.SimpleErrorHandler</a></span></code>
|
||||
<div class="block">Esta clase se usa para validar que el xml es valido.</div>
|
||||
<div class="block">Esta clase se usa para comprobar que el xml es valido.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -168,9 +168,28 @@ extends java.lang.Object</pre>
|
||||
<th class="colLast" scope="col">Method and Description</th>
|
||||
</tr>
|
||||
<tr id="i0" class="altColor">
|
||||
<td class="colFirst"><code>private org.w3c.dom.Document</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../mt/LeerXML.html#createDocument-java.io.File-">createDocument</a></span>(java.io.File archivo)</code>
|
||||
<div class="block">Crear un documento de XML</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i1" class="rowColor">
|
||||
<td class="colFirst"><code>private java.io.File</code></td>
|
||||
<td class="colLast">
|
||||
<code><span class="memberNameLink"><a href="../mt/LeerXML.html#fixXML-java.io.File-">fixXML</a></span>(java.io.File original)</code>
|
||||
<div class="block">Arreglar el archivo de xml si no es valido.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i2" class="altColor">
|
||||
<td class="colFirst"><code>(package private) org.w3c.dom.Document</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../mt/LeerXML.html#leerArchivo-java.io.File-">leerArchivo</a></span>(java.io.File archivo)</code>
|
||||
<div class="block">El metodo va a verificar que el archivo existe y que contiene xml valido.</div>
|
||||
<div class="block">El metodo va a verificar que el archivo existe y que contiene XML valido.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="i3" class="rowColor">
|
||||
<td class="colFirst"><code>private org.w3c.dom.Document</code></td>
|
||||
<td class="colLast"><code><span class="memberNameLink"><a href="../mt/LeerXML.html#validarXML-java.io.File-">validarXML</a></span>(java.io.File original)</code>
|
||||
<div class="block">Este metodo se usa para validar el XML.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -215,16 +234,66 @@ extends java.lang.Object</pre>
|
||||
<a name="leerArchivo-java.io.File-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>leerArchivo</h4>
|
||||
<pre>org.w3c.dom.Document leerArchivo(java.io.File archivo)</pre>
|
||||
<div class="block">El metodo va a verificar que el archivo existe y que contiene xml valido. Si es valido devuelve el documento.</div>
|
||||
<div class="block">El metodo va a verificar que el archivo existe y que contiene XML valido. Si es valido devuelve
|
||||
el documento.
|
||||
</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>archivo</code> - Es el archivo a abrir.</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Devuelve un document de xml o null si habia algun error.</dd>
|
||||
<dd>Devuelve un document de XML o null si hay algun error.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="createDocument-java.io.File-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>createDocument</h4>
|
||||
<pre>private org.w3c.dom.Document createDocument(java.io.File archivo)</pre>
|
||||
<div class="block">Crear un documento de XML</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>archivo</code> - Es el archivo XML</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Retorna un document del XML o null si hay algun error.</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="validarXML-java.io.File-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockList">
|
||||
<li class="blockList">
|
||||
<h4>validarXML</h4>
|
||||
<pre>private org.w3c.dom.Document validarXML(java.io.File original)</pre>
|
||||
<div class="block">Este metodo se usa para validar el XML.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>original</code> - es el archivo original del XML</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>Retorna un document de un xml arreglado, null si el xml no es coherente a lo que se pide</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<a name="fixXML-java.io.File-">
|
||||
<!-- -->
|
||||
</a>
|
||||
<ul class="blockListLast">
|
||||
<li class="blockList">
|
||||
<h4>fixXML</h4>
|
||||
<pre>private java.io.File fixXML(java.io.File original)</pre>
|
||||
<div class="block">Arreglar el archivo de xml si no es valido.</div>
|
||||
<dl>
|
||||
<dt><span class="paramLabel">Parameters:</span></dt>
|
||||
<dd><code>original</code> - Es el archivo xml sin cambios</dd>
|
||||
<dt><span class="returnLabel">Returns:</span></dt>
|
||||
<dd>un file de xml adaptado para ser validado</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>MT</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Uses of Class mt.Controller</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Uses of Class mt.LeerXML.SimpleErrorHandler</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Uses of Class mt.LeerXML</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Uses of Class mt.MT</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>mt</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>mt</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
@ -88,7 +88,7 @@
|
||||
<tr class="rowColor">
|
||||
<td class="colFirst"><a href="../mt/LeerXML.html" title="class in mt">LeerXML</a></td>
|
||||
<td class="colLast">
|
||||
<div class="block">Esta clase puede abrir y validar un archivo de xml.</div>
|
||||
<div class="block">Esta clase puede abrir y validar un archivo de XML.</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="rowColor">
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>mt Class Hierarchy</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Uses of Package mt</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="../script.js"></script>
|
||||
</head>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!-- NewPage -->
|
||||
<html lang="es">
|
||||
<head>
|
||||
<!-- Generated by javadoc (1.8.0_131) on Fri Jun 23 19:19:36 CLT 2017 -->
|
||||
<!-- Generated by javadoc (1.8.0_131) on Sat Jun 24 22:08:17 CLT 2017 -->
|
||||
<title>Class Hierarchy</title>
|
||||
<meta name="date" content="2017-06-23">
|
||||
<meta name="date" content="2017-06-24">
|
||||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</head>
|
||||
|
@ -10,13 +10,7 @@ package mt;
|
||||
import java.io.*;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.stream.util.StreamReaderDelegate;
|
||||
import javax.xml.transform.Transformer;
|
||||
import javax.xml.transform.TransformerFactory;
|
||||
import javax.xml.transform.dom.DOMSource;
|
||||
import javax.xml.transform.stream.StreamResult;
|
||||
|
||||
import com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl;
|
||||
import jdk.internal.org.xml.sax.ErrorHandler;
|
||||
import jdk.internal.org.xml.sax.SAXException;
|
||||
import jdk.internal.org.xml.sax.SAXParseException;
|
||||
@ -24,33 +18,37 @@ import jdk.internal.org.xml.sax.SAXParseException;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
/**
|
||||
* Esta clase puede abrir y validar un archivo de xml. Se necesita un archivo mtbase.dtd
|
||||
* Esta clase puede abrir y validar un archivo de XML. Se necesita un archivo mtbase.dtd
|
||||
*/
|
||||
class LeerXML {
|
||||
|
||||
/**
|
||||
* El metodo va a verificar que el archivo existe y que contiene xml valido. Si es valido devuelve el documento.
|
||||
* El metodo va a verificar que el archivo existe y que contiene XML valido. Si es valido devuelve el documento.
|
||||
*
|
||||
* @param archivo Es el archivo a abrir.
|
||||
* @return Devuelve un document de xml o null si hay algun error.
|
||||
*
|
||||
* @return Devuelve un document de XML o null si hay algun error.
|
||||
*/
|
||||
public Document leerArchivo(File archivo) {
|
||||
if(!archivo.exists() || !archivo.getName().endsWith(".xml")){
|
||||
System.out.println("Archivo "+archivo.getName()+" no existe o no es compatible");
|
||||
Document leerArchivo(File archivo) {
|
||||
if (!archivo.exists() || !archivo.getName().endsWith(".xml")) {
|
||||
System.out.println("Archivo " + archivo.getName() + " no existe o no es compatible");
|
||||
return null;
|
||||
}
|
||||
Document dc = createDocument(archivo);
|
||||
if(dc == null) return validarXML(archivo);
|
||||
if (dc == null) {
|
||||
return validarXML(archivo);
|
||||
}
|
||||
return dc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Crear un documento de XML
|
||||
*
|
||||
* @param archivo Es el archivo Xml
|
||||
* @return Retorna un document del xml o null si hay algun error.
|
||||
* @param archivo Es el archivo XML
|
||||
*
|
||||
* @return Retorna un document del XML o null si hay algun error.
|
||||
*/
|
||||
|
||||
private Document createDocument(File archivo){
|
||||
private Document createDocument(File archivo) {
|
||||
Document document;
|
||||
try {
|
||||
if (!archivo.exists()) {
|
||||
@ -66,12 +64,14 @@ class LeerXML {
|
||||
SimpleErrorHandler seh = new SimpleErrorHandler();
|
||||
db.setErrorHandler(seh);
|
||||
document = db.parse(archivo);
|
||||
if(seh.error) return null;
|
||||
if (seh.error) {
|
||||
return null;
|
||||
}
|
||||
document.getDocumentElement().normalize();
|
||||
return document;
|
||||
}
|
||||
catch(Exception e) {
|
||||
if(e.getMessage().indexOf(".dtd") >= 0) {
|
||||
catch (Exception e) {
|
||||
if (e.getMessage().contains(".dtd")) {
|
||||
return validarXML(archivo);
|
||||
}
|
||||
System.out.println(e.getMessage());
|
||||
@ -81,51 +81,71 @@ class LeerXML {
|
||||
}
|
||||
|
||||
/**
|
||||
* Este metodo se usa para validar el XML.
|
||||
*
|
||||
* @param original es el archivo original del XML
|
||||
*
|
||||
* @param original es el archivo original del xml
|
||||
* @return Retorna un document de un xml arreglado, null si el xml no es coherente a lo que se pide
|
||||
*/
|
||||
private Document validarXML(File original){
|
||||
private Document validarXML(File original) {
|
||||
File temp = fixXML(original);
|
||||
if (temp == null) {
|
||||
return null;
|
||||
}
|
||||
Document document = createDocument(temp);
|
||||
temp.delete();
|
||||
if(document != null) return document;
|
||||
if (!temp.delete()) {
|
||||
System.out.println("No puede borrar el archivo " + temp.getName());
|
||||
}
|
||||
if (document != null) {
|
||||
return document;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Arreglar el archivo de xml si no es valido.
|
||||
*
|
||||
* @param original Es el archivo xml sin cambios
|
||||
*
|
||||
* @return un file de xml adaptado para ser validado
|
||||
*/
|
||||
private File fixXML(File original){
|
||||
String aux = "";
|
||||
private File fixXML(File original) {
|
||||
String aux;
|
||||
File temp;
|
||||
try{
|
||||
try {
|
||||
temp = new File("temp.xml");
|
||||
BufferedReader br = new BufferedReader(new FileReader(original));
|
||||
BufferedWriter bw = new BufferedWriter(new FileWriter(temp));
|
||||
if((aux = br.readLine()).startsWith("<?xml")){
|
||||
bw.write(aux+"\n<!DOCTYPE root SYSTEM \"mtbase.dtd\">");
|
||||
}else{
|
||||
bw.write("<!DOCTYPE root SYSTEM \"mtbase.dtd\">\n"+aux);
|
||||
if ((aux = br.readLine()).startsWith("<?xml")) {
|
||||
bw.write(aux + "\n<!DOCTYPE root SYSTEM \"mtbase.dtd\">");
|
||||
}
|
||||
else {
|
||||
bw.write("<!DOCTYPE root SYSTEM \"mtbase.dtd\">\n" + aux);
|
||||
}
|
||||
for (aux = ""; aux != null; aux = br.readLine()) {
|
||||
if (!aux.startsWith("<!DOCTYPE")) {
|
||||
bw.write(aux + "\n");
|
||||
}
|
||||
for(aux = "";aux != null;aux = br.readLine()){
|
||||
if(!aux.startsWith("<!DOCTYPE")) bw.write(aux+"\n");
|
||||
}
|
||||
bw.close();
|
||||
}catch (Exception e){return null;}
|
||||
}
|
||||
catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
return temp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Esta clase se usa para comprobar que el xml es valido.
|
||||
*/
|
||||
protected class SimpleErrorHandler implements ErrorHandler, org.xml.sax.ErrorHandler {
|
||||
public boolean error = false;
|
||||
class SimpleErrorHandler implements ErrorHandler, org.xml.sax.ErrorHandler {
|
||||
boolean error = false;
|
||||
|
||||
/**
|
||||
* Un warning
|
||||
*
|
||||
* @param e La excepción
|
||||
*
|
||||
* @throws SAXException La excepción thrown
|
||||
*/
|
||||
public void warning(SAXParseException e) throws SAXException {
|
||||
@ -134,7 +154,9 @@ class LeerXML {
|
||||
|
||||
/**
|
||||
* Un error
|
||||
*
|
||||
* @param e La excepción
|
||||
*
|
||||
* @throws SAXException La excepción thrown
|
||||
*/
|
||||
public void error(SAXParseException e) throws SAXException {
|
||||
@ -144,7 +166,9 @@ class LeerXML {
|
||||
|
||||
/**
|
||||
* Un error fatal
|
||||
*
|
||||
* @param e La excepción
|
||||
*
|
||||
* @throws SAXException La excepción thrown
|
||||
*/
|
||||
public void fatalError(SAXParseException e) throws SAXException {
|
||||
@ -154,6 +178,7 @@ class LeerXML {
|
||||
|
||||
/**
|
||||
* Un warning
|
||||
*
|
||||
* @param e La excepción
|
||||
*/
|
||||
@Override
|
||||
@ -163,6 +188,7 @@ class LeerXML {
|
||||
|
||||
/**
|
||||
* Un error
|
||||
*
|
||||
* @param e La excepción
|
||||
*/
|
||||
@Override
|
||||
@ -173,6 +199,7 @@ class LeerXML {
|
||||
|
||||
/**
|
||||
* Un error fatal
|
||||
*
|
||||
* @param e La excepción
|
||||
*/
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user