Clean debug display and test display.
This commit is contained in:
parent
2d6e8b1639
commit
c5893435ec
6 changed files with 4 additions and 14 deletions
Binary file not shown.
Binary file not shown.
BIN
dist/test.jar
vendored
BIN
dist/test.jar
vendored
Binary file not shown.
BIN
dist/xid.jar
vendored
BIN
dist/xid.jar
vendored
Binary file not shown.
|
@ -321,7 +321,6 @@ public class Presenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println ("childIndex=" + childIndex);
|
|
||||||
if (child == null)
|
if (child == null)
|
||||||
{
|
{
|
||||||
tagsData = null;
|
tagsData = null;
|
||||||
|
@ -331,9 +330,7 @@ public class Presenter
|
||||||
// Searching for the ID value of the child.
|
// Searching for the ID value of the child.
|
||||||
String childId;
|
String childId;
|
||||||
|
|
||||||
System.out.println ("child" + child);
|
|
||||||
NamedNodeMap attrsChild = child.getAttributes ();
|
NamedNodeMap attrsChild = child.getAttributes ();
|
||||||
System.out.println ("attrsChild=" + attrsChild);
|
|
||||||
|
|
||||||
if (attrsChild == null)
|
if (attrsChild == null)
|
||||||
{
|
{
|
||||||
|
@ -385,16 +382,13 @@ public class Presenter
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
System.out.println ("TagsDataByIndex detected.");
|
|
||||||
switch (tagsData.getIterationStrategy ())
|
switch (tagsData.getIterationStrategy ())
|
||||||
{
|
{
|
||||||
case ONLY_FIRST_ROW:
|
case ONLY_FIRST_ROW:
|
||||||
System.out.println ("ONLY FIRST ROW");
|
|
||||||
result.append (process (child, datas, webappPath, prefix, errorOutput));
|
result.append (process (child, datas, webappPath, prefix, errorOutput));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ONLY_ROWS_WITH_ID:
|
case ONLY_ROWS_WITH_ID:
|
||||||
System.out.println ("ONLY ROWS WITH ID");
|
|
||||||
for (int i = 0; i < childrenCount; i++)
|
for (int i = 0; i < childrenCount; i++)
|
||||||
{
|
{
|
||||||
NamedNodeMap attrs2 = children.item (i).getAttributes ();
|
NamedNodeMap attrs2 = children.item (i).getAttributes ();
|
||||||
|
@ -801,13 +795,12 @@ public class Presenter
|
||||||
NamedNodeMap attrs = node.getAttributes ();
|
NamedNodeMap attrs = node.getAttributes ();
|
||||||
Node idAttr = attrs.getNamedItem ("id");
|
Node idAttr = attrs.getNamedItem ("id");
|
||||||
|
|
||||||
System.out.println ("process=" + node);
|
|
||||||
if (idAttr != null)
|
if (idAttr != null)
|
||||||
{
|
{
|
||||||
result.append (Presenter.processElementWithId (node, attrs, idAttr, datas, webappPath, prefix, errorOutput));
|
result.append (Presenter.processElementWithId (node, attrs, idAttr, datas, webappPath, prefix, errorOutput));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{System.out.println ("basically");
|
{
|
||||||
result.append (Presenter.processElementBasically (node, datas, webappPath, prefix, errorOutput));
|
result.append (Presenter.processElementBasically (node, datas, webappPath, prefix, errorOutput));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,8 @@ class Test
|
||||||
|
|
||||||
|
|
||||||
errorMessage = new StringBuffer ();
|
errorMessage = new StringBuffer ();
|
||||||
html = Presenter.doXid ("<table>\n <tr id='identity'><td>noid</td><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>\n</table>", datas, "", errorMessage);
|
htmlSource = "<table>\n <tr id='identity'><td>noid</td><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>\n</table>";
|
||||||
|
html = Presenter.doXid (htmlSource, datas, "", errorMessage);
|
||||||
|
|
||||||
System.out.println ("----------------------------");
|
System.out.println ("----------------------------");
|
||||||
System.out.println ("datas = new TagsData ();");
|
System.out.println ("datas = new TagsData ();");
|
||||||
|
@ -194,11 +195,7 @@ class Test
|
||||||
System.out.println ("datas.setContent (\"identity\", 2, \"prenom\", \"Christophe\");");
|
System.out.println ("datas.setContent (\"identity\", 2, \"prenom\", \"Christophe\");");
|
||||||
|
|
||||||
System.out.println ("+");
|
System.out.println ("+");
|
||||||
System.out.println ("<table>");
|
System.out.println (htmlSource);
|
||||||
System.out.println (" <tr id='identity'><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>");
|
|
||||||
System.out.println (" <tr id='identity2'><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>");
|
|
||||||
System.out.println (" <tr id='identity3'><td id='nom'>un nom</td><td id='prenom'>un prenom</td></tr>");
|
|
||||||
System.out.println ("</table>");
|
|
||||||
System.out.println ("=>");
|
System.out.println ("=>");
|
||||||
System.out.println (html);
|
System.out.println (html);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue